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

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

Issue 2664013002: input: Restrict synthetic touch gesture to view bounds.
Patch Set: Created 3 years, 10 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
« no previous file with comments | « no previous file | content/browser/renderer_host/input/synthetic_gesture_target_base.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/common/content_export.h" 9 #include "content/common/content_export.h"
10 #include "content/common/input/synthetic_gesture_params.h" 10 #include "content/common/input/synthetic_gesture_params.h"
11 #include "ui/gfx/geometry/size.h"
11 12
12 namespace blink { 13 namespace blink {
13 class WebInputEvent; 14 class WebInputEvent;
14 } 15 }
15 16
16 namespace content { 17 namespace content {
17 18
18 // Interface between the synthetic gesture controller and the RenderWidgetHost. 19 // Interface between the synthetic gesture controller and the RenderWidgetHost.
19 class CONTENT_EXPORT SyntheticGestureTarget { 20 class CONTENT_EXPORT SyntheticGestureTarget {
20 public: 21 public:
(...skipping 18 matching lines...) Expand all
39 // stopped moving. 40 // stopped moving.
40 virtual base::TimeDelta PointerAssumedStoppedTime() const = 0; 41 virtual base::TimeDelta PointerAssumedStoppedTime() const = 0;
41 42
42 // Returns the maximum number of DIPs a touch pointer can move without being 43 // Returns the maximum number of DIPs a touch pointer can move without being
43 // considered moving by the platform. 44 // considered moving by the platform.
44 virtual float GetTouchSlopInDips() const = 0; 45 virtual float GetTouchSlopInDips() const = 0;
45 46
46 // Returns the minimum number of DIPs two touch pointers have to be apart 47 // Returns the minimum number of DIPs two touch pointers have to be apart
47 // to perform a pinch-zoom. 48 // to perform a pinch-zoom.
48 virtual float GetMinScalingSpanInDips() const = 0; 49 virtual float GetMinScalingSpanInDips() const = 0;
50
51 virtual gfx::Size GetViewSize() const = 0;
49 }; 52 };
50 53
51 } // namespace content 54 } // namespace content
52 55
53 #endif // CONTENT_BROWSER_RENDERER_HOST_INPUT_SYNTHETIC_GESTURE_TARGET_H_ 56 #endif // CONTENT_BROWSER_RENDERER_HOST_INPUT_SYNTHETIC_GESTURE_TARGET_H_
OLDNEW
« no previous file with comments | « no previous file | content/browser/renderer_host/input/synthetic_gesture_target_base.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698