Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(12)

Side by Side Diff: ui/views/widget/root_view.h

Issue 10825254: Remove views::KeyEvent, replacing uses of it with ui::KeyEvent. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « ui/views/widget/native_widget_win.cc ('k') | ui/views/widget/root_view.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « ui/views/widget/native_widget_win.cc ('k') | ui/views/widget/root_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698