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