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

Unified Diff: content/browser/renderer_host/render_widget_host_view_android.h

Issue 888793002: Make content_browsertests for Chrome on Android running with valid Views (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Set valid physical backing size before viewport size is set Created 5 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 side-by-side diff with in-line comments
Download patch
Index: content/browser/renderer_host/render_widget_host_view_android.h
diff --git a/content/browser/renderer_host/render_widget_host_view_android.h b/content/browser/renderer_host/render_widget_host_view_android.h
index 147867f754180cae00e32cd715a9723d10103521..78e177ec3d1eee34fbf34e40c65a9b9323bb4738 100644
--- a/content/browser/renderer_host/render_widget_host_view_android.h
+++ b/content/browser/renderer_host/render_widget_host_view_android.h
@@ -267,6 +267,8 @@ class CONTENT_EXPORT RenderWidgetHostViewAndroid
static void OnContextLost();
+ float last_page_scale_factor() { return last_page_scale_factor_; }
+
private:
void RunAckCallbacks();
@@ -409,6 +411,8 @@ class CONTENT_EXPORT RenderWidgetHostViewAndroid
// The last scroll offset of the view.
gfx::Vector2dF last_scroll_offset_;
+ float last_page_scale_factor_;
+
base::WeakPtrFactory<RenderWidgetHostViewAndroid> weak_ptr_factory_;
DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAndroid);

Powered by Google App Engine
This is Rietveld 408576698