| 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 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 142 Profile* profile; | 142 Profile* profile; |
| 143 | 143 |
| 144 // The application name that is also the name of the window to the shell. | 144 // The application name that is also the name of the window to the shell. |
| 145 // This name should be set when: | 145 // This name should be set when: |
| 146 // 1) we launch an application via an application shortcut or extension API. | 146 // 1) we launch an application via an application shortcut or extension API. |
| 147 // 2) we launch an undocked devtool window. | 147 // 2) we launch an undocked devtool window. |
| 148 std::string app_name; | 148 std::string app_name; |
| 149 | 149 |
| 150 // The bounds of the window to open. | 150 // The bounds of the window to open. |
| 151 gfx::Rect initial_bounds; | 151 gfx::Rect initial_bounds; |
| 152 |
| 153 ui::WindowShowState initial_show_state; |
| 154 |
| 155 bool is_session_restore; |
| 152 }; | 156 }; |
| 153 | 157 |
| 154 // Constructors, Creation, Showing ////////////////////////////////////////// | 158 // Constructors, Creation, Showing ////////////////////////////////////////// |
| 155 | 159 |
| 156 // Creates a new browser of the given |type| and for the given |profile|. The | 160 // Creates a new browser of the given |type| and for the given |profile|. The |
| 157 // Browser has a NULL window after its construction, InitBrowserWindow must | 161 // Browser has a NULL window after its construction, InitBrowserWindow must |
| 158 // be called after configuration for window() to be valid. | 162 // be called after configuration for window() to be valid. |
| 159 // Avoid using this constructor directly if you can use one of the Create*() | 163 // Avoid using this constructor directly if you can use one of the Create*() |
| 160 // methods below. This applies to almost all non-testing code. | 164 // methods below. This applies to almost all non-testing code. |
| 161 Browser(Type type, Profile* profile); | 165 Browser(Type type, Profile* profile); |
| (...skipping 1295 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1457 | 1461 |
| 1458 scoped_refptr<FullscreenController> fullscreen_controller_; | 1462 scoped_refptr<FullscreenController> fullscreen_controller_; |
| 1459 | 1463 |
| 1460 // True if the browser window has been shown at least once. | 1464 // True if the browser window has been shown at least once. |
| 1461 bool window_has_shown_; | 1465 bool window_has_shown_; |
| 1462 | 1466 |
| 1463 DISALLOW_COPY_AND_ASSIGN(Browser); | 1467 DISALLOW_COPY_AND_ASSIGN(Browser); |
| 1464 }; | 1468 }; |
| 1465 | 1469 |
| 1466 #endif // CHROME_BROWSER_UI_BROWSER_H_ | 1470 #endif // CHROME_BROWSER_UI_BROWSER_H_ |
| OLD | NEW |