| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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_WIDGET_ROOT_VIEW_H_ | 5 #ifndef VIEWS_WIDGET_ROOT_VIEW_H_ |
| 6 #define VIEWS_WIDGET_ROOT_VIEW_H_ | 6 #define VIEWS_WIDGET_ROOT_VIEW_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/ref_counted.h" | 10 #include "base/ref_counted.h" |
| (...skipping 300 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 311 int last_mouse_event_x_; | 311 int last_mouse_event_x_; |
| 312 int last_mouse_event_y_; | 312 int last_mouse_event_y_; |
| 313 | 313 |
| 314 // The parent FocusTraversable, used for focus traversal. | 314 // The parent FocusTraversable, used for focus traversal. |
| 315 FocusTraversable* focus_traversable_parent_; | 315 FocusTraversable* focus_traversable_parent_; |
| 316 | 316 |
| 317 // The View that contains this RootView. This is used when we have RootView | 317 // The View that contains this RootView. This is used when we have RootView |
| 318 // wrapped inside native components, and is used for the focus traversal. | 318 // wrapped inside native components, and is used for the focus traversal. |
| 319 View* focus_traversable_parent_view_; | 319 View* focus_traversable_parent_view_; |
| 320 | 320 |
| 321 // Storage of strings needed for accessibility. | |
| 322 std::wstring accessible_name_; | |
| 323 | |
| 324 // Tracks drag state for a view. | 321 // Tracks drag state for a view. |
| 325 View::DragInfo drag_info; | 322 View::DragInfo drag_info; |
| 326 | 323 |
| 327 // Valid for the lifetime of StartDragForViewFromMouseEvent, indicates the | 324 // Valid for the lifetime of StartDragForViewFromMouseEvent, indicates the |
| 328 // view the drag started from. | 325 // view the drag started from. |
| 329 View* drag_view_; | 326 View* drag_view_; |
| 330 | 327 |
| 331 #ifndef NDEBUG | 328 #ifndef NDEBUG |
| 332 // True if we're currently processing paint. | 329 // True if we're currently processing paint. |
| 333 bool is_processing_paint_; | 330 bool is_processing_paint_; |
| 334 #endif | 331 #endif |
| 335 | 332 |
| 336 DISALLOW_COPY_AND_ASSIGN(RootView); | 333 DISALLOW_COPY_AND_ASSIGN(RootView); |
| 337 }; | 334 }; |
| 338 | 335 |
| 339 } // namespace views | 336 } // namespace views |
| 340 | 337 |
| 341 #endif // VIEWS_WIDGET_ROOT_VIEW_H_ | 338 #endif // VIEWS_WIDGET_ROOT_VIEW_H_ |
| OLD | NEW |