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_SERVICE_H_ | 5 #ifndef CHROME_BROWSER_SESSIONS_SESSION_SERVICE_H_ |
6 #define CHROME_BROWSER_SESSIONS_SESSION_SERVICE_H_ | 6 #define CHROME_BROWSER_SESSIONS_SESSION_SERVICE_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
111 | 111 |
112 // Associates a tab with a window. | 112 // Associates a tab with a window. |
113 void SetTabWindow(const SessionID& window_id, | 113 void SetTabWindow(const SessionID& window_id, |
114 const SessionID& tab_id); | 114 const SessionID& tab_id); |
115 | 115 |
116 // Sets the bounds of a window. | 116 // Sets the bounds of a window. |
117 void SetWindowBounds(const SessionID& window_id, | 117 void SetWindowBounds(const SessionID& window_id, |
118 const gfx::Rect& bounds, | 118 const gfx::Rect& bounds, |
119 ui::WindowShowState show_state); | 119 ui::WindowShowState show_state); |
120 | 120 |
| 121 // Sets the workspace the window resides in. |
| 122 void SetWindowWorkspace(const SessionID& window_id, |
| 123 const std::string& workspace); |
| 124 |
121 // Sets the visual index of the tab in its parent window. | 125 // Sets the visual index of the tab in its parent window. |
122 void SetTabIndexInWindow(const SessionID& window_id, | 126 void SetTabIndexInWindow(const SessionID& window_id, |
123 const SessionID& tab_id, | 127 const SessionID& tab_id, |
124 int new_index); | 128 int new_index); |
125 | 129 |
126 // Sets the pinned state of the tab. | 130 // Sets the pinned state of the tab. |
127 void SetPinnedState(const SessionID& window_id, | 131 void SetPinnedState(const SessionID& window_id, |
128 const SessionID& tab_id, | 132 const SessionID& tab_id, |
129 bool is_pinned); | 133 bool is_pinned); |
130 | 134 |
(...skipping 267 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
398 // For browser_tests, since we want to simulate the browser shutting down | 402 // For browser_tests, since we want to simulate the browser shutting down |
399 // without quitting. | 403 // without quitting. |
400 bool force_browser_not_alive_with_no_windows_; | 404 bool force_browser_not_alive_with_no_windows_; |
401 | 405 |
402 base::WeakPtrFactory<SessionService> weak_factory_; | 406 base::WeakPtrFactory<SessionService> weak_factory_; |
403 | 407 |
404 DISALLOW_COPY_AND_ASSIGN(SessionService); | 408 DISALLOW_COPY_AND_ASSIGN(SessionService); |
405 }; | 409 }; |
406 | 410 |
407 #endif // CHROME_BROWSER_SESSIONS_SESSION_SERVICE_H_ | 411 #endif // CHROME_BROWSER_SESSIONS_SESSION_SERVICE_H_ |
OLD | NEW |