| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 VIEWS_VIEW_H_ | 5 #ifndef VIEWS_VIEW_H_ |
| 6 #define VIEWS_VIEW_H_ | 6 #define VIEWS_VIEW_H_ |
| 7 | 7 |
| 8 #include "build/build_config.h" | 8 #include "build/build_config.h" |
| 9 | 9 |
| 10 #include <algorithm> | 10 #include <algorithm> |
| (...skipping 1162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1173 // Next view to be focused when the Tab key is pressed. | 1173 // Next view to be focused when the Tab key is pressed. |
| 1174 View* next_focusable_view_; | 1174 View* next_focusable_view_; |
| 1175 | 1175 |
| 1176 // Next view to be focused when the Shift-Tab key combination is pressed. | 1176 // Next view to be focused when the Shift-Tab key combination is pressed. |
| 1177 View* previous_focusable_view_; | 1177 View* previous_focusable_view_; |
| 1178 | 1178 |
| 1179 // The list of accelerators. List elements in the range | 1179 // The list of accelerators. List elements in the range |
| 1180 // [0, registered_accelerator_count_) are already registered to FocusManager, | 1180 // [0, registered_accelerator_count_) are already registered to FocusManager, |
| 1181 // and the rest are not yet. | 1181 // and the rest are not yet. |
| 1182 scoped_ptr<std::vector<Accelerator> > accelerators_; | 1182 scoped_ptr<std::vector<Accelerator> > accelerators_; |
| 1183 int registered_accelerator_count_; | 1183 size_t registered_accelerator_count_; |
| 1184 | 1184 |
| 1185 // The menu controller. | 1185 // The menu controller. |
| 1186 ContextMenuController* context_menu_controller_; | 1186 ContextMenuController* context_menu_controller_; |
| 1187 | 1187 |
| 1188 #if defined(OS_WIN) | 1188 #if defined(OS_WIN) |
| 1189 // The accessibility implementation for this View. | 1189 // The accessibility implementation for this View. |
| 1190 scoped_ptr<ViewAccessibilityWrapper> accessibility_; | 1190 scoped_ptr<ViewAccessibilityWrapper> accessibility_; |
| 1191 #endif | 1191 #endif |
| 1192 | 1192 |
| 1193 DragController* drag_controller_; | 1193 DragController* drag_controller_; |
| 1194 | 1194 |
| 1195 // Indicates whether or not the view is going to be mirrored (that is, use a | 1195 // Indicates whether or not the view is going to be mirrored (that is, use a |
| 1196 // right-to-left UI layout) if the locale's language is a right-to-left | 1196 // right-to-left UI layout) if the locale's language is a right-to-left |
| 1197 // language like Arabic or Hebrew. | 1197 // language like Arabic or Hebrew. |
| 1198 bool ui_mirroring_is_enabled_for_rtl_languages_; | 1198 bool ui_mirroring_is_enabled_for_rtl_languages_; |
| 1199 | 1199 |
| 1200 // Indicates whether or not the gfx::Canvas object passed to View::Paint() | 1200 // Indicates whether or not the gfx::Canvas object passed to View::Paint() |
| 1201 // is going to be flipped horizontally (using the appropriate transform) on | 1201 // is going to be flipped horizontally (using the appropriate transform) on |
| 1202 // right-to-left locales for this View. | 1202 // right-to-left locales for this View. |
| 1203 bool flip_canvas_on_paint_for_rtl_ui_; | 1203 bool flip_canvas_on_paint_for_rtl_ui_; |
| 1204 | 1204 |
| 1205 DISALLOW_COPY_AND_ASSIGN(View); | 1205 DISALLOW_COPY_AND_ASSIGN(View); |
| 1206 }; | 1206 }; |
| 1207 | 1207 |
| 1208 } // namespace views | 1208 } // namespace views |
| 1209 | 1209 |
| 1210 #endif // VIEWS_VIEW_H_ | 1210 #endif // VIEWS_VIEW_H_ |
| OLD | NEW |