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 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
87 } | 87 } |
88 | 88 |
89 bool RenderWidgetHostViewBase::OnMessageReceived(const IPC::Message& msg){ | 89 bool RenderWidgetHostViewBase::OnMessageReceived(const IPC::Message& msg){ |
90 return false; | 90 return false; |
91 } | 91 } |
92 | 92 |
93 void RenderWidgetHostViewBase::SetBackgroundColor(SkColor color) { | 93 void RenderWidgetHostViewBase::SetBackgroundColor(SkColor color) { |
94 background_color_ = color; | 94 background_color_ = color; |
95 } | 95 } |
96 | 96 |
| 97 SkColor RenderWidgetHostViewBase::background_color() { |
| 98 return background_color_; |
| 99 } |
| 100 |
97 void RenderWidgetHostViewBase::SetBackgroundColorToDefault() { | 101 void RenderWidgetHostViewBase::SetBackgroundColorToDefault() { |
98 SetBackgroundColor(SK_ColorWHITE); | 102 SetBackgroundColor(SK_ColorWHITE); |
99 } | 103 } |
100 | 104 |
101 bool RenderWidgetHostViewBase::GetBackgroundOpaque() { | 105 bool RenderWidgetHostViewBase::GetBackgroundOpaque() { |
102 return SkColorGetA(background_color_) == SK_AlphaOPAQUE; | 106 return SkColorGetA(background_color_) == SK_AlphaOPAQUE; |
103 } | 107 } |
104 | 108 |
105 gfx::Size RenderWidgetHostViewBase::GetPhysicalBackingSize() const { | 109 gfx::Size RenderWidgetHostViewBase::GetPhysicalBackingSize() const { |
106 display::Display display = | 110 display::Display display = |
(...skipping 415 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
522 | 526 |
523 bool RenderWidgetHostViewBase::IsChildFrameForTesting() const { | 527 bool RenderWidgetHostViewBase::IsChildFrameForTesting() const { |
524 return false; | 528 return false; |
525 } | 529 } |
526 | 530 |
527 cc::SurfaceId RenderWidgetHostViewBase::SurfaceIdForTesting() const { | 531 cc::SurfaceId RenderWidgetHostViewBase::SurfaceIdForTesting() const { |
528 return cc::SurfaceId(); | 532 return cc::SurfaceId(); |
529 } | 533 } |
530 | 534 |
531 } // namespace content | 535 } // namespace content |
OLD | NEW |