| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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_BROWSER_H_ | 5 #ifndef CHROME_BROWSER_BROWSER_H_ |
| 6 #define CHROME_BROWSER_BROWSER_H_ | 6 #define CHROME_BROWSER_BROWSER_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <set> | 9 #include <set> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 185 // app panel window, otherwise it will be opened as a Browser::Type::APP, | 185 // app panel window, otherwise it will be opened as a Browser::Type::APP, |
| 186 // a.k.a. "thin frame". | 186 // a.k.a. "thin frame". |
| 187 static void OpenApplicationWindow(Profile* profile, const GURL& url, | 187 static void OpenApplicationWindow(Profile* profile, const GURL& url, |
| 188 bool as_panel); | 188 bool as_panel); |
| 189 | 189 |
| 190 #if defined(OS_MACOSX) | 190 #if defined(OS_MACOSX) |
| 191 // Open a new window with history/downloads/help (needed on Mac when there are | 191 // Open a new window with history/downloads/help (needed on Mac when there are |
| 192 // no windows). | 192 // no windows). |
| 193 static void OpenHistoryWindow(Profile* profile); | 193 static void OpenHistoryWindow(Profile* profile); |
| 194 static void OpenDownloadsWindow(Profile* profile); | 194 static void OpenDownloadsWindow(Profile* profile); |
| 195 static void OpenExtensionsWindow(Profile* profile); | |
| 196 static void OpenHelpWindow(Profile* profile); | 195 static void OpenHelpWindow(Profile* profile); |
| 197 #endif | 196 #endif |
| 198 | 197 |
| 198 // Opens a window with the extensions tab in it - needed by long-lived |
| 199 // extensions which may run with no windows open. |
| 200 static void OpenExtensionsWindow(Profile* profile); |
| 201 |
| 199 // State Storage and Retrieval for UI /////////////////////////////////////// | 202 // State Storage and Retrieval for UI /////////////////////////////////////// |
| 200 | 203 |
| 201 // Save and restore the window position. | 204 // Save and restore the window position. |
| 202 std::wstring GetWindowPlacementKey() const; | 205 std::wstring GetWindowPlacementKey() const; |
| 203 bool ShouldSaveWindowPlacement() const; | 206 bool ShouldSaveWindowPlacement() const; |
| 204 void SaveWindowPlacement(const gfx::Rect& bounds, bool maximized); | 207 void SaveWindowPlacement(const gfx::Rect& bounds, bool maximized); |
| 205 gfx::Rect GetSavedWindowBounds() const; | 208 gfx::Rect GetSavedWindowBounds() const; |
| 206 bool GetSavedMaximizedState() const; | 209 bool GetSavedMaximizedState() const; |
| 207 | 210 |
| 208 // Gets the FavIcon of the page in the selected tab. | 211 // Gets the FavIcon of the page in the selected tab. |
| (...skipping 684 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 893 }; | 896 }; |
| 894 | 897 |
| 895 // Which deferred action to perform when OnDidGetApplicationInfo is notified | 898 // Which deferred action to perform when OnDidGetApplicationInfo is notified |
| 896 // from a TabContents. Currently, only one pending action is allowed. | 899 // from a TabContents. Currently, only one pending action is allowed. |
| 897 WebAppAction pending_web_app_action_; | 900 WebAppAction pending_web_app_action_; |
| 898 | 901 |
| 899 DISALLOW_COPY_AND_ASSIGN(Browser); | 902 DISALLOW_COPY_AND_ASSIGN(Browser); |
| 900 }; | 903 }; |
| 901 | 904 |
| 902 #endif // CHROME_BROWSER_BROWSER_H_ | 905 #endif // CHROME_BROWSER_BROWSER_H_ |
| OLD | NEW |