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

Side by Side Diff: trunk/src/content/browser/renderer_host/input/synthetic_gesture_target.h

Issue 79143002: Revert 236254 "Replace old with new synthetic gesture framework." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 7 years, 1 month 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 | Annotate | Revision Log
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_TARGET_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_INPUT_SYNTHETIC_GESTURE_TARGET_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_INPUT_SYNTHETIC_GESTURE_TARGET_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_INPUT_SYNTHETIC_GESTURE_TARGET_H_
7 7
8 #include "base/time/time.h" 8 #include "base/time/time.h"
9 #include "content/browser/renderer_host/input/synthetic_gesture.h" 9 #include "content/browser/renderer_host/input/synthetic_gesture_new.h"
10 #include "content/common/content_export.h" 10 #include "content/common/content_export.h"
11 #include "content/common/input/synthetic_gesture_params.h" 11 #include "content/common/input/synthetic_gesture_params.h"
12 12
13 namespace content { 13 namespace content {
14 14
15 class InputEvent; 15 class InputEvent;
16 16
17 // Interface between the synthetic gesture controller and the RenderWidgetHost. 17 // Interface between the synthetic gesture controller and the RenderWidgetHost.
18 class CONTENT_EXPORT SyntheticGestureTarget { 18 class CONTENT_EXPORT SyntheticGestureTarget {
19 public: 19 public:
20 SyntheticGestureTarget() {} 20 SyntheticGestureTarget() {}
21 virtual ~SyntheticGestureTarget() {} 21 virtual ~SyntheticGestureTarget() {}
22 22
23 // Allows synthetic gestures to insert input events in the highest level of 23 // Allows synthetic gestures to insert input events in the highest level of
24 // input processing on the target platform (e.g. Java on Android), so that 24 // input processing on the target platform (e.g. Java on Android), so that
25 // the event traverses the entire input processing stack. 25 // the event traverses the entire input processing stack.
26 virtual void DispatchInputEventToPlatform(const InputEvent& event) = 0; 26 virtual void DispatchInputEventToPlatform(const InputEvent& event) = 0;
27 27
28 // Called by SyntheticGestureController when a gesture has finished. 28 // Called by SyntheticGestureController when a gesture has finished.
29 virtual void OnSyntheticGestureCompleted( 29 virtual void OnSyntheticGestureCompleted(
30 SyntheticGesture::Result result) = 0; 30 SyntheticGestureNew::Result result) = 0;
31 31
32 // Called by SyntheticGestureController to request a flush at a time 32 // Called by SyntheticGestureController to request a flush at a time
33 // appropriate for the platform, e.g. aligned with vsync. 33 // appropriate for the platform, e.g. aligned with vsync.
34 virtual void SetNeedsFlush() = 0; 34 virtual void SetNeedsFlush() = 0;
35 35
36 // Returns the default gesture source type for the target. 36 // Returns the default gesture source type for the target.
37 virtual SyntheticGestureParams::GestureSourceType 37 virtual SyntheticGestureParams::GestureSourceType
38 GetDefaultSyntheticGestureSourceType() const = 0; 38 GetDefaultSyntheticGestureSourceType() const = 0;
39 39
40 // Check if a particular gesture type is supported by the target. 40 // Check if a particular gesture type is supported by the target.
41 virtual bool SupportsSyntheticGestureSourceType( 41 virtual bool SupportsSyntheticGestureSourceType(
42 SyntheticGestureParams::GestureSourceType gesture_source_type) const = 0; 42 SyntheticGestureParams::GestureSourceType gesture_source_type) const = 0;
43 }; 43 };
44 44
45 } // namespace content 45 } // namespace content
46 46
47 #endif // CONTENT_BROWSER_RENDERER_HOST_INPUT_SYNTHETIC_GESTURE_TARGET_H_ 47 #endif // CONTENT_BROWSER_RENDERER_HOST_INPUT_SYNTHETIC_GESTURE_TARGET_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698