| 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_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 Loading... |
| 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_ |
| OLD | NEW |