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_VIEWS_TEST_TEST_VIEWS_H_ | 5 #ifndef UI_VIEWS_TEST_TEST_VIEWS_H_ |
6 #define UI_VIEWS_TEST_TEST_VIEWS_H_ | 6 #define UI_VIEWS_TEST_TEST_VIEWS_H_ |
7 | 7 |
| 8 #include <memory> |
| 9 |
8 #include "base/macros.h" | 10 #include "base/macros.h" |
9 #include "base/memory/scoped_ptr.h" | |
10 #include "ui/events/event_constants.h" | 11 #include "ui/events/event_constants.h" |
11 #include "ui/views/view.h" | 12 #include "ui/views/view.h" |
12 | 13 |
13 namespace views { | 14 namespace views { |
14 | 15 |
15 // A view that requests a set amount of space. | 16 // A view that requests a set amount of space. |
16 class StaticSizedView : public View { | 17 class StaticSizedView : public View { |
17 public: | 18 public: |
18 explicit StaticSizedView(const gfx::Size& size); | 19 explicit StaticSizedView(const gfx::Size& size); |
19 ~StaticSizedView() override; | 20 ~StaticSizedView() override; |
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
110 std::map<ui::EventType, int> event_count_; | 111 std::map<ui::EventType, int> event_count_; |
111 int last_flags_; | 112 int last_flags_; |
112 HandleMode handle_mode_; | 113 HandleMode handle_mode_; |
113 | 114 |
114 DISALLOW_COPY_AND_ASSIGN(EventCountView); | 115 DISALLOW_COPY_AND_ASSIGN(EventCountView); |
115 }; | 116 }; |
116 | 117 |
117 } // namespace views | 118 } // namespace views |
118 | 119 |
119 #endif // UI_VIEWS_TEST_TEST_VIEWS_H_ | 120 #endif // UI_VIEWS_TEST_TEST_VIEWS_H_ |
OLD | NEW |