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

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

Issue 2260613002: Adds ImmersiveContext and ImmersiveHandlerFactory (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix compile 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 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_WM_IMMERSIVE_FULLSCREEN_CONTROLLER_H_ 5 #ifndef ASH_WM_IMMERSIVE_FULLSCREEN_CONTROLLER_H_
6 #define ASH_WM_IMMERSIVE_FULLSCREEN_CONTROLLER_H_ 6 #define ASH_WM_IMMERSIVE_FULLSCREEN_CONTROLLER_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after
187 const gfx::Point& location_in_screen) const; 187 const gfx::Point& location_in_screen) const;
188 188
189 // True when |location| is "near" to the top container. When the top container 189 // True when |location| is "near" to the top container. When the top container
190 // is not closed "near" means within the displayed bounds or above it. When 190 // is not closed "near" means within the displayed bounds or above it. When
191 // the top container is closed "near" means either within the displayed 191 // the top container is closed "near" means either within the displayed
192 // bounds, above it, or within a few pixels below it. This allow the container 192 // bounds, above it, or within a few pixels below it. This allow the container
193 // to steal enough pixels to detect a swipe in and handles the case that there 193 // to steal enough pixels to detect a swipe in and handles the case that there
194 // is a bezel sensor above the top container. 194 // is a bezel sensor above the top container.
195 bool ShouldHandleGestureEvent(const gfx::Point& location) const; 195 bool ShouldHandleGestureEvent(const gfx::Point& location) const;
196 196
197 // Returns the display bounds of the screen |widget_| is on.
198 gfx::Rect GetDisplayBoundsInScreen() const;
199
197 // Not owned. 200 // Not owned.
198 WmImmersiveFullscreenControllerDelegate* delegate_; 201 WmImmersiveFullscreenControllerDelegate* delegate_;
199 views::View* top_container_; 202 views::View* top_container_;
200 views::Widget* widget_; 203 views::Widget* widget_;
201 // The WmWindow for |widget_|. 204 // The WmWindow for |widget_|.
202 WmWindow* widget_window_ = nullptr; 205 WmWindow* widget_window_ = nullptr;
203 206
204 // True if the observers have been enabled. 207 // True if the observers have been enabled.
205 bool observers_enabled_; 208 bool observers_enabled_;
206 209
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
239 std::unique_ptr<ImmersiveGestureHandler> immersive_gesture_handler_; 242 std::unique_ptr<ImmersiveGestureHandler> immersive_gesture_handler_;
240 243
241 base::WeakPtrFactory<ImmersiveFullscreenController> weak_ptr_factory_; 244 base::WeakPtrFactory<ImmersiveFullscreenController> weak_ptr_factory_;
242 245
243 DISALLOW_COPY_AND_ASSIGN(ImmersiveFullscreenController); 246 DISALLOW_COPY_AND_ASSIGN(ImmersiveFullscreenController);
244 }; 247 };
245 248
246 } // namespace ash 249 } // namespace ash
247 250
248 #endif // ASH_WM_IMMERSIVE_FULLSCREEN_CONTROLLER_H_ 251 #endif // ASH_WM_IMMERSIVE_FULLSCREEN_CONTROLLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698