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 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
58 | 58 |
59 // Called when parent of the host changed. | 59 // Called when parent of the host changed. |
60 void NotifyNativeViewHierarchyChanged(bool attached, | 60 void NotifyNativeViewHierarchyChanged(bool attached, |
61 gfx::NativeView native_view); | 61 gfx::NativeView native_view); |
62 | 62 |
63 // Input --------------------------------------------------------------------- | 63 // Input --------------------------------------------------------------------- |
64 | 64 |
65 // Process a key event. Send the event to the focused view and up the focus | 65 // Process a key event. Send the event to the focused view and up the focus |
66 // path, and finally to the default keyboard handler, until someone consumes | 66 // path, and finally to the default keyboard handler, until someone consumes |
67 // it. Returns whether anyone consumed the event. | 67 // it. Returns whether anyone consumed the event. |
68 bool OnKeyEvent(const KeyEvent& event); | 68 bool OnKeyEvent(const ui::KeyEvent& event); |
69 | 69 |
70 // Focus --------------------------------------------------------------------- | 70 // Focus --------------------------------------------------------------------- |
71 | 71 |
72 // Used to set the FocusTraversable parent after the view has been created | 72 // Used to set the FocusTraversable parent after the view has been created |
73 // (typically when the hierarchy changes and this RootView is added/removed). | 73 // (typically when the hierarchy changes and this RootView is added/removed). |
74 virtual void SetFocusTraversableParent(FocusTraversable* focus_traversable); | 74 virtual void SetFocusTraversableParent(FocusTraversable* focus_traversable); |
75 | 75 |
76 // Used to set the View parent after the view has been created. | 76 // Used to set the View parent after the view has been created. |
77 virtual void SetFocusTraversableParentView(View* view); | 77 virtual void SetFocusTraversableParentView(View* view); |
78 | 78 |
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
197 // Tracks drag state for a view. | 197 // Tracks drag state for a view. |
198 View::DragInfo drag_info_; | 198 View::DragInfo drag_info_; |
199 | 199 |
200 DISALLOW_IMPLICIT_CONSTRUCTORS(RootView); | 200 DISALLOW_IMPLICIT_CONSTRUCTORS(RootView); |
201 }; | 201 }; |
202 | 202 |
203 } // namespace internal | 203 } // namespace internal |
204 } // namespace views | 204 } // namespace views |
205 | 205 |
206 #endif // UI_VIEWS_WIDGET_ROOT_VIEW_H_ | 206 #endif // UI_VIEWS_WIDGET_ROOT_VIEW_H_ |
OLD | NEW |