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

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

Issue 2299613003: New Compositor and tab content
Patch Set: more clean up Created 4 years, 4 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 | « content/browser/renderer_host/render_widget_host_view_android.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 8d39adac14aca1e9154d03b6618015f244502712..c0c414f542e3bb2b25b0237bcc816804c61f6422 100644
--- a/content/browser/renderer_host/render_widget_host_view_android.cc
+++ b/content/browser/renderer_host/render_widget_host_view_android.cc
@@ -386,10 +386,14 @@ void RenderWidgetHostViewAndroid::WasResized() {
void RenderWidgetHostViewAndroid::SetSize(const gfx::Size& size) {
// Ignore the given size as only the Java code has the power to
// resize the view on Android.
+ LOG(ERROR) << "bshe"
+ << "====set size should set to ====" << size.ToString();
default_bounds_ = gfx::Rect(default_bounds_.origin(), size);
}
void RenderWidgetHostViewAndroid::SetBounds(const gfx::Rect& rect) {
+ LOG(ERROR) << "bshe"
+ << "===Setbounds ====" << rect.ToString();
default_bounds_ = rect;
}
@@ -551,9 +555,13 @@ gfx::Rect RenderWidgetHostViewAndroid::GetViewBounds() const {
return default_bounds_;
if (base::CommandLine::ForCurrentProcess()->HasSwitch(
- switches::kEnableOSKOverscroll))
+ switches::kEnableOSKOverscroll)) {
return gfx::Rect(content_view_core_->GetViewSizeWithOSKHidden());
+ }
+ LOG(ERROR) << "bshe"
+ << "====get view bounds===="
+ << gfx::Rect(content_view_core_->GetViewSize()).ToString();
return gfx::Rect(content_view_core_->GetViewSize());
}
@@ -565,6 +573,9 @@ gfx::Size RenderWidgetHostViewAndroid::GetVisibleViewportSize() const {
}
gfx::Size RenderWidgetHostViewAndroid::GetPhysicalBackingSize() const {
+ // return gfx::Size(2560, 1440);
+ LOG(ERROR) << " get physical backing size, return empty size? ";
+
if (!content_view_core_) {
if (default_bounds_.IsEmpty()) return gfx::Size();
@@ -574,6 +585,8 @@ gfx::Size RenderWidgetHostViewAndroid::GetPhysicalBackingSize() const {
* ui::GetScaleFactorForNativeView(GetNativeView()));
}
+ LOG(ERROR) << " get physical backing size, real size "
+ << content_view_core_->GetPhysicalBackingSize().ToString();
return content_view_core_->GetPhysicalBackingSize();
}
« no previous file with comments | « content/browser/renderer_host/render_widget_host_view_android.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698