| OLD | NEW |
| 1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 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_VIEWS_FRAME_IMMERSIVE_MODE_CONTROLLER_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_FRAME_IMMERSIVE_MODE_CONTROLLER_H_ |
| 6 #define CHROME_BROWSER_UI_VIEWS_FRAME_IMMERSIVE_MODE_CONTROLLER_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_FRAME_IMMERSIVE_MODE_CONTROLLER_H_ |
| 7 | 7 |
| 8 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
| 9 #include "base/observer_list.h" | 9 #include "base/observer_list.h" |
| 10 | 10 |
| 11 class BookmarkBarView; | 11 class BookmarkBarView; |
| 12 class FullscreenController; | 12 class FullscreenController; |
| 13 | 13 |
| 14 namespace content { | |
| 15 class WebContents; | |
| 16 } | |
| 17 | |
| 18 namespace gfx { | 14 namespace gfx { |
| 19 class Rect; | 15 class Rect; |
| 20 class Size; | 16 class Size; |
| 21 } | 17 } |
| 22 | 18 |
| 23 namespace views { | 19 namespace views { |
| 24 class View; | 20 class View; |
| 25 class Widget; | 21 class Widget; |
| 26 } | 22 } |
| 27 | 23 |
| (...skipping 30 matching lines...) Expand all Loading... |
| 58 }; | 54 }; |
| 59 | 55 |
| 60 class Delegate { | 56 class Delegate { |
| 61 public: | 57 public: |
| 62 // Returns the bookmark bar, or NULL if the window does not support one. | 58 // Returns the bookmark bar, or NULL if the window does not support one. |
| 63 virtual BookmarkBarView* GetBookmarkBar() = 0; | 59 virtual BookmarkBarView* GetBookmarkBar() = 0; |
| 64 | 60 |
| 65 // Returns the browser's FullscreenController. | 61 // Returns the browser's FullscreenController. |
| 66 virtual FullscreenController* GetFullscreenController() = 0; | 62 virtual FullscreenController* GetFullscreenController() = 0; |
| 67 | 63 |
| 68 // Returns the browser's active web contents for the active tab, or NULL if | |
| 69 // such does not exist. | |
| 70 virtual content::WebContents* GetWebContents() = 0; | |
| 71 | |
| 72 // Notifies the delegate that fullscreen has been entered or exited. | 64 // Notifies the delegate that fullscreen has been entered or exited. |
| 73 virtual void FullscreenStateChanged() = 0; | 65 virtual void FullscreenStateChanged() = 0; |
| 74 | 66 |
| 75 // Requests that the tab strip be painted in a short, "light bar" style. | 67 // Requests that the tab strip be painted in a short, "light bar" style. |
| 76 virtual void SetImmersiveStyle(bool immersive) = 0; | 68 virtual void SetImmersiveStyle(bool immersive) = 0; |
| 77 | 69 |
| 78 protected: | 70 protected: |
| 79 virtual ~Delegate() {} | 71 virtual ~Delegate() {} |
| 80 }; | 72 }; |
| 81 | 73 |
| (...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 140 }; | 132 }; |
| 141 | 133 |
| 142 namespace chrome { | 134 namespace chrome { |
| 143 | 135 |
| 144 // Implemented in immersive_mode_controller_factory.cc. | 136 // Implemented in immersive_mode_controller_factory.cc. |
| 145 ImmersiveModeController* CreateImmersiveModeController(); | 137 ImmersiveModeController* CreateImmersiveModeController(); |
| 146 | 138 |
| 147 } // namespace chrome | 139 } // namespace chrome |
| 148 | 140 |
| 149 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_IMMERSIVE_MODE_CONTROLLER_H_ | 141 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_IMMERSIVE_MODE_CONTROLLER_H_ |
| OLD | NEW |