| 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_ASH_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_FRAME_IMMERSIVE_MODE_CONTROLLER_ASH_H_ |
| 6 #define CHROME_BROWSER_UI_VIEWS_FRAME_IMMERSIVE_MODE_CONTROLLER_ASH_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_FRAME_IMMERSIVE_MODE_CONTROLLER_ASH_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 | 9 |
| 10 #include "ash/common/wm/immersive/wm_immersive_fullscreen_controller_delegate.h" |
| 10 #include "ash/common/wm/window_state_observer.h" | 11 #include "ash/common/wm/window_state_observer.h" |
| 11 #include "ash/wm/immersive_fullscreen_controller.h" | 12 #include "ash/wm/immersive_fullscreen_controller.h" |
| 12 #include "base/macros.h" | 13 #include "base/macros.h" |
| 13 #include "chrome/browser/ui/views/frame/immersive_mode_controller.h" | 14 #include "chrome/browser/ui/views/frame/immersive_mode_controller.h" |
| 14 #include "content/public/browser/notification_observer.h" | 15 #include "content/public/browser/notification_observer.h" |
| 15 #include "content/public/browser/notification_registrar.h" | 16 #include "content/public/browser/notification_registrar.h" |
| 16 #include "ui/gfx/geometry/rect.h" | 17 #include "ui/gfx/geometry/rect.h" |
| 17 | 18 |
| 18 namespace aura { | 19 namespace aura { |
| 19 class Window; | 20 class Window; |
| 20 } | 21 } |
| 21 | 22 |
| 22 class ImmersiveModeControllerAsh | 23 class ImmersiveModeControllerAsh |
| 23 : public ImmersiveModeController, | 24 : public ImmersiveModeController, |
| 24 public ash::ImmersiveFullscreenController::Delegate, | 25 public ash::WmImmersiveFullscreenControllerDelegate, |
| 25 public ash::wm::WindowStateObserver, | 26 public ash::wm::WindowStateObserver, |
| 26 public content::NotificationObserver { | 27 public content::NotificationObserver { |
| 27 public: | 28 public: |
| 28 ImmersiveModeControllerAsh(); | 29 ImmersiveModeControllerAsh(); |
| 29 ~ImmersiveModeControllerAsh() override; | 30 ~ImmersiveModeControllerAsh() override; |
| 30 | 31 |
| 31 // ImmersiveModeController overrides: | 32 // ImmersiveModeController overrides: |
| 32 void Init(BrowserView* browser_view) override; | 33 void Init(BrowserView* browser_view) override; |
| 33 void SetEnabled(bool enabled) override; | 34 void SetEnabled(bool enabled) override; |
| 34 bool IsEnabled() const override; | 35 bool IsEnabled() const override; |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 94 // the top-of-window views are not revealed regardless of | 95 // the top-of-window views are not revealed regardless of |
| 95 // |use_tab_indicators_|. | 96 // |use_tab_indicators_|. |
| 96 double visible_fraction_; | 97 double visible_fraction_; |
| 97 | 98 |
| 98 content::NotificationRegistrar registrar_; | 99 content::NotificationRegistrar registrar_; |
| 99 | 100 |
| 100 DISALLOW_COPY_AND_ASSIGN(ImmersiveModeControllerAsh); | 101 DISALLOW_COPY_AND_ASSIGN(ImmersiveModeControllerAsh); |
| 101 }; | 102 }; |
| 102 | 103 |
| 103 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_IMMERSIVE_MODE_CONTROLLER_ASH_H_ | 104 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_IMMERSIVE_MODE_CONTROLLER_ASH_H_ |
| OLD | NEW |