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

Unified Diff: content/browser/android/content_view_core_impl.h

Issue 11099007: Divide gesture events by dpi scale if IsDIPEnabled(). (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Rebase Created 8 years, 2 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/android/content_view_core_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/android/content_view_core_impl.h
diff --git a/content/browser/android/content_view_core_impl.h b/content/browser/android/content_view_core_impl.h
index 474ba1c264619349bbc375817c59ade9710f0b9e..02fbab4ea0c4e2a357c4f0a9bbdde0489906fef8 100644
--- a/content/browser/android/content_view_core_impl.h
+++ b/content/browser/android/content_view_core_impl.h
@@ -232,9 +232,9 @@ class ContentViewCoreImpl : public ContentViewCore,
int GetTouchPadding();
- void SendGestureEvent(WebKit::WebInputEvent::Type type, long time_ms,
- int x, int y);
-
+ float DpiScale() const;
+ WebKit::WebGestureEvent MakeGestureEvent(WebKit::WebInputEvent::Type type,
+ long time_ms, int x, int y) const;
struct JavaObject;
JavaObject* java_object_;
@@ -250,6 +250,8 @@ class ContentViewCoreImpl : public ContentViewCore,
// Whether the renderer backing this ContentViewCore has crashed.
bool tab_crashed_;
+ float dpi_scale_;
+
// The owning window that has a hold of main application activity.
ui::WindowAndroid* window_android_;
« no previous file with comments | « no previous file | content/browser/android/content_view_core_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698