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

Unified Diff: ui/views/corewm/focus_controller_unittest.cc

Issue 11308322: events: Start changing EventHandler interface to not return a value. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 years 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/views/corewm/focus_controller.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/corewm/focus_controller_unittest.cc
diff --git a/ui/views/corewm/focus_controller_unittest.cc b/ui/views/corewm/focus_controller_unittest.cc
index 6fb0751f3d94b23e702947e4ccf7cdbb84fda828..ee4b8346ec808adf62c17d2a1d7d36453f8eb17a 100644
--- a/ui/views/corewm/focus_controller_unittest.cc
+++ b/ui/views/corewm/focus_controller_unittest.cc
@@ -42,9 +42,12 @@ class FocusEventsTestHandler : public ui::EventHandler,
private:
// Overridden from ui::EventHandler:
- virtual ui::EventResult OnEvent(ui::Event* event) OVERRIDE {
+ virtual void OnEvent(ui::Event* event) OVERRIDE {
event_counts_[event->type()] += 1;
- return result_;
+ if (result_ & ui::ER_CONSUMED)
+ event->StopPropagation();
+ else if (result_ & ui::ER_HANDLED)
+ event->SetHandled();
}
// Overridden from aura::WindowObserver:
« no previous file with comments | « ui/views/corewm/focus_controller.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698