OLD | NEW |
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 "base/profiler/scoped_tracker.h" | 8 #include "base/profiler/scoped_tracker.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 385 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
396 } | 396 } |
397 | 397 |
398 bool RenderWidgetHostViewBase::GetBackgroundOpaque() { | 398 bool RenderWidgetHostViewBase::GetBackgroundOpaque() { |
399 return SkColorGetA(background_color_) == SK_AlphaOPAQUE; | 399 return SkColorGetA(background_color_) == SK_AlphaOPAQUE; |
400 } | 400 } |
401 | 401 |
402 gfx::Size RenderWidgetHostViewBase::GetPhysicalBackingSize() const { | 402 gfx::Size RenderWidgetHostViewBase::GetPhysicalBackingSize() const { |
403 gfx::NativeView view = GetNativeView(); | 403 gfx::NativeView view = GetNativeView(); |
404 gfx::Display display = | 404 gfx::Display display = |
405 gfx::Screen::GetScreenFor(view)->GetDisplayNearestWindow(view); | 405 gfx::Screen::GetScreenFor(view)->GetDisplayNearestWindow(view); |
406 return gfx::ToCeiledSize(gfx::ScaleSize(GetRequestedRendererSize(), | 406 return gfx::ScaleToCeiledSize(GetRequestedRendererSize(), |
407 display.device_scale_factor())); | 407 display.device_scale_factor()); |
408 } | 408 } |
409 | 409 |
410 bool RenderWidgetHostViewBase::DoTopControlsShrinkBlinkSize() const { | 410 bool RenderWidgetHostViewBase::DoTopControlsShrinkBlinkSize() const { |
411 return false; | 411 return false; |
412 } | 412 } |
413 | 413 |
414 float RenderWidgetHostViewBase::GetTopControlsHeight() const { | 414 float RenderWidgetHostViewBase::GetTopControlsHeight() const { |
415 return 0.f; | 415 return 0.f; |
416 } | 416 } |
417 | 417 |
(...skipping 258 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
676 } | 676 } |
677 | 677 |
678 uint32_t RenderWidgetHostViewBase::SurfaceIdNamespaceAtPoint( | 678 uint32_t RenderWidgetHostViewBase::SurfaceIdNamespaceAtPoint( |
679 const gfx::Point& point, | 679 const gfx::Point& point, |
680 gfx::Point* transformed_point) { | 680 gfx::Point* transformed_point) { |
681 NOTREACHED(); | 681 NOTREACHED(); |
682 return 0; | 682 return 0; |
683 } | 683 } |
684 | 684 |
685 } // namespace content | 685 } // namespace content |
OLD | NEW |