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

Unified Diff: ui/base/win/window_event_target.h

Issue 2648683003: Introduce WM_POINTER to Handle pointer events with pen type (Closed)
Patch Set: NOTREACHED() when default Created 3 years, 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/browser/renderer_host/legacy_render_widget_host_win.cc ('k') | ui/views/win/hwnd_message_handler.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/base/win/window_event_target.h
diff --git a/ui/base/win/window_event_target.h b/ui/base/win/window_event_target.h
index e87b519a34642eeab01e24733af0e57681b728aa..3e9240ef97e3ec71013cf9ae3ff1b9afc4e4709f 100644
--- a/ui/base/win/window_event_target.h
+++ b/ui/base/win/window_event_target.h
@@ -30,6 +30,18 @@ class UI_BASE_EXPORT WindowEventTarget {
LPARAM l_param,
bool* handled) = 0;
+ // Handles pointer events like WM_POINTERUP, WM_POINTERDOWN, WM_POINTERUPDATE
+ // events.
+ // The |message| parameter identifies the message.
+ // The |w_param| and |l_param| values are as per MSDN docs.
+ // The |handled| parameter is an output parameter which when set to false
+ // indicates that the message should be DefProc'ed.
+ // Returns the result of processing the message.
+ virtual LRESULT HandlePointerMessage(unsigned int message,
+ WPARAM w_param,
+ LPARAM l_param,
+ bool* handled) = 0;
+
// Handles keyboard events like WM_KEYDOWN/WM_KEYUP, etc.
// The |message| parameter identifies the message.
// The |w_param| and |l_param| values are dependent on the type of the
« no previous file with comments | « content/browser/renderer_host/legacy_render_widget_host_win.cc ('k') | ui/views/win/hwnd_message_handler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698