OLD | NEW |
1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef COMPONENTS_SESSIONS_CORE_SESSION_TYPES_H_ | 5 #ifndef COMPONENTS_SESSIONS_CORE_SESSION_TYPES_H_ |
6 #define COMPONENTS_SESSIONS_CORE_SESSION_TYPES_H_ | 6 #define COMPONENTS_SESSIONS_CORE_SESSION_TYPES_H_ |
7 | 7 |
8 #include <algorithm> | 8 #include <algorithm> |
9 #include <memory> | 9 #include <memory> |
10 #include <string> | 10 #include <string> |
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
133 // not all fields are synced here, because they don't all make sense or | 133 // not all fields are synced here, because they don't all make sense or |
134 // translate when restoring a SessionWindow on another device. | 134 // translate when restoring a SessionWindow on another device. |
135 sync_pb::SessionWindow ToSyncData() const; | 135 sync_pb::SessionWindow ToSyncData() const; |
136 | 136 |
137 // Identifier of the window. | 137 // Identifier of the window. |
138 SessionID window_id; | 138 SessionID window_id; |
139 | 139 |
140 // Bounds of the window. | 140 // Bounds of the window. |
141 gfx::Rect bounds; | 141 gfx::Rect bounds; |
142 | 142 |
| 143 // The workspace in which the window resides. |
| 144 std::string workspace; |
| 145 |
143 // Index of the selected tab in tabs; -1 if no tab is selected. After restore | 146 // Index of the selected tab in tabs; -1 if no tab is selected. After restore |
144 // this value is guaranteed to be a valid index into tabs. | 147 // this value is guaranteed to be a valid index into tabs. |
145 // | 148 // |
146 // NOTE: when the service is creating SessionWindows, initially this | 149 // NOTE: when the service is creating SessionWindows, initially this |
147 // corresponds to SessionTab.tab_visual_index, not the index in | 150 // corresponds to SessionTab.tab_visual_index, not the index in |
148 // tabs. When done creating though, this is set to the index in | 151 // tabs. When done creating though, this is set to the index in |
149 // tabs. | 152 // tabs. |
150 int selected_tab_index; | 153 int selected_tab_index; |
151 | 154 |
152 // Type of the window. Note: This type is used to determine if the window gets | 155 // Type of the window. Note: This type is used to determine if the window gets |
(...skipping 17 matching lines...) Expand all Loading... |
170 | 173 |
171 std::string app_name; | 174 std::string app_name; |
172 | 175 |
173 private: | 176 private: |
174 DISALLOW_COPY_AND_ASSIGN(SessionWindow); | 177 DISALLOW_COPY_AND_ASSIGN(SessionWindow); |
175 }; | 178 }; |
176 | 179 |
177 } // namespace sessions | 180 } // namespace sessions |
178 | 181 |
179 #endif // COMPONENTS_SESSIONS_CORE_SESSION_TYPES_H_ | 182 #endif // COMPONENTS_SESSIONS_CORE_SESSION_TYPES_H_ |
OLD | NEW |