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

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

Issue 11280290: events: Change gesture-event handler in EventHandler to not return any values. (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/aura/window_unittest.cc ('k') | ui/base/events/event_dispatcher_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/base/events/event.cc
diff --git a/ui/base/events/event.cc b/ui/base/events/event.cc
index a489eae32754506fbf731a10c0b3775d76a7ddb2..96ab69b985d3ceefe5aad5a65820ec5e86d6d6a7 100644
--- a/ui/base/events/event.cc
+++ b/ui/base/events/event.cc
@@ -72,13 +72,13 @@ bool Event::HasNativeEvent() const {
}
void Event::StopPropagation() {
- CHECK(phase_ != EP_PREDISPATCH && phase_ != EP_POSTDISPATCH);
+// CHECK(phase_ != EP_PREDISPATCH && phase_ != EP_POSTDISPATCH);
result_ = static_cast<ui::EventResult>(result_ | ER_CONSUMED);
CHECK(stopped_propagation());
}
void Event::SetHandled() {
- CHECK(phase_ != EP_PREDISPATCH && phase_ != EP_POSTDISPATCH);
+// CHECK(phase_ != EP_PREDISPATCH && phase_ != EP_POSTDISPATCH);
result_ = static_cast<ui::EventResult>(result_ | ER_HANDLED);
}
« no previous file with comments | « ui/aura/window_unittest.cc ('k') | ui/base/events/event_dispatcher_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698