| 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_H_ | 5 #ifndef CHROME_BROWSER_UI_BROWSER_H_ |
| 6 #define CHROME_BROWSER_UI_BROWSER_H_ | 6 #define CHROME_BROWSER_UI_BROWSER_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <map> | 9 #include <map> |
| 10 #include <set> | 10 #include <set> |
| (...skipping 313 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 324 #if defined(OS_MACOSX) | 324 #if defined(OS_MACOSX) |
| 325 // Open a new window with history/downloads/help/options (needed on Mac when | 325 // Open a new window with history/downloads/help/options (needed on Mac when |
| 326 // there are no windows). | 326 // there are no windows). |
| 327 static void OpenHistoryWindow(Profile* profile); | 327 static void OpenHistoryWindow(Profile* profile); |
| 328 static void OpenDownloadsWindow(Profile* profile); | 328 static void OpenDownloadsWindow(Profile* profile); |
| 329 static void OpenHelpWindow(Profile* profile); | 329 static void OpenHelpWindow(Profile* profile); |
| 330 static void OpenOptionsWindow(Profile* profile); | 330 static void OpenOptionsWindow(Profile* profile); |
| 331 static void OpenClearBrowsingDataDialogWindow(Profile* profile); | 331 static void OpenClearBrowsingDataDialogWindow(Profile* profile); |
| 332 static void OpenImportSettingsDialogWindow(Profile* profile); | 332 static void OpenImportSettingsDialogWindow(Profile* profile); |
| 333 static void OpenInstantConfirmDialogWindow(Profile* profile); | 333 static void OpenInstantConfirmDialogWindow(Profile* profile); |
| 334 static void OpenSyncSetupWindow(Profile* profile); |
| 334 #endif | 335 #endif |
| 335 | 336 |
| 336 // Opens a window with the extensions tab in it - needed by long-lived | 337 // Opens a window with the extensions tab in it - needed by long-lived |
| 337 // extensions which may run with no windows open. | 338 // extensions which may run with no windows open. |
| 338 static void OpenExtensionsWindow(Profile* profile); | 339 static void OpenExtensionsWindow(Profile* profile); |
| 339 | 340 |
| 340 // State Storage and Retrieval for UI /////////////////////////////////////// | 341 // State Storage and Retrieval for UI /////////////////////////////////////// |
| 341 | 342 |
| 342 // Save and restore the window position. | 343 // Save and restore the window position. |
| 343 std::string GetWindowPlacementKey() const; | 344 std::string GetWindowPlacementKey() const; |
| (...skipping 1112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1456 | 1457 |
| 1457 scoped_refptr<FullscreenController> fullscreen_controller_; | 1458 scoped_refptr<FullscreenController> fullscreen_controller_; |
| 1458 | 1459 |
| 1459 // True if the browser window has been shown at least once. | 1460 // True if the browser window has been shown at least once. |
| 1460 bool window_has_shown_; | 1461 bool window_has_shown_; |
| 1461 | 1462 |
| 1462 DISALLOW_COPY_AND_ASSIGN(Browser); | 1463 DISALLOW_COPY_AND_ASSIGN(Browser); |
| 1463 }; | 1464 }; |
| 1464 | 1465 |
| 1465 #endif // CHROME_BROWSER_UI_BROWSER_H_ | 1466 #endif // CHROME_BROWSER_UI_BROWSER_H_ |
| OLD | NEW |