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

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

Issue 2443613002: Rename classes related to top controls (Closed)
Patch Set: fix test Created 4 years, 1 month 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 bool RenderWidgetHostViewBase::DoTopControlsShrinkBlinkSize() const { 112 bool RenderWidgetHostViewBase::DoBrowserControlsShrinkBlinkSize() const {
113 return false; 113 return false;
114 } 114 }
115 115
116 float RenderWidgetHostViewBase::GetTopControlsHeight() const { 116 float RenderWidgetHostViewBase::GetTopControlsHeight() const {
117 return 0.f; 117 return 0.f;
118 } 118 }
119 119
120 void RenderWidgetHostViewBase::SelectionBoundsChanged( 120 void RenderWidgetHostViewBase::SelectionBoundsChanged(
121 const ViewHostMsg_SelectionBounds_Params& params) { 121 const ViewHostMsg_SelectionBounds_Params& params) {
122 #if !defined(OS_ANDROID) 122 #if !defined(OS_ANDROID)
(...skipping 399 matching lines...) Expand 10 before | Expand all | Expand 10 after
522 522
523 bool RenderWidgetHostViewBase::IsChildFrameForTesting() const { 523 bool RenderWidgetHostViewBase::IsChildFrameForTesting() const {
524 return false; 524 return false;
525 } 525 }
526 526
527 cc::SurfaceId RenderWidgetHostViewBase::SurfaceIdForTesting() const { 527 cc::SurfaceId RenderWidgetHostViewBase::SurfaceIdForTesting() const {
528 return cc::SurfaceId(); 528 return cc::SurfaceId();
529 } 529 }
530 530
531 } // namespace content 531 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698