| 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 56 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 67   explicit ImmersiveModeController(Type type); | 67   explicit ImmersiveModeController(Type type); | 
| 68   virtual ~ImmersiveModeController(); | 68   virtual ~ImmersiveModeController(); | 
| 69 | 69 | 
| 70   // Must initialize after browser view has a Widget and native window. | 70   // Must initialize after browser view has a Widget and native window. | 
| 71   virtual void Init(BrowserView* browser_view) = 0; | 71   virtual void Init(BrowserView* browser_view) = 0; | 
| 72 | 72 | 
| 73   // Enables or disables immersive mode. | 73   // Enables or disables immersive mode. | 
| 74   virtual void SetEnabled(bool enabled) = 0; | 74   virtual void SetEnabled(bool enabled) = 0; | 
| 75   virtual bool IsEnabled() const = 0; | 75   virtual bool IsEnabled() const = 0; | 
| 76 | 76 | 
| 77   // True if the miniature "tab indicators" should be hidden in the main browser |  | 
| 78   // view when immersive mode is enabled. |  | 
| 79   virtual bool ShouldHideTabIndicators() const = 0; |  | 
| 80 |  | 
| 81   // True when the top views are hidden due to immersive mode. | 77   // True when the top views are hidden due to immersive mode. | 
| 82   virtual bool ShouldHideTopViews() const = 0; | 78   virtual bool ShouldHideTopViews() const = 0; | 
| 83 | 79 | 
| 84   // True when the top views are fully or partially visible. | 80   // True when the top views are fully or partially visible. | 
| 85   virtual bool IsRevealed() const = 0; | 81   virtual bool IsRevealed() const = 0; | 
| 86 | 82 | 
| 87   // Returns the top container's vertical offset relative to its parent. When | 83   // Returns the top container's vertical offset relative to its parent. When | 
| 88   // revealing or closing the top-of-window views, part of the top container is | 84   // revealing or closing the top-of-window views, part of the top container is | 
| 89   // offscreen. | 85   // offscreen. | 
| 90   // This method takes in the top container's size because it is called as part | 86   // This method takes in the top container's size because it is called as part | 
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 132 }; | 128 }; | 
| 133 | 129 | 
| 134 namespace chrome { | 130 namespace chrome { | 
| 135 | 131 | 
| 136 // Implemented in immersive_mode_controller_factory.cc. | 132 // Implemented in immersive_mode_controller_factory.cc. | 
| 137 ImmersiveModeController* CreateImmersiveModeController(); | 133 ImmersiveModeController* CreateImmersiveModeController(); | 
| 138 | 134 | 
| 139 }  // namespace chrome | 135 }  // namespace chrome | 
| 140 | 136 | 
| 141 #endif  // CHROME_BROWSER_UI_VIEWS_FRAME_IMMERSIVE_MODE_CONTROLLER_H_ | 137 #endif  // CHROME_BROWSER_UI_VIEWS_FRAME_IMMERSIVE_MODE_CONTROLLER_H_ | 
| OLD | NEW | 
|---|