| 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();
|
| }
|
|
|
|
|