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