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

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

Issue 12328080: Plumb physical backing size from RWHV to renderer CC. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Adjust for call renamed to GetViewportSizePix() Created 7 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.cc
diff --git a/content/browser/renderer_host/render_widget_host_view_android.cc b/content/browser/renderer_host/render_widget_host_view_android.cc
index 96373173831c255da3aacce104bfc8d618fc552c..de560f1ca484daf711d5c245241510b87cf09d67 100644
--- a/content/browser/renderer_host/render_widget_host_view_android.cc
+++ b/content/browser/renderer_host/render_widget_host_view_android.cc
@@ -280,6 +280,13 @@ gfx::Rect RenderWidgetHostViewAndroid::GetViewBounds() const {
return gfx::Rect(content_view_core_->GetViewportSizeDip());
}
+gfx::Size RenderWidgetHostViewAndroid::GetPhysicalBackingSize() const {
+ if (!content_view_core_)
+ return gfx::Size();
+
+ return content_view_core_->GetViewportSizePix();
+}
+
void RenderWidgetHostViewAndroid::UpdateCursor(const WebCursor& cursor) {
// There are no cursors on Android.
}

Powered by Google App Engine
This is Rietveld 408576698