| 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 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 91 public InstantDelegate { | 91 public InstantDelegate { |
| 92 public: | 92 public: |
| 93 // SessionService::WindowType mirrors these values. If you add to this | 93 // SessionService::WindowType mirrors these values. If you add to this |
| 94 // enum, look at SessionService::WindowType to see if it needs to be | 94 // enum, look at SessionService::WindowType to see if it needs to be |
| 95 // updated. | 95 // updated. |
| 96 enum Type { | 96 enum Type { |
| 97 // If you add a new type, consider updating the test | 97 // If you add a new type, consider updating the test |
| 98 // BrowserTest.StartMaximized. | 98 // BrowserTest.StartMaximized. |
| 99 TYPE_TABBED = 1, | 99 TYPE_TABBED = 1, |
| 100 TYPE_POPUP = 2, | 100 TYPE_POPUP = 2, |
| 101 TYPE_PANEL = 3, | 101 TYPE_PANEL = 3 |
| 102 TYPE_SHELL = 4 | |
| 103 }; | 102 }; |
| 104 | 103 |
| 105 // Possible elements of the Browser window. | 104 // Possible elements of the Browser window. |
| 106 enum WindowFeature { | 105 enum WindowFeature { |
| 107 FEATURE_NONE = 0, | 106 FEATURE_NONE = 0, |
| 108 FEATURE_TITLEBAR = 1, | 107 FEATURE_TITLEBAR = 1, |
| 109 FEATURE_TABSTRIP = 2, | 108 FEATURE_TABSTRIP = 2, |
| 110 FEATURE_TOOLBAR = 4, | 109 FEATURE_TOOLBAR = 4, |
| 111 FEATURE_LOCATIONBAR = 8, | 110 FEATURE_LOCATIONBAR = 8, |
| 112 FEATURE_BOOKMARKBAR = 16, | 111 FEATURE_BOOKMARKBAR = 16, |
| (...skipping 739 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 852 void OnAcceptFullscreenPermission(const GURL& url, | 851 void OnAcceptFullscreenPermission(const GURL& url, |
| 853 FullscreenExitBubbleType bubble_type); | 852 FullscreenExitBubbleType bubble_type); |
| 854 void OnDenyFullscreenPermission(FullscreenExitBubbleType bubble_type); | 853 void OnDenyFullscreenPermission(FullscreenExitBubbleType bubble_type); |
| 855 | 854 |
| 856 // Figure out if there are tabs that have beforeunload handlers. | 855 // Figure out if there are tabs that have beforeunload handlers. |
| 857 bool TabsNeedBeforeUnloadFired(); | 856 bool TabsNeedBeforeUnloadFired(); |
| 858 | 857 |
| 859 bool is_type_tabbed() const { return type_ == TYPE_TABBED; } | 858 bool is_type_tabbed() const { return type_ == TYPE_TABBED; } |
| 860 bool is_type_popup() const { return type_ == TYPE_POPUP; } | 859 bool is_type_popup() const { return type_ == TYPE_POPUP; } |
| 861 bool is_type_panel() const { return type_ == TYPE_PANEL; } | 860 bool is_type_panel() const { return type_ == TYPE_PANEL; } |
| 862 bool is_type_shell() const { return type_ == TYPE_SHELL; } | |
| 863 | 861 |
| 864 bool is_app() const; | 862 bool is_app() const; |
| 865 bool is_devtools() const; | 863 bool is_devtools() const; |
| 866 | 864 |
| 867 // True when the current tab is in fullscreen mode, requested by | 865 // True when the current tab is in fullscreen mode, requested by |
| 868 // webkitRequestFullScreen. | 866 // webkitRequestFullScreen. |
| 869 bool IsFullscreenForTab() const; | 867 bool IsFullscreenForTab() const; |
| 870 | 868 |
| 871 // Called each time the browser window is shown. | 869 // Called each time the browser window is shown. |
| 872 void OnWindowDidShow(); | 870 void OnWindowDidShow(); |
| (...skipping 556 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1429 | 1427 |
| 1430 scoped_refptr<FullscreenController> fullscreen_controller_; | 1428 scoped_refptr<FullscreenController> fullscreen_controller_; |
| 1431 | 1429 |
| 1432 // True if the browser window has been shown at least once. | 1430 // True if the browser window has been shown at least once. |
| 1433 bool window_has_shown_; | 1431 bool window_has_shown_; |
| 1434 | 1432 |
| 1435 DISALLOW_COPY_AND_ASSIGN(Browser); | 1433 DISALLOW_COPY_AND_ASSIGN(Browser); |
| 1436 }; | 1434 }; |
| 1437 | 1435 |
| 1438 #endif // CHROME_BROWSER_UI_BROWSER_H_ | 1436 #endif // CHROME_BROWSER_UI_BROWSER_H_ |
| OLD | NEW |