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