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

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 1 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..ff80d9d016149243f335edf8f985dbd6c493cb31 100644
--- a/ui/views/pointer_watcher.h
+++ b/ui/views/pointer_watcher.h
@@ -19,6 +19,16 @@ 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 and releases, MOVES means
sky 2016/08/26 15:36:55 BASIC also means you get capture events and wheel
sammiequon 2016/08/26 18:34:20 Done.
+// they recieve move events as well and DRAGS means they receive drag events as
+// well.
+enum class RequestedEvents {
sky 2016/08/26 15:36:55 This name is too generic outside of a class, how a
sammiequon 2016/08/26 18:34:20 Done.
+ BASIC = 0x01,
+ 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/shelf/overflow_bubble.cc ('K') | « ash/shared/immersive_fullscreen_controller.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698