| 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_WIDGET_ROOT_VIEW_H_ | 5 #ifndef UI_VIEWS_WIDGET_ROOT_VIEW_H_ |
| 6 #define UI_VIEWS_WIDGET_ROOT_VIEW_H_ | 6 #define UI_VIEWS_WIDGET_ROOT_VIEW_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
| (...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 181 // true if mouse_pressed_handler_ has been explicitly set | 181 // true if mouse_pressed_handler_ has been explicitly set |
| 182 bool explicit_mouse_handler_; | 182 bool explicit_mouse_handler_; |
| 183 | 183 |
| 184 // Last position/flag of a mouse press/drag. Used if capture stops and we need | 184 // Last position/flag of a mouse press/drag. Used if capture stops and we need |
| 185 // to synthesize a release. | 185 // to synthesize a release. |
| 186 int last_mouse_event_flags_; | 186 int last_mouse_event_flags_; |
| 187 int last_mouse_event_x_; | 187 int last_mouse_event_x_; |
| 188 int last_mouse_event_y_; | 188 int last_mouse_event_y_; |
| 189 | 189 |
| 190 // The view currently handling gesture events. When set, this handler receives | 190 // The view currently handling gesture events. When set, this handler receives |
| 191 // all gesture events, except when there is an event handler for the specific | 191 // all gesture events. |
| 192 // gesture (e.g. scroll). | |
| 193 View* gesture_handler_; | 192 View* gesture_handler_; |
| 194 | 193 |
| 195 // The view currently handling scroll gesture events. | |
| 196 View* scroll_gesture_handler_; | |
| 197 | |
| 198 scoped_ptr<internal::PreEventDispatchHandler> pre_dispatch_handler_; | 194 scoped_ptr<internal::PreEventDispatchHandler> pre_dispatch_handler_; |
| 199 scoped_ptr<internal::PostEventDispatchHandler> post_dispatch_handler_; | 195 scoped_ptr<internal::PostEventDispatchHandler> post_dispatch_handler_; |
| 200 | 196 |
| 201 // Focus --------------------------------------------------------------------- | 197 // Focus --------------------------------------------------------------------- |
| 202 | 198 |
| 203 // The focus search algorithm. | 199 // The focus search algorithm. |
| 204 FocusSearch focus_search_; | 200 FocusSearch focus_search_; |
| 205 | 201 |
| 206 // Whether this root view belongs to the current active window. | 202 // Whether this root view belongs to the current active window. |
| 207 // bool activated_; | 203 // bool activated_; |
| (...skipping 13 matching lines...) Expand all Loading... |
| 221 // Tracks drag state for a view. | 217 // Tracks drag state for a view. |
| 222 View::DragInfo drag_info_; | 218 View::DragInfo drag_info_; |
| 223 | 219 |
| 224 DISALLOW_IMPLICIT_CONSTRUCTORS(RootView); | 220 DISALLOW_IMPLICIT_CONSTRUCTORS(RootView); |
| 225 }; | 221 }; |
| 226 | 222 |
| 227 } // namespace internal | 223 } // namespace internal |
| 228 } // namespace views | 224 } // namespace views |
| 229 | 225 |
| 230 #endif // UI_VIEWS_WIDGET_ROOT_VIEW_H_ | 226 #endif // UI_VIEWS_WIDGET_ROOT_VIEW_H_ |
| OLD | NEW |