OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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 CHROME_BROWSER_SESSIONS_SESSION_TYPES_H_ | 5 #ifndef CHROME_BROWSER_SESSIONS_SESSION_TYPES_H_ |
6 #define CHROME_BROWSER_SESSIONS_SESSION_TYPES_H_ | 6 #define CHROME_BROWSER_SESSIONS_SESSION_TYPES_H_ |
7 | 7 |
8 #include <algorithm> | 8 #include <algorithm> |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
(...skipping 209 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
220 // TYPE_TABBED and TYPE_POPUP. | 220 // TYPE_TABBED and TYPE_POPUP. |
221 // This would be Browser::Type, but that would cause a circular dependency. | 221 // This would be Browser::Type, but that would cause a circular dependency. |
222 int type; | 222 int type; |
223 | 223 |
224 // If true, the window is constrained. | 224 // If true, the window is constrained. |
225 // | 225 // |
226 // Currently SessionService prunes all constrained windows so that session | 226 // Currently SessionService prunes all constrained windows so that session |
227 // restore does not attempt to restore them. | 227 // restore does not attempt to restore them. |
228 bool is_constrained; | 228 bool is_constrained; |
229 | 229 |
| 230 // If true the user has moved/resized the position by hand. |
| 231 bool user_has_changed_window_or_position; |
| 232 |
230 // Timestamp for when this window was last modified. | 233 // Timestamp for when this window was last modified. |
231 base::Time timestamp; | 234 base::Time timestamp; |
232 | 235 |
233 // The tabs, ordered by visual order. | 236 // The tabs, ordered by visual order. |
234 std::vector<SessionTab*> tabs; | 237 std::vector<SessionTab*> tabs; |
235 | 238 |
236 // Is the window maximized, minimized, or normal? | 239 // Is the window maximized, minimized, or normal? |
237 ui::WindowShowState show_state; | 240 ui::WindowShowState show_state; |
238 | 241 |
239 std::string app_name; | 242 std::string app_name; |
240 | 243 |
241 private: | 244 private: |
242 DISALLOW_COPY_AND_ASSIGN(SessionWindow); | 245 DISALLOW_COPY_AND_ASSIGN(SessionWindow); |
243 }; | 246 }; |
244 | 247 |
245 #endif // CHROME_BROWSER_SESSIONS_SESSION_TYPES_H_ | 248 #endif // CHROME_BROWSER_SESSIONS_SESSION_TYPES_H_ |
OLD | NEW |