OLD | NEW |
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 Loading... |
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 |
OLD | NEW |