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

Side by Side Diff: ui/views/widget/native_widget_delegate.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_aura.cc ('k') | ui/views/widget/native_widget_win.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_NATIVE_WIDGET_DELEGATE_H_ 5 #ifndef UI_VIEWS_WIDGET_NATIVE_WIDGET_DELEGATE_H_
6 #define UI_VIEWS_WIDGET_NATIVE_WIDGET_DELEGATE_H_ 6 #define UI_VIEWS_WIDGET_NATIVE_WIDGET_DELEGATE_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "ui/base/events/event_constants.h" 10 #include "ui/base/events/event_constants.h"
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
99 99
100 // Paints the rootview in the canvas. This will also refresh the compositor 100 // Paints the rootview in the canvas. This will also refresh the compositor
101 // tree if necessary when accelerated painting is enabled. 101 // tree if necessary when accelerated painting is enabled.
102 virtual void OnNativeWidgetPaint(gfx::Canvas* canvas) = 0; 102 virtual void OnNativeWidgetPaint(gfx::Canvas* canvas) = 0;
103 103
104 // Returns the non-client component (see ui/base/hit_test.h) containing 104 // Returns the non-client component (see ui/base/hit_test.h) containing
105 // |point|, in client coordinates. 105 // |point|, in client coordinates.
106 virtual int GetNonClientComponent(const gfx::Point& point) = 0; 106 virtual int GetNonClientComponent(const gfx::Point& point) = 0;
107 107
108 // Mouse and key event handlers. 108 // Mouse and key event handlers.
109 virtual bool OnKeyEvent(const ui::KeyEvent& event) = 0; 109 virtual void OnKeyEvent(ui::KeyEvent* event) = 0;
110 virtual bool OnMouseEvent(const ui::MouseEvent& event) = 0; 110 virtual bool OnMouseEvent(const ui::MouseEvent& event) = 0;
111 virtual void OnMouseCaptureLost() = 0; 111 virtual void OnMouseCaptureLost() = 0;
112 112
113 virtual void OnTouchEvent(ui::TouchEvent* event) = 0; 113 virtual void OnTouchEvent(ui::TouchEvent* event) = 0;
114 virtual void OnScrollEvent(ui::ScrollEvent* event) = 0; 114 virtual void OnScrollEvent(ui::ScrollEvent* event) = 0;
115 virtual void OnGestureEvent(ui::GestureEvent* event) = 0; 115 virtual void OnGestureEvent(ui::GestureEvent* event) = 0;
116 116
117 // Runs the specified native command. Returns true if the command is handled. 117 // Runs the specified native command. Returns true if the command is handled.
118 virtual bool ExecuteCommand(int command_id) = 0; 118 virtual bool ExecuteCommand(int command_id) = 0;
119 119
(...skipping 13 matching lines...) Expand all
133 133
134 // 134 //
135 virtual Widget* AsWidget() = 0; 135 virtual Widget* AsWidget() = 0;
136 virtual const Widget* AsWidget() const = 0; 136 virtual const Widget* AsWidget() const = 0;
137 }; 137 };
138 138
139 } // namespace internal 139 } // namespace internal
140 } // namespace views 140 } // namespace views
141 141
142 #endif // UI_VIEWS_WIDGET_NATIVE_WIDGET_DELEGATE_H_ 142 #endif // UI_VIEWS_WIDGET_NATIVE_WIDGET_DELEGATE_H_
OLDNEW
« no previous file with comments | « ui/views/widget/native_widget_aura.cc ('k') | ui/views/widget/native_widget_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698