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

Side by Side Diff: chrome/browser/ui/browser_window_state.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_UI_BROWSER_WINDOW_STATE_H_ 5 #ifndef CHROME_BROWSER_UI_BROWSER_WINDOW_STATE_H_
6 #define CHROME_BROWSER_UI_BROWSER_WINDOW_STATE_H_ 6 #define CHROME_BROWSER_UI_BROWSER_WINDOW_STATE_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <string> 9 #include <string>
10 10
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 bool ShouldSaveWindowPlacement(const Browser* browser); 42 bool ShouldSaveWindowPlacement(const Browser* browser);
43 43
44 // Returns true if the saved bounds for this window should be treated as the 44 // Returns true if the saved bounds for this window should be treated as the
45 // bounds of the content area, not the whole window. 45 // bounds of the content area, not the whole window.
46 bool SavedBoundsAreContentBounds(const Browser* browser); 46 bool SavedBoundsAreContentBounds(const Browser* browser);
47 47
48 void SaveWindowPlacement(const Browser* browser, 48 void SaveWindowPlacement(const Browser* browser,
49 const gfx::Rect& bounds, 49 const gfx::Rect& bounds,
50 ui::WindowShowState show_state); 50 ui::WindowShowState show_state);
51 51
52 void SaveWindowWorkspace(const Browser* browser, const std::string& workspace);
53
52 // Return the |bounds| for the browser window to be used upon creation. 54 // Return the |bounds| for the browser window to be used upon creation.
53 // The |show_state| variable will receive the desired initial show state for 55 // The |show_state| variable will receive the desired initial show state for
54 // the window. 56 // the window.
55 void GetSavedWindowBoundsAndShowState(const Browser* browser, 57 void GetSavedWindowBoundsAndShowState(const Browser* browser,
56 gfx::Rect* bounds, 58 gfx::Rect* bounds,
57 ui::WindowShowState* show_state); 59 ui::WindowShowState* show_state);
58 60
59 } // namespace chrome 61 } // namespace chrome
60 62
61 #endif // CHROME_BROWSER_UI_BROWSER_WINDOW_STATE_H_ 63 #endif // CHROME_BROWSER_UI_BROWSER_WINDOW_STATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698