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

Unified Diff: ui/aura/gestures/gesture_recognizer_unittest.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/demo/demo_main.cc ('k') | ui/aura/root_window_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/aura/gestures/gesture_recognizer_unittest.cc
diff --git a/ui/aura/gestures/gesture_recognizer_unittest.cc b/ui/aura/gestures/gesture_recognizer_unittest.cc
index 76251b84facfef434f7b7a19e6cabff43aa751f6..3593b0dc8c9f8264c8b52e038df974691a8c763b 100644
--- a/ui/aura/gestures/gesture_recognizer_unittest.cc
+++ b/ui/aura/gestures/gesture_recognizer_unittest.cc
@@ -176,8 +176,7 @@ class GestureEventConsumeDelegate : public TestWindowDelegate {
run_loop_->Run();
}
- virtual ui::EventResult OnGestureEvent(
- ui::GestureEvent* gesture) OVERRIDE {
+ virtual void OnGestureEvent(ui::GestureEvent* gesture) OVERRIDE {
events_.push_back(gesture->type());
bounding_box_ = gesture->details().bounding_box();
switch (gesture->type()) {
@@ -256,7 +255,7 @@ class GestureEventConsumeDelegate : public TestWindowDelegate {
run_loop_->Quit();
wait_until_event_ = ui::ET_UNKNOWN;
}
- return ui::ER_CONSUMED;
+ gesture->StopPropagation();
}
private:
« no previous file with comments | « ui/aura/demo/demo_main.cc ('k') | ui/aura/root_window_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698