| 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 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 57 gfx::NativeView native_view); | 57 gfx::NativeView native_view); |
| 58 | 58 |
| 59 // Input --------------------------------------------------------------------- | 59 // Input --------------------------------------------------------------------- |
| 60 | 60 |
| 61 // Process a key event. Send the event to the focused view and up the focus | 61 // Process a key event. Send the event to the focused view and up the focus |
| 62 // path, and finally to the default keyboard handler, until someone consumes | 62 // path, and finally to the default keyboard handler, until someone consumes |
| 63 // it. Returns whether anyone consumed the event. | 63 // it. Returns whether anyone consumed the event. |
| 64 ui::EventResult DispatchKeyEvent(const ui::KeyEvent& event); | 64 ui::EventResult DispatchKeyEvent(const ui::KeyEvent& event); |
| 65 ui::EventResult DispatchScrollEvent(ui::ScrollEvent* event); | 65 ui::EventResult DispatchScrollEvent(ui::ScrollEvent* event); |
| 66 ui::EventResult DispatchTouchEvent(ui::TouchEvent* event); | 66 ui::EventResult DispatchTouchEvent(ui::TouchEvent* event); |
| 67 virtual ui::EventResult DispatchGestureEvent(ui::GestureEvent* event); | 67 virtual void DispatchGestureEvent(ui::GestureEvent* event); |
| 68 | 68 |
| 69 // Focus --------------------------------------------------------------------- | 69 // Focus --------------------------------------------------------------------- |
| 70 | 70 |
| 71 // Used to set the FocusTraversable parent after the view has been created | 71 // Used to set the FocusTraversable parent after the view has been created |
| 72 // (typically when the hierarchy changes and this RootView is added/removed). | 72 // (typically when the hierarchy changes and this RootView is added/removed). |
| 73 virtual void SetFocusTraversableParent(FocusTraversable* focus_traversable); | 73 virtual void SetFocusTraversableParent(FocusTraversable* focus_traversable); |
| 74 | 74 |
| 75 // Used to set the View parent after the view has been created. | 75 // Used to set the View parent after the view has been created. |
| 76 virtual void SetFocusTraversableParentView(View* view); | 76 virtual void SetFocusTraversableParentView(View* view); |
| 77 | 77 |
| (...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 192 // Tracks drag state for a view. | 192 // Tracks drag state for a view. |
| 193 View::DragInfo drag_info_; | 193 View::DragInfo drag_info_; |
| 194 | 194 |
| 195 DISALLOW_IMPLICIT_CONSTRUCTORS(RootView); | 195 DISALLOW_IMPLICIT_CONSTRUCTORS(RootView); |
| 196 }; | 196 }; |
| 197 | 197 |
| 198 } // namespace internal | 198 } // namespace internal |
| 199 } // namespace views | 199 } // namespace views |
| 200 | 200 |
| 201 #endif // UI_VIEWS_WIDGET_ROOT_VIEW_H_ | 201 #endif // UI_VIEWS_WIDGET_ROOT_VIEW_H_ |
| OLD | NEW |