Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(274)

Side by Side Diff: chrome/browser/ui/views/frame/immersive_mode_controller_ash.h

Issue 2265563002: Shuffles around immersive related classes (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@immersive_pure_virtual
Patch Set: move comment Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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"
11 #include "ash/common/wm/window_state_observer.h" 10 #include "ash/common/wm/window_state_observer.h"
12 #include "ash/wm/immersive_fullscreen_controller.h" 11 #include "ash/shared/immersive_fullscreen_controller.h"
12 #include "ash/shared/immersive_fullscreen_controller_delegate.h"
13 #include "base/macros.h" 13 #include "base/macros.h"
14 #include "chrome/browser/ui/views/frame/immersive_mode_controller.h" 14 #include "chrome/browser/ui/views/frame/immersive_mode_controller.h"
15 #include "content/public/browser/notification_observer.h" 15 #include "content/public/browser/notification_observer.h"
16 #include "content/public/browser/notification_registrar.h" 16 #include "content/public/browser/notification_registrar.h"
17 #include "ui/gfx/geometry/rect.h" 17 #include "ui/gfx/geometry/rect.h"
18 18
19 namespace aura { 19 namespace aura {
20 class Window; 20 class Window;
21 } 21 }
22 22
23 class ImmersiveModeControllerAsh 23 class ImmersiveModeControllerAsh
24 : public ImmersiveModeController, 24 : public ImmersiveModeController,
25 public ash::WmImmersiveFullscreenControllerDelegate, 25 public ash::ImmersiveFullscreenControllerDelegate,
26 public ash::wm::WindowStateObserver, 26 public ash::wm::WindowStateObserver,
27 public content::NotificationObserver { 27 public content::NotificationObserver {
28 public: 28 public:
29 ImmersiveModeControllerAsh(); 29 ImmersiveModeControllerAsh();
30 ~ImmersiveModeControllerAsh() override; 30 ~ImmersiveModeControllerAsh() override;
31 31
32 ash::ImmersiveFullscreenController* controller() { return controller_.get(); } 32 ash::ImmersiveFullscreenController* controller() { return controller_.get(); }
33 33
34 // ImmersiveModeController overrides: 34 // ImmersiveModeController overrides:
35 void Init(BrowserView* browser_view) override; 35 void Init(BrowserView* browser_view) override;
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
96 // the top-of-window views are not revealed regardless of 96 // the top-of-window views are not revealed regardless of
97 // |use_tab_indicators_|. 97 // |use_tab_indicators_|.
98 double visible_fraction_; 98 double visible_fraction_;
99 99
100 content::NotificationRegistrar registrar_; 100 content::NotificationRegistrar registrar_;
101 101
102 DISALLOW_COPY_AND_ASSIGN(ImmersiveModeControllerAsh); 102 DISALLOW_COPY_AND_ASSIGN(ImmersiveModeControllerAsh);
103 }; 103 };
104 104
105 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_IMMERSIVE_MODE_CONTROLLER_ASH_H_ 105 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_IMMERSIVE_MODE_CONTROLLER_ASH_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698