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

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: Fixed patch set 8 errors. Created 4 years, 3 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 | « chrome/browser/ui/views/frame/immersive_context_mus.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/pointer_watcher.h
diff --git a/ui/views/pointer_watcher.h b/ui/views/pointer_watcher.h
index 715ec130193bc51707283caa7f7247ab90549e6e..7a68216db7d3b030452edf0dab44aa271efd8d66 100644
--- a/ui/views/pointer_watcher.h
+++ b/ui/views/pointer_watcher.h
@@ -19,6 +19,20 @@ class PointerEvent;
namespace views {
class Widget;
+// When a PointerWatcher is added the types of events desired is specified by
+// way of PointerWatcherEventTypes.
+enum class PointerWatcherEventTypes {
+ // The PointerWatcher is interested in press, release, capture and mouse
+ // wheel.
+ BASIC,
+ // The PointerWatcher is interested in BASIC events, as well as move
+ // events.
+ MOVES,
+ // The PointerWatcher is interested in MOVE events, as well as drag
+ // events.
+ 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.
« no previous file with comments | « chrome/browser/ui/views/frame/immersive_context_mus.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698