Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 821 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 832 // Figure out if there are tabs that have beforeunload handlers. | 832 // Figure out if there are tabs that have beforeunload handlers. |
| 833 bool TabsNeedBeforeUnloadFired(); | 833 bool TabsNeedBeforeUnloadFired(); |
| 834 | 834 |
| 835 bool is_type_tabbed() const { return type_ == TYPE_TABBED; } | 835 bool is_type_tabbed() const { return type_ == TYPE_TABBED; } |
| 836 bool is_type_popup() const { return type_ == TYPE_POPUP; } | 836 bool is_type_popup() const { return type_ == TYPE_POPUP; } |
| 837 bool is_type_panel() const { return type_ == TYPE_PANEL; } | 837 bool is_type_panel() const { return type_ == TYPE_PANEL; } |
| 838 | 838 |
| 839 bool is_app() const; | 839 bool is_app() const; |
| 840 bool is_devtools() const; | 840 bool is_devtools() const; |
| 841 | 841 |
| 842 bool is_fullscreen_for_tab() const { return !!fullscreened_tab_; } | |
|
Nico
2011/09/15 04:37:32
`return fullscreened_tab_ != NULL;` please
Also,
jeremya
2011/09/15 06:33:28
Done.
| |
| 843 | |
| 842 protected: | 844 protected: |
| 843 // Wrapper for the factory method in BrowserWindow. This allows subclasses to | 845 // Wrapper for the factory method in BrowserWindow. This allows subclasses to |
| 844 // set their own window. | 846 // set their own window. |
| 845 virtual BrowserWindow* CreateBrowserWindow(); | 847 virtual BrowserWindow* CreateBrowserWindow(); |
| 846 | 848 |
| 847 private: | 849 private: |
| 848 FRIEND_TEST_ALL_PREFIXES(AppModeTest, EnableAppModeTest); | 850 FRIEND_TEST_ALL_PREFIXES(AppModeTest, EnableAppModeTest); |
| 849 FRIEND_TEST_ALL_PREFIXES(BrowserTest, NoTabsInPopups); | 851 FRIEND_TEST_ALL_PREFIXES(BrowserTest, NoTabsInPopups); |
| 850 FRIEND_TEST_ALL_PREFIXES(BrowserTest, ConvertTabToAppShortcut); | 852 FRIEND_TEST_ALL_PREFIXES(BrowserTest, ConvertTabToAppShortcut); |
| 851 FRIEND_TEST_ALL_PREFIXES(BrowserTest, OpenAppWindowLikeNtp); | 853 FRIEND_TEST_ALL_PREFIXES(BrowserTest, OpenAppWindowLikeNtp); |
| (...skipping 572 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1424 // Tab to notify when the browser exits fullscreen mode. | 1426 // Tab to notify when the browser exits fullscreen mode. |
| 1425 TabContentsWrapper* fullscreened_tab_; | 1427 TabContentsWrapper* fullscreened_tab_; |
| 1426 | 1428 |
| 1427 // True if the current tab is in fullscreen mode. | 1429 // True if the current tab is in fullscreen mode. |
| 1428 bool tab_caused_fullscreen_; | 1430 bool tab_caused_fullscreen_; |
| 1429 | 1431 |
| 1430 DISALLOW_COPY_AND_ASSIGN(Browser); | 1432 DISALLOW_COPY_AND_ASSIGN(Browser); |
| 1431 }; | 1433 }; |
| 1432 | 1434 |
| 1433 #endif // CHROME_BROWSER_UI_BROWSER_H_ | 1435 #endif // CHROME_BROWSER_UI_BROWSER_H_ |
| OLD | NEW |