| 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 "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 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 66 } | 66 } |
| 67 | 67 |
| 68 bool RenderWidgetHostViewBase::OnMessageReceived(const IPC::Message& msg){ | 68 bool RenderWidgetHostViewBase::OnMessageReceived(const IPC::Message& msg){ |
| 69 return false; | 69 return false; |
| 70 } | 70 } |
| 71 | 71 |
| 72 void RenderWidgetHostViewBase::SetBackgroundColor(SkColor color) { | 72 void RenderWidgetHostViewBase::SetBackgroundColor(SkColor color) { |
| 73 background_color_ = color; | 73 background_color_ = color; |
| 74 } | 74 } |
| 75 | 75 |
| 76 SkColor RenderWidgetHostViewBase::background_color() { |
| 77 return background_color_; |
| 78 } |
| 79 |
| 76 void RenderWidgetHostViewBase::SetBackgroundColorToDefault() { | 80 void RenderWidgetHostViewBase::SetBackgroundColorToDefault() { |
| 77 SetBackgroundColor(SK_ColorWHITE); | 81 SetBackgroundColor(SK_ColorWHITE); |
| 78 } | 82 } |
| 79 | 83 |
| 80 bool RenderWidgetHostViewBase::GetBackgroundOpaque() { | 84 bool RenderWidgetHostViewBase::GetBackgroundOpaque() { |
| 81 return SkColorGetA(background_color_) == SK_AlphaOPAQUE; | 85 return SkColorGetA(background_color_) == SK_AlphaOPAQUE; |
| 82 } | 86 } |
| 83 | 87 |
| 84 gfx::Size RenderWidgetHostViewBase::GetPhysicalBackingSize() const { | 88 gfx::Size RenderWidgetHostViewBase::GetPhysicalBackingSize() const { |
| 85 display::Display display = | 89 display::Display display = |
| (...skipping 308 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 394 | 398 |
| 395 bool RenderWidgetHostViewBase::IsChildFrameForTesting() const { | 399 bool RenderWidgetHostViewBase::IsChildFrameForTesting() const { |
| 396 return false; | 400 return false; |
| 397 } | 401 } |
| 398 | 402 |
| 399 cc::SurfaceId RenderWidgetHostViewBase::SurfaceIdForTesting() const { | 403 cc::SurfaceId RenderWidgetHostViewBase::SurfaceIdForTesting() const { |
| 400 return cc::SurfaceId(); | 404 return cc::SurfaceId(); |
| 401 } | 405 } |
| 402 | 406 |
| 403 } // namespace content | 407 } // namespace content |
| OLD | NEW |