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

Unified Diff: ui/views/pointer_watcher.h

Issue 2125663002: mus: Add watcher for all touch events. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: DCHECK Created 4 years, 5 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 2abc4cb42d220fdb90587dc70974246278d3bb0e..e9023e8c44093fa6f6a303f1971667df925f4c0f 100644
--- a/ui/views/pointer_watcher.h
+++ b/ui/views/pointer_watcher.h
@@ -27,14 +27,15 @@ class Widget;
// event.target() is always null.
class VIEWS_EXPORT PointerWatcher {
public:
- virtual ~PointerWatcher() {}
-
virtual void OnMousePressed(const ui::MouseEvent& event,
const gfx::Point& location_in_screen,
Widget* target) = 0;
virtual void OnTouchPressed(const ui::TouchEvent& event,
const gfx::Point& location_in_screen,
Widget* target) = 0;
+
+ protected:
+ virtual ~PointerWatcher() {}
};
msw 2016/07/12 22:23:11 nit: private: DISALLOW_COPY_AND_ASSIGN?
riajiang 2016/07/13 15:40:21 Done.
} // namespace views

Powered by Google App Engine
This is Rietveld 408576698