| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_STUB_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_FRAME_IMMERSIVE_MODE_CONTROLLER_STUB_H_ |
| 6 #define CHROME_BROWSER_UI_VIEWS_FRAME_IMMERSIVE_MODE_CONTROLLER_STUB_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_FRAME_IMMERSIVE_MODE_CONTROLLER_STUB_H_ |
| 7 | 7 |
| 8 #include "chrome/browser/ui/views/frame/immersive_mode_controller.h" | 8 #include "chrome/browser/ui/views/frame/immersive_mode_controller.h" |
| 9 | 9 |
| 10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
| 11 #include "base/macros.h" | 11 #include "base/macros.h" |
| 12 | 12 |
| 13 // Stub implementation of ImmersiveModeController for platforms which do not | 13 // Stub implementation of ImmersiveModeController for platforms which do not |
| 14 // support immersive mode yet. | 14 // support immersive mode yet. |
| 15 class ImmersiveModeControllerStub : public ImmersiveModeController { | 15 class ImmersiveModeControllerStub : public ImmersiveModeController { |
| 16 public: | 16 public: |
| 17 ImmersiveModeControllerStub(); | 17 ImmersiveModeControllerStub(); |
| 18 ~ImmersiveModeControllerStub() override; | 18 ~ImmersiveModeControllerStub() override; |
| 19 | 19 |
| 20 // ImmersiveModeController overrides: | 20 // ImmersiveModeController overrides: |
| 21 void Init(BrowserView* browser_view) override; | 21 void Init(BrowserView* browser_view) override; |
| 22 void SetEnabled(bool enabled) override; | 22 void SetEnabled(bool enabled) override; |
| 23 bool IsEnabled() const override; | 23 bool IsEnabled() const override; |
| 24 bool ShouldHideTabIndicators() const override; | |
| 25 bool ShouldHideTopViews() const override; | 24 bool ShouldHideTopViews() const override; |
| 26 bool IsRevealed() const override; | 25 bool IsRevealed() const override; |
| 27 int GetTopContainerVerticalOffset( | 26 int GetTopContainerVerticalOffset( |
| 28 const gfx::Size& top_container_size) const override; | 27 const gfx::Size& top_container_size) const override; |
| 29 ImmersiveRevealedLock* GetRevealedLock(AnimateReveal animate_reveal) override | 28 ImmersiveRevealedLock* GetRevealedLock(AnimateReveal animate_reveal) override |
| 30 WARN_UNUSED_RESULT; | 29 WARN_UNUSED_RESULT; |
| 31 void OnFindBarVisibleBoundsChanged( | 30 void OnFindBarVisibleBoundsChanged( |
| 32 const gfx::Rect& new_visible_bounds_in_screen) override; | 31 const gfx::Rect& new_visible_bounds_in_screen) override; |
| 33 | 32 |
| 34 private: | 33 private: |
| 35 DISALLOW_COPY_AND_ASSIGN(ImmersiveModeControllerStub); | 34 DISALLOW_COPY_AND_ASSIGN(ImmersiveModeControllerStub); |
| 36 }; | 35 }; |
| 37 | 36 |
| 38 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_IMMERSIVE_MODE_CONTROLLER_STUB_H_ | 37 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_IMMERSIVE_MODE_CONTROLLER_STUB_H_ |
| OLD | NEW |