| 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/macros.h" | 9 #include "base/macros.h" |
| 10 #include "base/observer_list.h" | 10 #include "base/observer_list.h" |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 60 explicit ImmersiveModeController(Type type); | 60 explicit ImmersiveModeController(Type type); |
| 61 virtual ~ImmersiveModeController(); | 61 virtual ~ImmersiveModeController(); |
| 62 | 62 |
| 63 // Must initialize after browser view has a Widget and native window. | 63 // Must initialize after browser view has a Widget and native window. |
| 64 virtual void Init(BrowserView* browser_view) = 0; | 64 virtual void Init(BrowserView* browser_view) = 0; |
| 65 | 65 |
| 66 // Enables or disables immersive mode. | 66 // Enables or disables immersive mode. |
| 67 virtual void SetEnabled(bool enabled) = 0; | 67 virtual void SetEnabled(bool enabled) = 0; |
| 68 virtual bool IsEnabled() const = 0; | 68 virtual bool IsEnabled() const = 0; |
| 69 | 69 |
| 70 // True if the miniature "tab indicators" should be hidden in the main browser | |
| 71 // view when immersive mode is enabled. | |
| 72 virtual bool ShouldHideTabIndicators() const = 0; | |
| 73 | |
| 74 // True when the top views are hidden due to immersive mode. | 70 // True when the top views are hidden due to immersive mode. |
| 75 virtual bool ShouldHideTopViews() const = 0; | 71 virtual bool ShouldHideTopViews() const = 0; |
| 76 | 72 |
| 77 // True when the top views are fully or partially visible. | 73 // True when the top views are fully or partially visible. |
| 78 virtual bool IsRevealed() const = 0; | 74 virtual bool IsRevealed() const = 0; |
| 79 | 75 |
| 80 // Returns the top container's vertical offset relative to its parent. When | 76 // Returns the top container's vertical offset relative to its parent. When |
| 81 // revealing or closing the top-of-window views, part of the top container is | 77 // revealing or closing the top-of-window views, part of the top container is |
| 82 // offscreen. | 78 // offscreen. |
| 83 // This method takes in the top container's size because it is called as part | 79 // This method takes in the top container's size because it is called as part |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 121 }; | 117 }; |
| 122 | 118 |
| 123 namespace chrome { | 119 namespace chrome { |
| 124 | 120 |
| 125 // Implemented in immersive_mode_controller_factory.cc. | 121 // Implemented in immersive_mode_controller_factory.cc. |
| 126 ImmersiveModeController* CreateImmersiveModeController(); | 122 ImmersiveModeController* CreateImmersiveModeController(); |
| 127 | 123 |
| 128 } // namespace chrome | 124 } // namespace chrome |
| 129 | 125 |
| 130 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_IMMERSIVE_MODE_CONTROLLER_H_ | 126 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_IMMERSIVE_MODE_CONTROLLER_H_ |
| OLD | NEW |