OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_VIEW_MODEL_H_ | 5 #ifndef UI_VIEWS_VIEW_MODEL_H_ |
6 #define UI_VIEWS_VIEW_MODEL_H_ | 6 #define UI_VIEWS_VIEW_MODEL_H_ |
7 | 7 |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/basictypes.h" | |
11 #include "base/logging.h" | 10 #include "base/logging.h" |
| 11 #include "base/macros.h" |
12 #include "ui/gfx/geometry/rect.h" | 12 #include "ui/gfx/geometry/rect.h" |
13 #include "ui/views/views_export.h" | 13 #include "ui/views/views_export.h" |
14 | 14 |
15 namespace views { | 15 namespace views { |
16 | 16 |
17 class View; | 17 class View; |
18 class ViewModelUtils; | 18 class ViewModelUtils; |
19 | 19 |
20 // Internal implementation of the templated ViewModelT class. Provides | 20 // Internal implementation of the templated ViewModelT class. Provides |
21 // non-templated "unsafe" methods for ViewModelT to wrap around. Any methods | 21 // non-templated "unsafe" methods for ViewModelT to wrap around. Any methods |
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
123 }; | 123 }; |
124 | 124 |
125 // ViewModel is a collection of views with no specfic type. If all views have | 125 // ViewModel is a collection of views with no specfic type. If all views have |
126 // the same type, the use of ViewModelT is preferred so that the views can be | 126 // the same type, the use of ViewModelT is preferred so that the views can be |
127 // retrieved without potentially unsafe downcasts. | 127 // retrieved without potentially unsafe downcasts. |
128 typedef ViewModelT<View> ViewModel; | 128 typedef ViewModelT<View> ViewModel; |
129 | 129 |
130 } // namespace views | 130 } // namespace views |
131 | 131 |
132 #endif // UI_VIEWS_VIEW_MODEL_H_ | 132 #endif // UI_VIEWS_VIEW_MODEL_H_ |
OLD | NEW |