immersive_mode_controller_stub.h revision 1e9bf3e0803691d0a228da41fc608347b6db4340
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 3// found in the LICENSE file. 4 5#ifndef CHROME_BROWSER_UI_VIEWS_FRAME_IMMERSIVE_MODE_CONTROLLER_STUB_H_ 6#define CHROME_BROWSER_UI_VIEWS_FRAME_IMMERSIVE_MODE_CONTROLLER_STUB_H_ 7 8#include "chrome/browser/ui/views/frame/immersive_mode_controller.h" 9 10#include "base/basictypes.h" 11#include "base/compiler_specific.h" 12 13// Stub implementation of ImmersiveModeController for platforms which do not 14// support immersive mode yet. 15class ImmersiveModeControllerStub : public ImmersiveModeController { 16 public: 17 ImmersiveModeControllerStub(); 18 virtual ~ImmersiveModeControllerStub(); 19 20 // ImmersiveModeController overrides: 21 virtual void Init(Delegate* delegate, 22 views::Widget* widget, 23 views::View* top_container) OVERRIDE; 24 virtual void SetEnabled(bool enabled) OVERRIDE; 25 virtual bool IsEnabled() const OVERRIDE; 26 virtual bool ShouldHideTabIndicators() const OVERRIDE; 27 virtual bool ShouldHideTopViews() const OVERRIDE; 28 virtual bool IsRevealed() const OVERRIDE; 29 virtual int GetTopContainerVerticalOffset( 30 const gfx::Size& top_container_size) const OVERRIDE; 31 virtual ImmersiveRevealedLock* GetRevealedLock( 32 AnimateReveal animate_reveal) OVERRIDE WARN_UNUSED_RESULT; 33 virtual void OnFindBarVisibleBoundsChanged( 34 const gfx::Rect& new_visible_bounds_in_screen) OVERRIDE; 35 virtual void SetupForTest() OVERRIDE; 36 37 private: 38 DISALLOW_COPY_AND_ASSIGN(ImmersiveModeControllerStub); 39}; 40 41#endif // CHROME_BROWSER_UI_VIEWS_FRAME_IMMERSIVE_MODE_CONTROLLER_STUB_H_ 42