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

Unified Diff: ui/aura/window_delegate.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/window.cc ('k') | ui/aura/window_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/aura/window_delegate.h
===================================================================
--- ui/aura/window_delegate.h (revision 150582)
+++ ui/aura/window_delegate.h (working copy)
@@ -17,14 +17,15 @@
class Size;
}
-namespace aura {
-
-class Event;
-class GestureEvent;
+namespace ui {
+class GestureEventImpl;
class KeyEvent;
class MouseEvent;
-class TouchEvent;
+class TouchEventImpl;
+}
+namespace aura {
+
// Delegate interface for aura::Window.
class AURA_EXPORT WindowDelegate {
public:
@@ -39,7 +40,7 @@
virtual void OnFocus(aura::Window* old_focused_window) = 0;
virtual void OnBlur() = 0;
- virtual bool OnKeyEvent(KeyEvent* event) = 0;
+ virtual bool OnKeyEvent(ui::KeyEvent* event) = 0;
// Returns the native cursor for the specified point, in window coordinates,
// or NULL for the default cursor.
@@ -55,11 +56,11 @@
Window* child,
const gfx::Point& location) = 0;
- virtual bool OnMouseEvent(MouseEvent* event) = 0;
+ virtual bool OnMouseEvent(ui::MouseEvent* event) = 0;
- virtual ui::TouchStatus OnTouchEvent(TouchEvent* event) = 0;
+ virtual ui::TouchStatus OnTouchEvent(ui::TouchEventImpl* event) = 0;
- virtual ui::GestureStatus OnGestureEvent(GestureEvent* event) = 0;
+ virtual ui::GestureStatus OnGestureEvent(ui::GestureEventImpl* event) = 0;
// Returns true of the window can be focused.
virtual bool CanFocus() = 0;
« no previous file with comments | « ui/aura/window.cc ('k') | ui/aura/window_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698