| 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_TEST_EVENT_TARGET_H_ | 5 #ifndef UI_EVENTS_TEST_TEST_EVENT_TARGET_H_ |
| 6 #define UI_EVENTS_TEST_TEST_EVENT_TARGET_H_ | 6 #define UI_EVENTS_TEST_TEST_EVENT_TARGET_H_ |
| 7 | 7 |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 | 9 |
| 10 #include <set> | 10 #include <set> |
| 11 #include <string> | 11 #include <string> |
| 12 #include <vector> | 12 #include <vector> |
| 13 | 13 |
| 14 #include "base/macros.h" | 14 #include "base/macros.h" |
| 15 #include "base/memory/scoped_vector.h" | 15 #include "base/memory/scoped_vector.h" |
| 16 #include "ui/events/event_target.h" | 16 #include "ui/events/event_target.h" |
| 17 | 17 |
| 18 typedef std::vector<std::string> HandlerSequenceRecorder; | 18 typedef std::vector<std::string> HandlerSequenceRecorder; |
| 19 | 19 |
| 20 namespace gfx { | |
| 21 class Point; | |
| 22 } | |
| 23 | |
| 24 namespace ui { | 20 namespace ui { |
| 25 namespace test { | 21 namespace test { |
| 26 | 22 |
| 27 class TestEventTarget : public EventTarget, | 23 class TestEventTarget : public EventTarget, |
| 28 public EventHandler { | 24 public EventHandler { |
| 29 public: | 25 public: |
| 30 TestEventTarget(); | 26 TestEventTarget(); |
| 31 ~TestEventTarget() override; | 27 ~TestEventTarget() override; |
| 32 | 28 |
| 33 void AddChild(std::unique_ptr<TestEventTarget> child); | 29 void AddChild(std::unique_ptr<TestEventTarget> child); |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 81 HandlerSequenceRecorder* recorder_; | 77 HandlerSequenceRecorder* recorder_; |
| 82 std::string target_name_; | 78 std::string target_name_; |
| 83 | 79 |
| 84 DISALLOW_COPY_AND_ASSIGN(TestEventTarget); | 80 DISALLOW_COPY_AND_ASSIGN(TestEventTarget); |
| 85 }; | 81 }; |
| 86 | 82 |
| 87 } // namespace test | 83 } // namespace test |
| 88 } // namespace ui | 84 } // namespace ui |
| 89 | 85 |
| 90 #endif // UI_EVENTS_TEST_TEST_EVENT_TARGET_H_ | 86 #endif // UI_EVENTS_TEST_TEST_EVENT_TARGET_H_ |
| OLD | NEW |