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

Side by Side Diff: content/common/input/synthetic_pinch_gesture_params.h

Issue 293683002: Synthetic pinch gesture take scale factor as parameter. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 6 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 | 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_COMMON_INPUT_SYNTHETIC_PINCH_GESTURE_PARAMS_H_ 5 #ifndef CONTENT_COMMON_INPUT_SYNTHETIC_PINCH_GESTURE_PARAMS_H_
6 #define CONTENT_COMMON_INPUT_SYNTHETIC_PINCH_GESTURE_PARAMS_H_ 6 #define CONTENT_COMMON_INPUT_SYNTHETIC_PINCH_GESTURE_PARAMS_H_
7 7
8 #include "content/common/content_export.h" 8 #include "content/common/content_export.h"
9 #include "content/common/input/synthetic_gesture_params.h" 9 #include "content/common/input/synthetic_gesture_params.h"
10 #include "ui/gfx/point.h" 10 #include "ui/gfx/point.h"
11 11
12 namespace content { 12 namespace content {
13 13
14 struct CONTENT_EXPORT SyntheticPinchGestureParams 14 struct CONTENT_EXPORT SyntheticPinchGestureParams
15 : public SyntheticGestureParams { 15 : public SyntheticGestureParams {
16 public: 16 public:
17 SyntheticPinchGestureParams(); 17 SyntheticPinchGestureParams();
18 SyntheticPinchGestureParams( 18 SyntheticPinchGestureParams(
19 const SyntheticPinchGestureParams& other); 19 const SyntheticPinchGestureParams& other);
20 virtual ~SyntheticPinchGestureParams(); 20 virtual ~SyntheticPinchGestureParams();
21 21
22 virtual GestureType GetGestureType() const OVERRIDE; 22 virtual GestureType GetGestureType() const OVERRIDE;
23 23
24 bool zoom_in; 24 float scale_factor;
25 int total_num_pixels_covered;
26 gfx::Point anchor; 25 gfx::Point anchor;
27 int relative_pointer_speed_in_pixels_s; 26 int relative_pointer_speed_in_pixels_s;
28 27
29 static const SyntheticPinchGestureParams* Cast( 28 static const SyntheticPinchGestureParams* Cast(
30 const SyntheticGestureParams* gesture_params); 29 const SyntheticGestureParams* gesture_params);
31 }; 30 };
32 31
33 } // namespace content 32 } // namespace content
34 33
35 #endif // CONTENT_COMMON_INPUT_SYNTHETIC_PINCH_GESTURE_PARAMS_H_ 34 #endif // CONTENT_COMMON_INPUT_SYNTHETIC_PINCH_GESTURE_PARAMS_H_
OLDNEW
« no previous file with comments | « content/common/input/input_param_traits_unittest.cc ('k') | content/common/input/synthetic_pinch_gesture_params.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698