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

Unified Diff: ash/wm/workspace/workspace_event_filter.cc

Issue 10912063: events: Get rid of GestureStatus in favour of EventResult. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 years, 3 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
« no previous file with comments | « ash/wm/workspace/workspace_event_filter.h ('k') | chrome/browser/ui/views/download/download_item_view.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/wm/workspace/workspace_event_filter.cc
diff --git a/ash/wm/workspace/workspace_event_filter.cc b/ash/wm/workspace/workspace_event_filter.cc
index 0865beb3ac71fc97019414a507e0f8c7cfcdd841..9d4ddb25b566c10a8c43ff72b9d2514082fa989b 100644
--- a/ash/wm/workspace/workspace_event_filter.cc
+++ b/ash/wm/workspace/workspace_event_filter.cc
@@ -101,14 +101,14 @@ bool WorkspaceEventFilter::PreHandleMouseEvent(aura::Window* target,
return ToplevelWindowEventFilter::PreHandleMouseEvent(target, event);
}
-ui::GestureStatus WorkspaceEventFilter::PreHandleGestureEvent(
+ui::EventResult WorkspaceEventFilter::PreHandleGestureEvent(
aura::Window* target,
ui::GestureEvent* event) {
if (event->type() == ui::ET_GESTURE_DOUBLE_TAP &&
target->delegate()->GetNonClientComponent(event->location()) ==
HTCAPTION) {
ToggleMaximizedState(target); // |this| may be destroyed from here.
- return ui::GESTURE_STATUS_CONSUMED;
+ return ui::ER_CONSUMED;
}
return ToplevelWindowEventFilter::PreHandleGestureEvent(target, event);
}
« no previous file with comments | « ash/wm/workspace/workspace_event_filter.h ('k') | chrome/browser/ui/views/download/download_item_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698