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

Unified Diff: ash/wm/gestures/shelf_gesture_handler.cc

Issue 143023003: Fully support the autohide shelf option for touch UI on Windows. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase to ToT. Created 6 years, 10 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/wm/gestures/shelf_gesture_handler.cc
diff --git a/ash/wm/gestures/shelf_gesture_handler.cc b/ash/wm/gestures/shelf_gesture_handler.cc
index f9fb1b8d43c250f6e8575fa4ddf090e7485a0c69..6a171dc5c8b7a7bee64f6c351d878cd1c9b4fb7b 100644
--- a/ash/wm/gestures/shelf_gesture_handler.cc
+++ b/ash/wm/gestures/shelf_gesture_handler.cc
@@ -43,6 +43,11 @@ bool ShelfGestureHandler::ProcessGestureEvent(const ui::GestureEvent& event) {
ShelfLayoutManager* shelf = controller->GetShelfLayoutManager();
+ if (event.type() == ui::ET_GESTURE_EDGE_SWIPE) {
+ shelf->OnGestureEdgeSwipe(event);
+ return true;
+ }
+
const aura::Window* fullscreen = controller->GetWindowForFullscreenMode();
if (fullscreen &&
ash::wm::GetWindowState(fullscreen)->hide_shelf_when_fullscreen()) {

Powered by Google App Engine
This is Rietveld 408576698