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

Unified 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, 11 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 side-by-side diff with in-line comments
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 »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/renderer_host/input/synthetic_gesture_target.h
diff --git a/content/browser/renderer_host/input/synthetic_gesture_target.h b/content/browser/renderer_host/input/synthetic_gesture_target.h
index da44ba2e3be5c3349ca5765ce8a02c40390da3a0..2558771b31b55f07f37fc9f01d09d771b4be0c8c 100644
--- a/content/browser/renderer_host/input/synthetic_gesture_target.h
+++ b/content/browser/renderer_host/input/synthetic_gesture_target.h
@@ -8,6 +8,7 @@
#include "base/time/time.h"
#include "content/common/content_export.h"
#include "content/common/input/synthetic_gesture_params.h"
+#include "ui/gfx/geometry/size.h"
namespace blink {
class WebInputEvent;
@@ -46,6 +47,8 @@ class CONTENT_EXPORT SyntheticGestureTarget {
// Returns the minimum number of DIPs two touch pointers have to be apart
// to perform a pinch-zoom.
virtual float GetMinScalingSpanInDips() const = 0;
+
+ virtual gfx::Size GetViewSize() const = 0;
};
} // namespace content
« 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