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

Side by Side Diff: content/browser/renderer_host/render_widget_host_view_base.cc

Issue 2695093005: Remove RWHV::SetBounds() from the public API, and make comments clearer.
Patch Set: Revert web_contents_sizer to its previous shenanigans (http://crbug.com/693953). Created 3 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "content/browser/renderer_host/render_widget_host_view_base.h" 5 #include "content/browser/renderer_host/render_widget_host_view_base.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "build/build_config.h" 8 #include "build/build_config.h"
9 #include "content/browser/accessibility/browser_accessibility_manager.h" 9 #include "content/browser/accessibility/browser_accessibility_manager.h"
10 #include "content/browser/gpu/gpu_data_manager_impl.h" 10 #include "content/browser/gpu/gpu_data_manager_impl.h"
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
102 return SkColorGetA(background_color_) == SK_AlphaOPAQUE; 102 return SkColorGetA(background_color_) == SK_AlphaOPAQUE;
103 } 103 }
104 104
105 gfx::Size RenderWidgetHostViewBase::GetPhysicalBackingSize() const { 105 gfx::Size RenderWidgetHostViewBase::GetPhysicalBackingSize() const {
106 display::Display display = 106 display::Display display =
107 display::Screen::GetScreen()->GetDisplayNearestWindow(GetNativeView()); 107 display::Screen::GetScreen()->GetDisplayNearestWindow(GetNativeView());
108 return gfx::ScaleToCeiledSize(GetRequestedRendererSize(), 108 return gfx::ScaleToCeiledSize(GetRequestedRendererSize(),
109 display.device_scale_factor()); 109 display.device_scale_factor());
110 } 110 }
111 111
112 void RenderWidgetHostViewBase::RequestTopLevelBoundsInScreen(
113 const gfx::Rect& rect) {}
114
112 bool RenderWidgetHostViewBase::DoBrowserControlsShrinkBlinkSize() const { 115 bool RenderWidgetHostViewBase::DoBrowserControlsShrinkBlinkSize() const {
113 return false; 116 return false;
114 } 117 }
115 118
116 float RenderWidgetHostViewBase::GetTopControlsHeight() const { 119 float RenderWidgetHostViewBase::GetTopControlsHeight() const {
117 return 0.f; 120 return 0.f;
118 } 121 }
119 122
120 void RenderWidgetHostViewBase::SelectionBoundsChanged( 123 void RenderWidgetHostViewBase::SelectionBoundsChanged(
121 const ViewHostMsg_SelectionBounds_Params& params) { 124 const ViewHostMsg_SelectionBounds_Params& params) {
(...skipping 379 matching lines...) Expand 10 before | Expand all | Expand 10 after
501 504
502 bool RenderWidgetHostViewBase::IsChildFrameForTesting() const { 505 bool RenderWidgetHostViewBase::IsChildFrameForTesting() const {
503 return false; 506 return false;
504 } 507 }
505 508
506 cc::SurfaceId RenderWidgetHostViewBase::SurfaceIdForTesting() const { 509 cc::SurfaceId RenderWidgetHostViewBase::SurfaceIdForTesting() const {
507 return cc::SurfaceId(); 510 return cc::SurfaceId();
508 } 511 }
509 512
510 } // namespace content 513 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698