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

Unified Diff: ui/aura/window_delegate.h

Issue 10908127: events: Move EventTarget into Event. (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
Index: ui/aura/window_delegate.h
diff --git a/ui/aura/window_delegate.h b/ui/aura/window_delegate.h
index 7ebd2cc46aeedc1a5f048f6350a5eb95b7e09c94..ba25a1288e9c9682de8fe397a0a6455fc4502c75 100644
--- a/ui/aura/window_delegate.h
+++ b/ui/aura/window_delegate.h
@@ -42,8 +42,6 @@ class AURA_EXPORT WindowDelegate : public ui::EventHandler {
virtual void OnFocus(aura::Window* old_focused_window) = 0;
virtual void OnBlur() = 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.
virtual gfx::NativeCursor GetCursor(const gfx::Point& point) = 0;
@@ -58,12 +56,6 @@ class AURA_EXPORT WindowDelegate : public ui::EventHandler {
Window* child,
const gfx::Point& location) = 0;
- virtual bool OnMouseEvent(ui::MouseEvent* event) = 0;
-
- virtual ui::TouchStatus OnTouchEvent(ui::TouchEvent* event) = 0;
-
- virtual ui::EventResult OnGestureEvent(ui::GestureEvent* event) = 0;
-
// Returns true of the window can be focused.
virtual bool CanFocus() = 0;
@@ -105,16 +97,8 @@ class AURA_EXPORT WindowDelegate : public ui::EventHandler {
protected:
virtual ~WindowDelegate() {}
- virtual ui::EventResult OnKeyEvent(ui::EventTarget* target,
- ui::KeyEvent* event) OVERRIDE;
- virtual ui::EventResult OnMouseEvent(ui::EventTarget* target,
- ui::MouseEvent* event) OVERRIDE;
- virtual ui::EventResult OnScrollEvent(ui::EventTarget* target,
- ui::ScrollEvent* event) OVERRIDE;
- virtual ui::TouchStatus OnTouchEvent(ui::EventTarget* target,
- ui::TouchEvent* event) OVERRIDE;
- virtual ui::EventResult OnGestureEvent(ui::EventTarget* target,
- ui::GestureEvent* event) OVERRIDE;
+ // Overridden from ui::EventHandler:
+ virtual ui::EventResult OnScrollEvent(ui::ScrollEvent* event) OVERRIDE;
};
} // namespace aura

Powered by Google App Engine
This is Rietveld 408576698