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

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

Issue 11570012: events: Update key-event handlers to not return EventResult. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: tot-merge-for-landing Created 8 years 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 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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_
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