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

Side by Side Diff: ash/shared/immersive_fullscreen_controller.h

Issue 2908333003: [mus+ash] Removes WmWindow from ash (app_list, frame, metrics, session, system, wallpaper) (Closed)
Patch Set: [mus ash] Removes WmWindow from ash (rebase, nits and cleanup of use of ResizeHandleWindowTargeter) Created 3 years, 6 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
« no previous file with comments | « ash/screen_util.cc ('k') | ash/shared/immersive_fullscreen_controller.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 ASH_SHARED_IMMERSIVE_FULLSCREEN_CONTROLLER_H_ 5 #ifndef ASH_SHARED_IMMERSIVE_FULLSCREEN_CONTROLLER_H_
6 #define ASH_SHARED_IMMERSIVE_FULLSCREEN_CONTROLLER_H_ 6 #define ASH_SHARED_IMMERSIVE_FULLSCREEN_CONTROLLER_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 21 matching lines...) Expand all
32 class View; 32 class View;
33 class Widget; 33 class Widget;
34 } 34 }
35 35
36 namespace ash { 36 namespace ash {
37 37
38 class ImmersiveFocusWatcher; 38 class ImmersiveFocusWatcher;
39 class ImmersiveFullscreenControllerDelegate; 39 class ImmersiveFullscreenControllerDelegate;
40 class ImmersiveFullscreenControllerTestApi; 40 class ImmersiveFullscreenControllerTestApi;
41 class ImmersiveGestureHandler; 41 class ImmersiveGestureHandler;
42 class WmWindow;
43 42
44 class ASH_EXPORT ImmersiveFullscreenController 43 class ASH_EXPORT ImmersiveFullscreenController
45 : public gfx::AnimationDelegate, 44 : public gfx::AnimationDelegate,
46 public views::PointerWatcher, 45 public views::PointerWatcher,
47 public views::WidgetObserver, 46 public views::WidgetObserver,
48 public ImmersiveRevealedLock::Delegate { 47 public ImmersiveRevealedLock::Delegate {
49 public: 48 public:
50 // The enum is used for an enumerated histogram. New items should be only 49 // The enum is used for an enumerated histogram. New items should be only
51 // added to the end. 50 // added to the end.
52 enum WindowType { 51 enum WindowType {
(...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after
220 // is a bezel sensor above the top container. 219 // is a bezel sensor above the top container.
221 bool ShouldHandleGestureEvent(const gfx::Point& location) const; 220 bool ShouldHandleGestureEvent(const gfx::Point& location) const;
222 221
223 // Returns the display bounds of the screen |widget_| is on. 222 // Returns the display bounds of the screen |widget_| is on.
224 gfx::Rect GetDisplayBoundsInScreen() const; 223 gfx::Rect GetDisplayBoundsInScreen() const;
225 224
226 // Not owned. 225 // Not owned.
227 ImmersiveFullscreenControllerDelegate* delegate_; 226 ImmersiveFullscreenControllerDelegate* delegate_;
228 views::View* top_container_; 227 views::View* top_container_;
229 views::Widget* widget_; 228 views::Widget* widget_;
230 // The WmWindow for |widget_|.
231 WmWindow* widget_window_ = nullptr;
232 229
233 // True if the observers have been enabled. 230 // True if the observers have been enabled.
234 bool observers_enabled_; 231 bool observers_enabled_;
235 232
236 // True when in immersive fullscreen. 233 // True when in immersive fullscreen.
237 bool enabled_; 234 bool enabled_;
238 235
239 // State machine for the revealed/closed animations. 236 // State machine for the revealed/closed animations.
240 RevealState reveal_state_; 237 RevealState reveal_state_;
241 238
(...skipping 26 matching lines...) Expand all
268 std::unique_ptr<ImmersiveGestureHandler> immersive_gesture_handler_; 265 std::unique_ptr<ImmersiveGestureHandler> immersive_gesture_handler_;
269 266
270 base::WeakPtrFactory<ImmersiveFullscreenController> weak_ptr_factory_; 267 base::WeakPtrFactory<ImmersiveFullscreenController> weak_ptr_factory_;
271 268
272 DISALLOW_COPY_AND_ASSIGN(ImmersiveFullscreenController); 269 DISALLOW_COPY_AND_ASSIGN(ImmersiveFullscreenController);
273 }; 270 };
274 271
275 } // namespace ash 272 } // namespace ash
276 273
277 #endif // ASH_SHARED_IMMERSIVE_FULLSCREEN_CONTROLLER_H_ 274 #endif // ASH_SHARED_IMMERSIVE_FULLSCREEN_CONTROLLER_H_
OLDNEW
« no previous file with comments | « ash/screen_util.cc ('k') | ash/shared/immersive_fullscreen_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698