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

Unified Diff: ash/shared/immersive_fullscreen_controller.cc

Issue 2271393002: Wires up drags to pointer watcher adapter. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@lkgr
Patch Set: Fixed patch set 1 errors. 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 side-by-side diff with in-line comments
Download patch
Index: ash/shared/immersive_fullscreen_controller.cc
diff --git a/ash/shared/immersive_fullscreen_controller.cc b/ash/shared/immersive_fullscreen_controller.cc
index 1af174bee4be1412beda419387f14f5cbb5b7d24..b090226cf46e09120414a04be092234b9303c67e 100644
--- a/ash/shared/immersive_fullscreen_controller.cc
+++ b/ash/shared/immersive_fullscreen_controller.cc
@@ -313,8 +313,8 @@ void ImmersiveFullscreenController::EnableWindowObservers(bool enable) {
immersive_gesture_handler_ =
ImmersiveHandlerFactory::Get()->CreateGestureHandler(this);
widget_->AddObserver(this);
- const bool wants_moves = true;
- ImmersiveContext::Get()->AddPointerWatcher(this, wants_moves);
+ const views::RequestedEvents events = views::RequestedEvents::MOVES;
+ ImmersiveContext::Get()->AddPointerWatcher(this, events);
} else {
ImmersiveContext::Get()->RemovePointerWatcher(this);
widget_->RemoveObserver(this);

Powered by Google App Engine
This is Rietveld 408576698