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

Unified Diff: ui/base/events/event.cc

Issue 10911256: Change the way the ToplevelEventHandler is hooked up. It is now both a pre- and post-target event h… (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
« no previous file with comments | « ash/wm/workspace/workspace_event_handler.cc ('k') | ui/base/events/event_constants.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/base/events/event.cc
===================================================================
--- ui/base/events/event.cc (revision 156300)
+++ ui/base/events/event.cc (working copy)
@@ -53,6 +53,10 @@
namespace ui {
+bool EventCanceledDefaultHandling(const ui::Event& event) {
+ return event.phase() == EP_POSTTARGET && event.result() != ER_UNHANDLED;
sadrul 2012/09/12 18:19:33 Right now, the default handler triggers event if o
Ben Goodger (Google) 2012/09/12 18:39:53 But this function won't even be called if event.re
sadrul 2012/09/12 18:47:36 Ah yes. For CONSUMED, this wouldn't be called at a
+}
+
////////////////////////////////////////////////////////////////////////////////
// Event
« no previous file with comments | « ash/wm/workspace/workspace_event_handler.cc ('k') | ui/base/events/event_constants.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698