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_dispatcher.h" |
10 #include "ui/events/event_target.h" | 10 #include "ui/events/event_target.h" |
11 | 11 |
12 namespace ui { | 12 namespace ui { |
13 | 13 |
| 14 class EventSource; |
| 15 |
14 class EventTestApi { | 16 class EventTestApi { |
15 public: | 17 public: |
16 explicit EventTestApi(Event* event); | 18 explicit EventTestApi(Event* event); |
17 virtual ~EventTestApi(); | 19 virtual ~EventTestApi(); |
18 | 20 |
19 void set_time_stamp(base::TimeDelta time_stamp) { | 21 void set_time_stamp(base::TimeDelta time_stamp) { |
20 event_->time_stamp_ = time_stamp; | 22 event_->time_stamp_ = time_stamp; |
21 } | 23 } |
22 | 24 |
23 private: | 25 private: |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
71 EventSourceTestApi(); | 73 EventSourceTestApi(); |
72 | 74 |
73 EventSource* event_source_; | 75 EventSource* event_source_; |
74 | 76 |
75 DISALLOW_COPY_AND_ASSIGN(EventSourceTestApi); | 77 DISALLOW_COPY_AND_ASSIGN(EventSourceTestApi); |
76 }; | 78 }; |
77 | 79 |
78 } // namespace ui | 80 } // namespace ui |
79 | 81 |
80 #endif // UI_EVENTS_TEST_EVENTS_TEST_UTILS_H_ | 82 #endif // UI_EVENTS_TEST_EVENTS_TEST_UTILS_H_ |
OLD | NEW |