OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 #ifndef UI_EVENTS_TEST_EVENTS_TEST_UTILS_H_ | 5 #ifndef UI_EVENTS_TEST_EVENTS_TEST_UTILS_H_ |
6 #define UI_EVENTS_TEST_EVENTS_TEST_UTILS_H_ | 6 #define UI_EVENTS_TEST_EVENTS_TEST_UTILS_H_ |
7 | 7 |
8 #include "ui/events/event.h" | 8 #include "ui/events/event.h" |
| 9 #include "ui/events/event_source.h" |
9 #include "ui/events/event_target.h" | 10 #include "ui/events/event_target.h" |
10 | 11 |
11 namespace ui { | 12 namespace ui { |
12 | 13 |
13 class EventTestApi { | 14 class EventTestApi { |
14 public: | 15 public: |
15 explicit EventTestApi(Event* event); | 16 explicit EventTestApi(Event* event); |
16 virtual ~EventTestApi(); | 17 virtual ~EventTestApi(); |
17 | 18 |
18 void set_time_stamp(base::TimeDelta time_stamp) { | 19 void set_time_stamp(base::TimeDelta time_stamp) { |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
53 } | 54 } |
54 | 55 |
55 private: | 56 private: |
56 EventTargetTestApi(); | 57 EventTargetTestApi(); |
57 | 58 |
58 EventTarget* target_; | 59 EventTarget* target_; |
59 | 60 |
60 DISALLOW_COPY_AND_ASSIGN(EventTargetTestApi); | 61 DISALLOW_COPY_AND_ASSIGN(EventTargetTestApi); |
61 }; | 62 }; |
62 | 63 |
| 64 class EventSourceTestApi { |
| 65 public: |
| 66 explicit EventSourceTestApi(EventSource* event_source); |
| 67 |
| 68 EventDispatchDetails SendEventToProcessor(Event* event) WARN_UNUSED_RESULT; |
| 69 |
| 70 private: |
| 71 EventSourceTestApi(); |
| 72 |
| 73 EventSource* event_source_; |
| 74 |
| 75 DISALLOW_COPY_AND_ASSIGN(EventSourceTestApi); |
| 76 }; |
| 77 |
63 } // namespace ui | 78 } // namespace ui |
64 | 79 |
65 #endif // UI_EVENTS_TEST_EVENTS_TEST_UTILS_H_ | 80 #endif // UI_EVENTS_TEST_EVENTS_TEST_UTILS_H_ |
OLD | NEW |