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

Unified Diff: ui/aura/test/test_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/test/test_window_delegate.h
diff --git a/ui/aura/test/test_window_delegate.h b/ui/aura/test/test_window_delegate.h
index bd11017c28ba3b6999fa0f97ef728aa5f57c60e3..1ce73ac309b54dda9cc19ad1b99abd4ee5865115 100644
--- a/ui/aura/test/test_window_delegate.h
+++ b/ui/aura/test/test_window_delegate.h
@@ -35,16 +35,11 @@ class TestWindowDelegate : public WindowDelegate {
const gfx::Rect& new_bounds) OVERRIDE;
virtual void OnFocus(Window* old_focused_window) OVERRIDE;
virtual void OnBlur() OVERRIDE;
- virtual bool OnKeyEvent(ui::KeyEvent* event) OVERRIDE;
virtual gfx::NativeCursor GetCursor(const gfx::Point& point) OVERRIDE;
virtual int GetNonClientComponent(const gfx::Point& point) const OVERRIDE;
virtual bool ShouldDescendIntoChildForEventHandling(
Window* child,
const gfx::Point& location) OVERRIDE;
- virtual bool OnMouseEvent(ui::MouseEvent* event) OVERRIDE;
- virtual ui::TouchStatus OnTouchEvent(ui::TouchEvent* event) OVERRIDE;
- virtual ui::EventResult OnGestureEvent(
- ui::GestureEvent* event) OVERRIDE;
virtual bool CanFocus() OVERRIDE;
virtual void OnCaptureLost() OVERRIDE;
virtual void OnPaint(gfx::Canvas* canvas) OVERRIDE;
@@ -55,6 +50,12 @@ class TestWindowDelegate : public WindowDelegate {
virtual bool HasHitTestMask() const OVERRIDE;
virtual void GetHitTestMask(gfx::Path* mask) const OVERRIDE;
+ // Overridden from ui::EventHandler:
+ virtual ui::EventResult OnKeyEvent(ui::KeyEvent* event) OVERRIDE;
+ virtual ui::EventResult OnMouseEvent(ui::MouseEvent* event) OVERRIDE;
+ virtual ui::TouchStatus OnTouchEvent(ui::TouchEvent* event) OVERRIDE;
+ virtual ui::EventResult OnGestureEvent(ui::GestureEvent* event) OVERRIDE;
+
private:
int window_component_;
bool delete_on_destroyed_;
@@ -72,7 +73,7 @@ class ColorTestWindowDelegate : public TestWindowDelegate {
ui::KeyboardCode last_key_code() const { return last_key_code_; }
// Overridden from TestWindowDelegate:
- virtual bool OnKeyEvent(ui::KeyEvent* event) OVERRIDE;
+ virtual ui::EventResult OnKeyEvent(ui::KeyEvent* event) OVERRIDE;
virtual void OnWindowDestroyed() OVERRIDE;
virtual void OnPaint(gfx::Canvas* canvas) OVERRIDE;
@@ -104,8 +105,8 @@ class EventCountDelegate : public TestWindowDelegate {
EventCountDelegate();
// Overridden from TestWindowDelegate:
- virtual bool OnMouseEvent(ui::MouseEvent* event) OVERRIDE;
- virtual bool OnKeyEvent(ui::KeyEvent* event) OVERRIDE;
+ virtual ui::EventResult OnKeyEvent(ui::KeyEvent* event) OVERRIDE;
+ virtual ui::EventResult OnMouseEvent(ui::MouseEvent* event) OVERRIDE;
// Returns the counts of mouse motion events in the
// form of "<enter> <move> <leave>".

Powered by Google App Engine
This is Rietveld 408576698