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 845 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
856 bool TabsNeedBeforeUnloadFired(); | 856 bool TabsNeedBeforeUnloadFired(); |
857 | 857 |
858 bool is_type_tabbed() const { return type_ == TYPE_TABBED; } | 858 bool is_type_tabbed() const { return type_ == TYPE_TABBED; } |
859 bool is_type_popup() const { return type_ == TYPE_POPUP; } | 859 bool is_type_popup() const { return type_ == TYPE_POPUP; } |
860 bool is_type_panel() const { return type_ == TYPE_PANEL; } | 860 bool is_type_panel() const { return type_ == TYPE_PANEL; } |
861 bool is_type_shell() const { return type_ == TYPE_SHELL; } | 861 bool is_type_shell() const { return type_ == TYPE_SHELL; } |
862 | 862 |
863 bool is_app() const; | 863 bool is_app() const; |
864 bool is_devtools() const; | 864 bool is_devtools() const; |
865 | 865 |
| 866 // Will return NULL if this is not a browser for a platform app. |
| 867 const Extension* GetPlatformApp() const; |
| 868 |
866 // True when the current tab is in fullscreen mode, requested by | 869 // True when the current tab is in fullscreen mode, requested by |
867 // webkitRequestFullScreen. | 870 // webkitRequestFullScreen. |
868 bool IsFullscreenForTab() const; | 871 bool IsFullscreenForTab() const; |
869 | 872 |
870 // Called each time the browser window is shown. | 873 // Called each time the browser window is shown. |
871 void OnWindowDidShow(); | 874 void OnWindowDidShow(); |
872 | 875 |
873 protected: | 876 protected: |
874 // Wrapper for the factory method in BrowserWindow. This allows subclasses to | 877 // Wrapper for the factory method in BrowserWindow. This allows subclasses to |
875 // set their own window. | 878 // set their own window. |
(...skipping 552 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1428 | 1431 |
1429 scoped_refptr<FullscreenController> fullscreen_controller_; | 1432 scoped_refptr<FullscreenController> fullscreen_controller_; |
1430 | 1433 |
1431 // True if the browser window has been shown at least once. | 1434 // True if the browser window has been shown at least once. |
1432 bool window_has_shown_; | 1435 bool window_has_shown_; |
1433 | 1436 |
1434 DISALLOW_COPY_AND_ASSIGN(Browser); | 1437 DISALLOW_COPY_AND_ASSIGN(Browser); |
1435 }; | 1438 }; |
1436 | 1439 |
1437 #endif // CHROME_BROWSER_UI_BROWSER_H_ | 1440 #endif // CHROME_BROWSER_UI_BROWSER_H_ |
OLD | NEW |