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

Unified Diff: ui/aura/event_filter.h

Issue 9221014: aura: Gesture event plumbing (skeleton). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: copyright Created 8 years, 11 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 | « ui/aura/event.h ('k') | ui/aura/event_filter_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/aura/event_filter.h
diff --git a/ui/aura/event_filter.h b/ui/aura/event_filter.h
index da2c2d1059094bf31c5c75bc918868fd838e3007..1237652065bb4451cf5efcdf983ce85a5a5d464c 100644
--- a/ui/aura/event_filter.h
+++ b/ui/aura/event_filter.h
@@ -1,4 +1,4 @@
-// Copyright (c) 2011 The Chromium Authors. All rights reserved.
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
@@ -12,6 +12,7 @@
namespace aura {
+class GestureEvent;
class KeyEvent;
class MouseEvent;
class TouchEvent;
@@ -53,6 +54,11 @@ class AURA_EXPORT EventFilter {
virtual ui::TouchStatus PreHandleTouchEvent(Window* target,
TouchEvent* event) = 0;
+ // Returns a value other than ui::GESTURE_STATUS_UNKNOWN if the gesture is
+ // consumed.
+ virtual ui::GestureStatus PreHandleGestureEvent(Window* target,
+ GestureEvent* event) = 0;
+
protected:
Window* owner() { return owner_; }
« no previous file with comments | « ui/aura/event.h ('k') | ui/aura/event_filter_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698