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

Unified Diff: ui/views/corewm/focus_controller.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_change_shim.cc ('k') | ui/views/corewm/focus_controller_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/corewm/focus_controller.cc
diff --git a/ui/views/corewm/focus_controller.cc b/ui/views/corewm/focus_controller.cc
index 826a65ab14ce5c002868aa5737bcc3e0f30df46e..2d89a34b0a9df18ba718cb3427e2836ca60cb42d 100644
--- a/ui/views/corewm/focus_controller.cc
+++ b/ui/views/corewm/focus_controller.cc
@@ -40,7 +40,8 @@ void DispatchEventsAndUpdateState(ui::EventDispatcher* dispatcher,
{
base::AutoReset<ui::EventTarget*> reset(event_dispatch_target, *state);
FocusChangeEvent changing_event(changing_event_type);
- result = dispatcher->ProcessEvent(*state, &changing_event);
+ dispatcher->ProcessEvent(*state, &changing_event);
+ result = changing_event.result();
}
DCHECK(!(result & ui::ER_CONSUMED))
<< "Focus and Activation events cannot be consumed";
« no previous file with comments | « ui/views/corewm/focus_change_shim.cc ('k') | ui/views/corewm/focus_controller_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698