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

Side by Side Diff: ui/aura/test/test_event_handler.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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « ui/aura/test/test_event_handler.h ('k') | ui/aura/test/test_window_delegate.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "ui/aura/test/test_event_handler.h" 5 #include "ui/aura/test/test_event_handler.h"
6 6
7 namespace aura { 7 namespace aura {
8 namespace test { 8 namespace test {
9 9
10 TestEventHandler::TestEventHandler() 10 TestEventHandler::TestEventHandler()
(...skipping 27 matching lines...) Expand all
38 ui::EventResult TestEventHandler::OnScrollEvent(ui::ScrollEvent* event) { 38 ui::EventResult TestEventHandler::OnScrollEvent(ui::ScrollEvent* event) {
39 num_scroll_events_++; 39 num_scroll_events_++;
40 return ui::ER_UNHANDLED; 40 return ui::ER_UNHANDLED;
41 } 41 }
42 42
43 ui::EventResult TestEventHandler::OnTouchEvent(ui::TouchEvent* event) { 43 ui::EventResult TestEventHandler::OnTouchEvent(ui::TouchEvent* event) {
44 num_touch_events_++; 44 num_touch_events_++;
45 return ui::ER_UNHANDLED; 45 return ui::ER_UNHANDLED;
46 } 46 }
47 47
48 ui::EventResult TestEventHandler::OnGestureEvent(ui::GestureEvent* event) { 48 void TestEventHandler::OnGestureEvent(ui::GestureEvent* event) {
49 num_gesture_events_++; 49 num_gesture_events_++;
50 return ui::ER_UNHANDLED;
51 } 50 }
52 51
53 } // namespace test 52 } // namespace test
54 } // namespace aura 53 } // namespace aura
OLDNEW
« no previous file with comments | « ui/aura/test/test_event_handler.h ('k') | ui/aura/test/test_window_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698