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

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 2 errors. 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 8270683214e99f946e0629d433a31662fb71d3a0..725d4929875fce8ff663bfdccee5885dc3d0b607 100644
--- a/ui/views/pointer_watcher.h
+++ b/ui/views/pointer_watcher.h
@@ -19,6 +19,17 @@ class PointerEvent;
namespace views {
class Widget;
+// When pointer watchers are added they need to specify which events they want
+// 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 = 0x01,
sky 2016/08/26 19:58:57 This isn't used as a bitmask, right? In other word
sammiequon 2016/08/26 21:48:04 Right I thought I'd be using one but forgot to cha
+ MOVES = 0x02,
+ DRAGS = 0x04
+};
+
// 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.
« ash/common/wm_shell.h ('K') | « 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