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

Side by Side Diff: ui/views/win/hwnd_message_handler_delegate.h

Issue 11773007: Add initial support for handling touch events in desktop chrome AURA. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 7 years, 11 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/win/hwnd_message_handler.cc ('k') | no next file » | 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_WIN_HWND_MESSAGE_HANDLER_DELEGATE_H_ 5 #ifndef UI_VIEWS_WIN_HWND_MESSAGE_HANDLER_DELEGATE_H_
6 #define UI_VIEWS_WIN_HWND_MESSAGE_HANDLER_DELEGATE_H_ 6 #define UI_VIEWS_WIN_HWND_MESSAGE_HANDLER_DELEGATE_H_
7 7
8 #include "ui/views/views_export.h" 8 #include "ui/views/views_export.h"
9 9
10 namespace gfx { 10 namespace gfx {
11 class Canvas; 11 class Canvas;
12 class Insets; 12 class Insets;
13 class Path; 13 class Path;
14 class Point; 14 class Point;
15 class Size; 15 class Size;
16 } 16 }
17 17
18 namespace ui { 18 namespace ui {
19 class Accelerator; 19 class Accelerator;
20 class KeyEvent; 20 class KeyEvent;
21 class MouseEvent; 21 class MouseEvent;
22 class TouchEvent;
22 } 23 }
23 24
24 namespace views { 25 namespace views {
25 26
26 class InputMethod; 27 class InputMethod;
27 class NativeWidgetWin; 28 class NativeWidgetWin;
28 29
29 // Implemented by the object that uses the HWNDMessageHandler to handle 30 // Implemented by the object that uses the HWNDMessageHandler to handle
30 // notifications from the underlying HWND and service requests for data. 31 // notifications from the underlying HWND and service requests for data.
31 class VIEWS_EXPORT HWNDMessageHandlerDelegate { 32 class VIEWS_EXPORT HWNDMessageHandlerDelegate {
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after
164 virtual bool HandleMouseEvent(const ui::MouseEvent& event) = 0; 165 virtual bool HandleMouseEvent(const ui::MouseEvent& event) = 0;
165 166
166 // Called when a translated key event is received (i.e. post IME translation.) 167 // Called when a translated key event is received (i.e. post IME translation.)
167 // Returns true if the event was handled by the delegate. 168 // Returns true if the event was handled by the delegate.
168 virtual bool HandleKeyEvent(const ui::KeyEvent& event) = 0; 169 virtual bool HandleKeyEvent(const ui::KeyEvent& event) = 0;
169 170
170 // Called when an untranslated key event is received (i.e. pre-IME 171 // Called when an untranslated key event is received (i.e. pre-IME
171 // translation). Returns true if the event was sent to the input method. 172 // translation). Returns true if the event was sent to the input method.
172 virtual bool HandleUntranslatedKeyEvent(const ui::KeyEvent& event) = 0; 173 virtual bool HandleUntranslatedKeyEvent(const ui::KeyEvent& event) = 0;
173 174
175 // Called when a touch event is received. Returns true if the event was
176 // handled by the delegate.
177 virtual bool HandleTouchEvent(const ui::TouchEvent& event) = 0;
178
174 // Called when an IME message needs to be processed by the delegate. Returns 179 // Called when an IME message needs to be processed by the delegate. Returns
175 // true if the event was handled and no default processing should be 180 // true if the event was handled and no default processing should be
176 // performed. 181 // performed.
177 virtual bool HandleIMEMessage(UINT message, 182 virtual bool HandleIMEMessage(UINT message,
178 WPARAM w_param, 183 WPARAM w_param,
179 LPARAM l_param, 184 LPARAM l_param,
180 LRESULT* result) = 0; 185 LRESULT* result) = 0;
181 186
182 // Called when the system input language changes. 187 // Called when the system input language changes.
183 virtual void HandleInputLanguageChange(DWORD character_set, 188 virtual void HandleInputLanguageChange(DWORD character_set,
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
220 WPARAM w_param, 225 WPARAM w_param,
221 LPARAM l_param) = 0; 226 LPARAM l_param) = 0;
222 227
223 protected: 228 protected:
224 virtual ~HWNDMessageHandlerDelegate() {} 229 virtual ~HWNDMessageHandlerDelegate() {}
225 }; 230 };
226 231
227 } // namespace views 232 } // namespace views
228 233
229 #endif // UI_VIEWS_WIN_HWND_MESSAGE_HANDLER_DELEGATE_H_ 234 #endif // UI_VIEWS_WIN_HWND_MESSAGE_HANDLER_DELEGATE_H_
OLDNEW
« no previous file with comments | « ui/views/win/hwnd_message_handler.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698