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

Side by Side Diff: components/exo/touch_delegate.h

Issue 2560633002: exo: Implement v6 of touch protocol including shape and frame event (Closed)
Patch Set: Fixed pen pointer mode conflict after rebase Created 4 years 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 unified diff | Download patch
« no previous file with comments | « components/exo/touch.cc ('k') | components/exo/touch_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef COMPONENTS_EXO_TOUCH_DELEGATE_H_ 5 #ifndef COMPONENTS_EXO_TOUCH_DELEGATE_H_
6 #define COMPONENTS_EXO_TOUCH_DELEGATE_H_ 6 #define COMPONENTS_EXO_TOUCH_DELEGATE_H_
7 7
8 #include "base/time/time.h" 8 #include "base/time/time.h"
9 9
10 namespace gfx { 10 namespace gfx {
(...skipping 26 matching lines...) Expand all
37 37
38 // Called when a touch point has disappeared. No further events will be sent 38 // Called when a touch point has disappeared. No further events will be sent
39 // for this touch point. 39 // for this touch point.
40 virtual void OnTouchUp(base::TimeTicks time_stamp, int id) = 0; 40 virtual void OnTouchUp(base::TimeTicks time_stamp, int id) = 0;
41 41
42 // Called when a touch point has changed coordinates. 42 // Called when a touch point has changed coordinates.
43 virtual void OnTouchMotion(base::TimeTicks time_stamp, 43 virtual void OnTouchMotion(base::TimeTicks time_stamp,
44 int id, 44 int id,
45 const gfx::Point& location) = 0; 45 const gfx::Point& location) = 0;
46 46
47 // Called when a touch point has changed its shape.
48 virtual void OnTouchShape(int id, float major, float minor) = 0;
49
50 // Called when the client should apply all updated touches.
51 virtual void OnTouchFrame() = 0;
52
47 // Called when the touch session has been canceled. Touch cancellation 53 // Called when the touch session has been canceled. Touch cancellation
48 // applies to all touch points currently active. 54 // applies to all touch points currently active.
49 virtual void OnTouchCancel() = 0; 55 virtual void OnTouchCancel() = 0;
50 56
51 protected: 57 protected:
52 virtual ~TouchDelegate() {} 58 virtual ~TouchDelegate() {}
53 }; 59 };
54 60
55 } // namespace exo 61 } // namespace exo
56 62
57 #endif // COMPONENTS_EXO_TOUCH_DELEGATE_H_ 63 #endif // COMPONENTS_EXO_TOUCH_DELEGATE_H_
OLDNEW
« no previous file with comments | « components/exo/touch.cc ('k') | components/exo/touch_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698