| 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 "base/macros.h" | 8 #include "base/macros.h" |
| 9 #include "ui/events/event.h" | 9 #include "ui/events/event.h" |
| 10 #include "ui/events/event_dispatcher.h" | 10 #include "ui/events/event_dispatcher.h" |
| (...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 85 | 85 |
| 86 EventTarget* target_; | 86 EventTarget* target_; |
| 87 | 87 |
| 88 DISALLOW_COPY_AND_ASSIGN(EventTargetTestApi); | 88 DISALLOW_COPY_AND_ASSIGN(EventTargetTestApi); |
| 89 }; | 89 }; |
| 90 | 90 |
| 91 class EventSourceTestApi { | 91 class EventSourceTestApi { |
| 92 public: | 92 public: |
| 93 explicit EventSourceTestApi(EventSource* event_source); | 93 explicit EventSourceTestApi(EventSource* event_source); |
| 94 | 94 |
| 95 EventDispatchDetails SendEventToProcessor(Event* event) WARN_UNUSED_RESULT; | 95 EventDispatchDetails SendEventToSink(Event* event) WARN_UNUSED_RESULT; |
| 96 | 96 |
| 97 private: | 97 private: |
| 98 EventSourceTestApi(); | 98 EventSourceTestApi(); |
| 99 | 99 |
| 100 EventSource* event_source_; | 100 EventSource* event_source_; |
| 101 | 101 |
| 102 DISALLOW_COPY_AND_ASSIGN(EventSourceTestApi); | 102 DISALLOW_COPY_AND_ASSIGN(EventSourceTestApi); |
| 103 }; | 103 }; |
| 104 | 104 |
| 105 } // namespace ui | 105 } // namespace ui |
| 106 | 106 |
| 107 #endif // UI_EVENTS_TEST_EVENTS_TEST_UTILS_H_ | 107 #endif // UI_EVENTS_TEST_EVENTS_TEST_UTILS_H_ |
| OLD | NEW |