Home | History | Annotate | Download | only in sessions

Lines Matching refs:payload

92 // Various payload structures.
205 ClosedPayload* payload) {
213 command.size() == 12 && sizeof(payload->id) == 4 &&
214 sizeof(payload->close_time) == 8) {
215 memcpy(&payload->id, command.contents(), 4);
216 memcpy(&payload->close_time, command.contents() + 4, 8);
467 TabNavigationPathPrunedFromBackPayload payload = { 0 };
468 payload.id = tab_id.id();
469 payload.index = count;
472 sizeof(payload));
473 memcpy(command->contents(), &payload, sizeof(payload));
492 TabNavigationPathPrunedFromFrontPayload payload = { 0 };
493 payload.id = tab_id.id();
494 payload.index = count;
497 sizeof(payload));
498 memcpy(command->contents(), &payload, sizeof(payload));
780 SelectedTabInIndexPayload payload = { 0 };
781 payload.id = window_id.id();
782 payload.index = index;
784 sizeof(payload));
785 memcpy(command->contents(), &payload, sizeof(payload));
792 SessionID::id_type payload[] = { window_id.id(), tab_id.id() };
794 new SessionCommand(kCommandSetTabWindow, sizeof(payload));
795 memcpy(command->contents(), payload, sizeof(payload));
803 WindowBoundsPayload3 payload = { 0 };
804 payload.window_id = window_id.id();
805 payload.x = bounds.x();
806 payload.y = bounds.y();
807 payload.w = bounds.width();
808 payload.h = bounds.height();
809 payload.show_state = ShowStateToPersistedShowState(show_state);
811 sizeof(payload));
812 memcpy(command->contents(), &payload, sizeof(payload));
819 TabIndexInWindowPayload payload = { 0 };
820 payload.id = tab_id.id();
821 payload.index = new_index;
823 new SessionCommand(kCommandSetTabIndexInWindow, sizeof(payload));
824 memcpy(command->contents(), &payload, sizeof(payload));
830 ClosedPayload payload;
831 // Because of what appears to be a compiler bug setting payload to {0} doesn't
834 memset(&payload, 0, sizeof(payload));
835 payload.id = tab_id;
836 payload.close_time = Time::Now().ToInternalValue();
838 new SessionCommand(kCommandTabClosed, sizeof(payload));
839 memcpy(command->contents(), &payload, sizeof(payload));
845 ClosedPayload payload;
847 memset(&payload, 0, sizeof(payload));
848 payload.id = window_id;
849 payload.close_time = Time::Now().ToInternalValue();
851 new SessionCommand(kCommandWindowClosed, sizeof(payload));
852 memcpy(command->contents(), &payload, sizeof(payload));
859 SelectedNavigationIndexPayload payload = { 0 };
860 payload.id = tab_id.id();
861 payload.index = index;
863 kCommandSetSelectedNavigationIndex, sizeof(payload));
864 memcpy(command->contents(), &payload, sizeof(payload));
871 WindowTypePayload payload = { 0 };
872 payload.id = window_id.id();
873 payload.index = static_cast<int32>(type);
875 kCommandSetWindowType, sizeof(payload));
876 memcpy(command->contents(), &payload, sizeof(payload));
883 PinnedStatePayload payload = { 0 };
884 payload.tab_id = tab_id.id();
885 payload.pinned_state = is_pinned;
887 new SessionCommand(kCommandSetPinnedState, sizeof(payload));
888 memcpy(command->contents(), &payload, sizeof(payload));
903 ActiveWindowPayload payload = 0;
904 payload = window_id.id();
906 new SessionCommand(kCommandSetActiveWindow, sizeof(payload));
907 memcpy(command->contents(), &payload, sizeof(payload));
1094 SessionID::id_type payload[2];
1095 if (!command->GetPayload(payload, sizeof(payload))) {
1099 GetTab(payload[1], tabs)->window_id.set_id(payload[0]);
1106 WindowBoundsPayload2 payload;
1107 if (!command->GetPayload(&payload, sizeof(payload))) {
1111 GetWindow(payload.window_id, windows)->bounds.SetRect(payload.x,
1112 payload.y,
1113 payload.w,
1114 payload.h);
1115 GetWindow(payload.window_id, windows)->show_state =
1116 payload.is_maximized ?
1122 WindowBoundsPayload3 payload;
1123 if (!command->GetPayload(&payload, sizeof(payload))) {
1127 GetWindow(payload.window_id, windows)->bounds.SetRect(payload.x,
1128 payload.y,
1129 payload.w,
1130 payload.h);
1131 GetWindow(payload.window_id, windows)->show_state =
1132 PersistedShowStateToShowState(payload.show_state);
1137 TabIndexInWindowPayload payload;
1138 if (!command->GetPayload(&payload, sizeof(payload))) {
1142 GetTab(payload.id, tabs)->tab_visual_index = payload.index;
1150 ClosedPayload payload;
1151 if (!command->GetPayload(&payload, sizeof(payload)) &&
1152 !MigrateClosedPayload(*command, &payload)) {
1158 delete GetTab(payload.id, tabs);
1159 tabs->erase(payload.id);
1161 delete GetWindow(payload.id, windows);
1162 windows->erase(payload.id);
1168 TabNavigationPathPrunedFromBackPayload payload;
1169 if (!command->GetPayload(&payload, sizeof(payload))) {
1173 SessionTab* tab = GetTab(payload.id, tabs);
1175 FindClosestNavigationWithIndex(&(tab->navigations), payload.index),
1181 TabNavigationPathPrunedFromFrontPayload payload;
1182 if (!command->GetPayload(&payload, sizeof(payload)) ||
1183 payload.index <= 0) {
1187 SessionTab* tab = GetTab(payload.id, tabs);
1191 std::max(-1, tab->current_navigation_index - payload.index);
1197 i->set_index(i->index() - payload.index);
1226 SelectedNavigationIndexPayload payload;
1227 if (!command->GetPayload(&payload, sizeof(payload))) {
1231 GetTab(payload.id, tabs)->current_navigation_index = payload.index;
1236 SelectedTabInIndexPayload payload;
1237 if (!command->GetPayload(&payload, sizeof(payload))) {
1241 GetWindow(payload.id, windows)->selected_tab_index = payload.index;
1246 WindowTypePayload payload;
1247 if (!command->GetPayload(&payload, sizeof(payload))) {
1251 GetWindow(payload.id, windows)->is_constrained = false;
1252 GetWindow(payload.id, windows)->type =
1254 static_cast<WindowType>(payload.index));
1259 PinnedStatePayload payload;
1260 if (!command->GetPayload(&payload, sizeof(payload))) {
1264 GetTab(payload.tab_id, tabs)->pinned = payload.pinned_state;
1318 ActiveWindowPayload payload;
1319 if (!command->GetPayload(&payload, sizeof(payload))) {
1323 *active_window_id = payload;