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

Unified Diff: ui/aura/window_unittest.cc

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_unittest.cc
diff --git a/ui/aura/window_unittest.cc b/ui/aura/window_unittest.cc
index a13b783b2c2cfe52ba1da04bbf507fc1ab9a3f6a..51598466f1d09b88b58c10dddd678c2c22a380bd 100644
--- a/ui/aura/window_unittest.cc
+++ b/ui/aura/window_unittest.cc
@@ -165,11 +165,11 @@ class CaptureWindowDelegateImpl : public TestWindowDelegate {
int touch_event_count() const { return touch_event_count_; }
int gesture_event_count() const { return gesture_event_count_; }
- virtual bool OnMouseEvent(ui::MouseEvent* event) OVERRIDE {
+ virtual ui::EventResult OnMouseEvent(ui::MouseEvent* event) OVERRIDE {
if (event->type() == ui::ET_MOUSE_CAPTURE_CHANGED)
capture_changed_event_count_++;
mouse_event_count_++;
- return false;
+ return ui::ER_UNHANDLED;
}
virtual ui::TouchStatus OnTouchEvent(ui::TouchEvent* event) OVERRIDE {
touch_event_count_++;
@@ -1033,7 +1033,7 @@ class MouseEnterExitWindowDelegate : public TestWindowDelegate {
public:
MouseEnterExitWindowDelegate() : entered_(false), exited_(false) {}
- virtual bool OnMouseEvent(ui::MouseEvent* event) OVERRIDE {
+ virtual ui::EventResult OnMouseEvent(ui::MouseEvent* event) OVERRIDE {
switch (event->type()) {
case ui::ET_MOUSE_ENTERED:
entered_ = true;
@@ -1044,7 +1044,7 @@ class MouseEnterExitWindowDelegate : public TestWindowDelegate {
default:
break;
}
- return false;
+ return ui::ER_UNHANDLED;
}
bool entered() const { return entered_; }

Powered by Google App Engine
This is Rietveld 408576698