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

Side by Side Diff: content/browser/renderer_host/input/synthetic_gesture.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: Move logic to controller Created 4 years, 7 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_GESTURE_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_INPUT_SYNTHETIC_GESTURE_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_INPUT_SYNTHETIC_GESTURE_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_INPUT_SYNTHETIC_GESTURE_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 20 matching lines...) Expand all
31 public: 31 public:
32 SyntheticGesture(); 32 SyntheticGesture();
33 virtual ~SyntheticGesture(); 33 virtual ~SyntheticGesture();
34 34
35 static std::unique_ptr<SyntheticGesture> Create( 35 static std::unique_ptr<SyntheticGesture> Create(
36 const SyntheticGestureParams& gesture_params); 36 const SyntheticGestureParams& gesture_params);
37 37
38 enum Result { 38 enum Result {
39 GESTURE_RUNNING, 39 GESTURE_RUNNING,
40 GESTURE_FINISHED, 40 GESTURE_FINISHED,
41 POINTER_ACTION_PROCESSED,
tdresser 2016/05/13 13:58:04 Maybe add a comment describing what's different ab
lanwei 2016/05/19 16:04:12 Done.
42 POINTER_ACTION_FINISHED,
41 GESTURE_SOURCE_TYPE_NOT_IMPLEMENTED, 43 GESTURE_SOURCE_TYPE_NOT_IMPLEMENTED,
42 GESTURE_RESULT_MAX = GESTURE_SOURCE_TYPE_NOT_IMPLEMENTED 44 GESTURE_RESULT_MAX = GESTURE_SOURCE_TYPE_NOT_IMPLEMENTED
43 }; 45 };
44 46
45 // Update the state of the gesture and forward the appropriate events to the 47 // Update the state of the gesture and forward the appropriate events to the
46 // platform. This function is called repeatedly by the synthetic gesture 48 // platform. This function is called repeatedly by the synthetic gesture
47 // controller until it stops returning GESTURE_RUNNING. 49 // controller until it stops returning GESTURE_RUNNING.
48 virtual Result ForwardInputEvents( 50 virtual Result ForwardInputEvents(
49 const base::TimeTicks& timestamp, SyntheticGestureTarget* target) = 0; 51 const base::TimeTicks& timestamp, SyntheticGestureTarget* target) = 0;
50 52
51 protected: 53 protected:
52 DISALLOW_COPY_AND_ASSIGN(SyntheticGesture); 54 DISALLOW_COPY_AND_ASSIGN(SyntheticGesture);
53 }; 55 };
54 56
55 } // namespace content 57 } // namespace content
56 58
57 #endif // CONTENT_BROWSER_RENDERER_HOST_INPUT_SYNTHETIC_GESTURE_H_ 59 #endif // CONTENT_BROWSER_RENDERER_HOST_INPUT_SYNTHETIC_GESTURE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698