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

Unified Diff: ui/aura/event_filter.h

Issue 10827145: Convert Aura to use ui::Event. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 4 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.cc ('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
===================================================================
--- ui/aura/event_filter.h (revision 150582)
+++ ui/aura/event_filter.h (working copy)
@@ -9,12 +9,15 @@
#include "ui/aura/aura_export.h"
#include "ui/base/events.h"
+namespace ui {
+class GestureEventImpl;
+class KeyEvent;
+class MouseEvent;
+class TouchEventImpl;
+}
+
namespace aura {
-class GestureEvent;
-class KeyEvent;
-class MouseEvent;
-class TouchEvent;
class Window;
// An object that filters events sent to an owner window. The filter can stop
@@ -44,18 +47,19 @@
// filter may still perform some action, the return value simply indicates
// that further processing can occur.
- virtual bool PreHandleKeyEvent(Window* target, KeyEvent* event) = 0;
- virtual bool PreHandleMouseEvent(Window* target, MouseEvent* event) = 0;
+ virtual bool PreHandleKeyEvent(Window* target, ui::KeyEvent* event) = 0;
+ virtual bool PreHandleMouseEvent(Window* target, ui::MouseEvent* event) = 0;
// Returns a value other than ui::TOUCH_STATUS_UNKNOWN if the event is
// consumed.
virtual ui::TouchStatus PreHandleTouchEvent(Window* target,
- TouchEvent* event) = 0;
+ ui::TouchEventImpl* 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;
+ virtual ui::GestureStatus PreHandleGestureEvent(
+ Window* target,
+ ui::GestureEventImpl* event) = 0;
};
} // namespace aura
« no previous file with comments | « ui/aura/event.cc ('k') | ui/aura/event_filter_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698