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

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

Issue 95153002: Make touch-based synthetic gesture take touch slop into account. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove unused variable. Created 7 years 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.h"
10 #include "content/common/content_export.h" 10 #include "content/common/content_export.h"
(...skipping 26 matching lines...) Expand all
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 // After how much time of inaction does the target assume that a pointer has 44 // After how much time of inaction does the target assume that a pointer has
45 // stopped moving. 45 // stopped moving.
46 virtual base::TimeDelta PointerAssumedStoppedTime() const = 0; 46 virtual base::TimeDelta PointerAssumedStoppedTime() const = 0;
47
48 // Returns the maximum number of DIPs a touch pointer can move without being
49 // considered moving by the platform.
50 virtual int GetTouchSlopInDips() const = 0;
47 }; 51 };
48 52
49 } // namespace content 53 } // namespace content
50 54
51 #endif // CONTENT_BROWSER_RENDERER_HOST_INPUT_SYNTHETIC_GESTURE_TARGET_H_ 55 #endif // CONTENT_BROWSER_RENDERER_HOST_INPUT_SYNTHETIC_GESTURE_TARGET_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698