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

Unified Diff: components/exo/pointer_delegate.h

Issue 1750633002: components/exo: Extend pointer to use v5 protocol (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed unit tests Created 4 years, 10 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: components/exo/pointer_delegate.h
diff --git a/components/exo/pointer_delegate.h b/components/exo/pointer_delegate.h
index 07c5069e4414ad8770da9a4e962859c64a044c25..929c1c88abf9c942c9ce2b14121aa5a466dcbff6 100644
--- a/components/exo/pointer_delegate.h
+++ b/components/exo/pointer_delegate.h
@@ -10,7 +10,7 @@
namespace gfx {
class Point;
-class Vector2d;
+class Vector2dF;
}
namespace exo {
@@ -49,10 +49,21 @@ class PointerDelegate {
int changed_button_flags,
bool pressed) = 0;
- // Called when pointer wheel changed. |offset| contains the direction and
- // distance of the change.
- virtual void OnPointerWheel(base::TimeDelta time_stamp,
- const gfx::Vector2d& offset) = 0;
+ // Called when pointer is scrolling. |offset| contains the direction and
+ // distance of the change. |discrete| is true if the scrolling is caused
+ // by a discrete device such as a scroll wheel.
+ virtual void OnPointerScroll(base::TimeDelta time_stamp,
+ const gfx::Vector2dF& offset,
+ bool discrete) = 0;
+
+ // Called when pointer scroll has stopped and a fling is happening (e.g.
+ // lifting the fingers from the touchpad after scrolling quickly)
+ virtual void OnPointerScrollStop(base::TimeDelta time_stamp) = 0;
+
+ // Called after all pointer information of this frame has been set and the
+ // client should evaluate the updated state. No events are being sent before
+ // this method is called.
+ virtual void OnPointerFrame() = 0;
protected:
virtual ~PointerDelegate() {}

Powered by Google App Engine
This is Rietveld 408576698