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_; } |