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

Side by Side Diff: content/browser/renderer_host/input/synthetic_pointer.h

Issue 1884883005: Prepare SyntheticPointerAction to handle touch actions for multiple fingers (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: pointer action 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 unified diff | Download patch
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 CONTENT_BROWSER_RENDERER_HOST_INPUT_SYNTHETIC_POINTER_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_INPUT_SYNTHETIC_POINTER_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_INPUT_SYNTHETIC_POINTER_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_INPUT_SYNTHETIC_POINTER_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 22 matching lines...) Expand all
33 const base::TimeTicks& timestamp) = 0; 33 const base::TimeTicks& timestamp) = 0;
34 virtual void Move(int index, 34 virtual void Move(int index,
35 float x, 35 float x,
36 float y, 36 float y,
37 SyntheticGestureTarget* target, 37 SyntheticGestureTarget* target,
38 const base::TimeTicks& timestamp) = 0; 38 const base::TimeTicks& timestamp) = 0;
39 virtual void Release(int index, 39 virtual void Release(int index,
40 SyntheticGestureTarget* target, 40 SyntheticGestureTarget* target,
41 const base::TimeTicks& timestamp) = 0; 41 const base::TimeTicks& timestamp) = 0;
42 42
43 virtual SyntheticGestureParams::GestureSourceType PointerSourceType()
44 const = 0;
45
43 protected: 46 protected:
44 static double ConvertTimestampToSeconds(const base::TimeTicks& timestamp); 47 static double ConvertTimestampToSeconds(const base::TimeTicks& timestamp);
45 48
46 private: 49 private:
47 DISALLOW_COPY_AND_ASSIGN(SyntheticPointer); 50 DISALLOW_COPY_AND_ASSIGN(SyntheticPointer);
48 }; 51 };
49 52
50 } // namespace content 53 } // namespace content
51 54
52 #endif // CONTENT_BROWSER_RENDERER_HOST_INPUT_SYNTHETIC_POINTER_H_ 55 #endif // CONTENT_BROWSER_RENDERER_HOST_INPUT_SYNTHETIC_POINTER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698