Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(108)

Side by Side Diff: chrome/browser/sessions/session_service.h

Issue 1927203003: Add support for X11 workspaces (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Removed GetSavedWindowWorkspace, put command line code into browser_frame.cc Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698