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

Unified Diff: ui/views/pointer_watcher.h

Issue 2256343003: Update ui::PointerEvent to support mouse wheel and capture change events. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase 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
« no previous file with comments | « ui/views/mus/pointer_watcher_event_router_unittest.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 8270683214e99f946e0629d433a31662fb71d3a0..715ec130193bc51707283caa7f7247ab90549e6e 100644
--- a/ui/views/pointer_watcher.h
+++ b/ui/views/pointer_watcher.h
@@ -27,6 +27,8 @@ class Widget;
// NOTE: On mus this allows observation of events outside of windows owned
// by the current process, in which case the |target| will be null. On mus
// event.target() is always null.
+// NOTE: Mouse capture change events are sent through OnPointerEventObserved and
+// its |target| is always null.
class VIEWS_EXPORT PointerWatcher {
public:
PointerWatcher() {}
@@ -35,10 +37,6 @@ class VIEWS_EXPORT PointerWatcher {
const gfx::Point& location_in_screen,
Widget* target) = 0;
- // PointerWatcher is informed of capture changes as it's common to create a
- // MouseEvent of type ui::ET_MOUSE_CAPTURE_CHANGED on capture change.
- virtual void OnMouseCaptureChanged() {}
-
protected:
virtual ~PointerWatcher() {}
« no previous file with comments | « ui/views/mus/pointer_watcher_event_router_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698