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

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

Issue 2497033002: Break apart WebGestureEvent from WebInputEvent. (Closed)
Patch Set: Rebase Created 4 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
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_TOUCHPAD_PINCH_GESTURE_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_INPUT_SYNTHETIC_TOUCHPAD_PINCH_GESTURE_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_INPUT_SYNTHETIC_TOUCHPAD_PINCH_GESTURE_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_INPUT_SYNTHETIC_TOUCHPAD_PINCH_GESTURE_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "base/time/time.h" 9 #include "base/time/time.h"
10 #include "content/browser/renderer_host/input/synthetic_gesture.h" 10 #include "content/browser/renderer_host/input/synthetic_gesture.h"
11 #include "content/browser/renderer_host/input/synthetic_gesture_target.h" 11 #include "content/browser/renderer_host/input/synthetic_gesture_target.h"
12 #include "content/common/content_export.h" 12 #include "content/common/content_export.h"
13 #include "content/common/input/synthetic_pinch_gesture_params.h" 13 #include "content/common/input/synthetic_pinch_gesture_params.h"
14 #include "content/common/input/synthetic_web_input_event_builders.h" 14 #include "content/common/input/synthetic_web_input_event_builders.h"
15 #include "third_party/WebKit/public/web/WebInputEvent.h" 15 #include "third_party/WebKit/public/platform/WebInputEvent.h"
16 16
17 namespace content { 17 namespace content {
18 18
19 class CONTENT_EXPORT SyntheticTouchpadPinchGesture : public SyntheticGesture { 19 class CONTENT_EXPORT SyntheticTouchpadPinchGesture : public SyntheticGesture {
20 public: 20 public:
21 explicit SyntheticTouchpadPinchGesture( 21 explicit SyntheticTouchpadPinchGesture(
22 const SyntheticPinchGestureParams& params); 22 const SyntheticPinchGestureParams& params);
23 ~SyntheticTouchpadPinchGesture() override; 23 ~SyntheticTouchpadPinchGesture() override;
24 24
25 SyntheticGesture::Result ForwardInputEvents( 25 SyntheticGesture::Result ForwardInputEvents(
(...skipping 20 matching lines...) Expand all
46 base::TimeTicks stop_time_; 46 base::TimeTicks stop_time_;
47 float current_scale_; 47 float current_scale_;
48 48
49 private: 49 private:
50 DISALLOW_COPY_AND_ASSIGN(SyntheticTouchpadPinchGesture); 50 DISALLOW_COPY_AND_ASSIGN(SyntheticTouchpadPinchGesture);
51 }; 51 };
52 52
53 } // namespace content 53 } // namespace content
54 54
55 #endif // CONTENT_BROWSER_RENDERER_HOST_INPUT_SYNTHETIC_TOUCHPAD_PINCH_GESTURE_ H_ 55 #endif // CONTENT_BROWSER_RENDERER_HOST_INPUT_SYNTHETIC_TOUCHPAD_PINCH_GESTURE_ H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698