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 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
54 | 54 |
55 // Called when parent of the host changed. | 55 // Called when parent of the host changed. |
56 void NotifyNativeViewHierarchyChanged(bool attached, | 56 void NotifyNativeViewHierarchyChanged(bool attached, |
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 void DispatchKeyEvent(ui::KeyEvent* event); |
65 void DispatchScrollEvent(ui::ScrollEvent* event); | 65 void DispatchScrollEvent(ui::ScrollEvent* event); |
66 void DispatchTouchEvent(ui::TouchEvent* event); | 66 void DispatchTouchEvent(ui::TouchEvent* event); |
67 virtual void 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 |
(...skipping 117 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 |