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

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: Add tests for mouse and change type of params_list Created 4 years, 6 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 // Received when we successfully processed a group of pointer actions in a
42 // sequence.
43 POINTER_ACTION_PROCESSED,
44 // Received when we successfully finished all pointer actions in a sequence.
45 POINTER_ACTION_FINISHED,
41 GESTURE_SOURCE_TYPE_NOT_IMPLEMENTED, 46 GESTURE_SOURCE_TYPE_NOT_IMPLEMENTED,
42 GESTURE_RESULT_MAX = GESTURE_SOURCE_TYPE_NOT_IMPLEMENTED 47 GESTURE_RESULT_MAX = GESTURE_SOURCE_TYPE_NOT_IMPLEMENTED
43 }; 48 };
44 49
45 // Update the state of the gesture and forward the appropriate events to the 50 // Update the state of the gesture and forward the appropriate events to the
46 // platform. This function is called repeatedly by the synthetic gesture 51 // platform. This function is called repeatedly by the synthetic gesture
47 // controller until it stops returning GESTURE_RUNNING. 52 // controller until it stops returning GESTURE_RUNNING.
48 virtual Result ForwardInputEvents( 53 virtual Result ForwardInputEvents(
49 const base::TimeTicks& timestamp, SyntheticGestureTarget* target) = 0; 54 const base::TimeTicks& timestamp, SyntheticGestureTarget* target) = 0;
50 55
51 protected: 56 protected:
52 DISALLOW_COPY_AND_ASSIGN(SyntheticGesture); 57 DISALLOW_COPY_AND_ASSIGN(SyntheticGesture);
53 }; 58 };
54 59
55 } // namespace content 60 } // namespace content
56 61
57 #endif // CONTENT_BROWSER_RENDERER_HOST_INPUT_SYNTHETIC_GESTURE_H_ 62 #endif // CONTENT_BROWSER_RENDERER_HOST_INPUT_SYNTHETIC_GESTURE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698