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

Unified Diff: ui/views/pointer_watcher.h

Issue 2271393002: Wires up drags to pointer watcher adapter. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@lkgr
Patch Set: Rebased. Created 4 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 side-by-side diff with in-line comments
Download patch
Index: ui/views/pointer_watcher.h
diff --git a/ui/views/pointer_watcher.h b/ui/views/pointer_watcher.h
index 715ec130193bc51707283caa7f7247ab90549e6e..ab645e6b34851534e9cfc64de20d67d5249da251 100644
--- a/ui/views/pointer_watcher.h
+++ b/ui/views/pointer_watcher.h
@@ -19,6 +19,13 @@ class PointerEvent;
namespace views {
class Widget;
+// When pointer watchers are added they need to specify which events they want
sky 2016/08/31 23:27:39 How about: When a PointerWatcher is added the typ
sammiequon 2016/09/01 00:49:24 Done.
+// to receive. BASIC means they receive only presses, releases, capture and
+// wheel events, MOVES means they receive move events in addition, and DRAGS
+// means
+// they receive move and drag events in addition.
+enum class PointerWatcherEventTypes { BASIC, MOVES, DRAGS };
+
// An interface for read-only observation of pointer events (in particular, the
// events cannot be marked as handled). Only certain event types are supported.
// The |target| is the top-level widget that will receive the event, if any.

Powered by Google App Engine
This is Rietveld 408576698