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

Unified Diff: chrome/browser/ui/views/frame/immersive_mode_controller_ash.cc

Issue 14195016: Add in gesture for immersive mode (Closed) Base URL: https://codereview.chromium.org/13315002/
Patch Set: Created 7 years, 8 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
« ash/wm/gestures/border_gesture_handler.cc ('K') | « ash/wm/window_properties.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/views/frame/immersive_mode_controller_ash.cc
diff --git a/chrome/browser/ui/views/frame/immersive_mode_controller_ash.cc b/chrome/browser/ui/views/frame/immersive_mode_controller_ash.cc
index 1be5add1046cbe803938af82b1f27dc596bb4626..52087aa5e9f9025e44ae8fe2ec7bcff0760e5d1d 100644
--- a/chrome/browser/ui/views/frame/immersive_mode_controller_ash.cc
+++ b/chrome/browser/ui/views/frame/immersive_mode_controller_ash.cc
@@ -307,6 +307,14 @@ class ImmersiveModeControllerAsh::WindowObserver : public aura::WindowObserver {
controller_->SetEnabled(window->GetProperty(kImmersiveModeKey));
return;
}
+ using ash::internal::kPendingImmersiveGestureKey;
+ if (key == kPendingImmersiveGestureKey) {
+ if (window->GetProperty(kPendingImmersiveGestureKey)) {
+ window->SetProperty(kPendingImmersiveGestureKey, false);
+ controller_->MaybeStartReveal(ANIMATE_FAST);
+ }
+ return;
+ }
}
private:
« ash/wm/gestures/border_gesture_handler.cc ('K') | « ash/wm/window_properties.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698