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

Unified Diff: android_webview/browser/browser_view_renderer_impl.cc

Issue 12567020: [android] Resize the android_webview if it's 0x0 initially. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 8 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: android_webview/browser/browser_view_renderer_impl.cc
diff --git a/android_webview/browser/browser_view_renderer_impl.cc b/android_webview/browser/browser_view_renderer_impl.cc
index 83fc87d8578d685df47b3dae52e7cac5e145016a..6ace7ec444806c362d05c0d00dad0e98511e3539 100644
--- a/android_webview/browser/browser_view_renderer_impl.cc
+++ b/android_webview/browser/browser_view_renderer_impl.cc
@@ -476,6 +476,17 @@ void BrowserViewRendererImpl::OnPictureUpdated(int process_id,
Invalidate();
}
+void BrowserViewRendererImpl::OnPageScaleFactorChanged(
+ int process_id,
+ int render_view_id,
+ float page_scale_factor) {
+ CHECK_EQ(web_contents_->GetRenderProcessHost()->GetID(), process_id);
+ if (render_view_id != web_contents_->GetRoutingID())
+ return;
+
+ client_->OnPageScaleFactorChanged(page_scale_factor);
+}
+
void BrowserViewRendererImpl::SetCompositorVisibility(bool visible) {
if (compositor_visible_ != visible) {
compositor_visible_ = visible;
« no previous file with comments | « android_webview/browser/browser_view_renderer_impl.h ('k') | android_webview/browser/renderer_host/view_renderer_host.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698