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

Unified Diff: content/test/test_render_view_host.cc

Issue 2702153003: [content] Fix background color update handling in RWHVAura. (Closed)
Patch Set: Remove GetBackgroundOpaque and base impls of accessors. 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 side-by-side diff with in-line comments
Download patch
Index: content/test/test_render_view_host.cc
diff --git a/content/test/test_render_view_host.cc b/content/test/test_render_view_host.cc
index 9464fc51e6ab9bf8c8e30453391ae6d08aaceba1..7955fb2107be4e1a5e8a6e33753e64f853ecc30a 100644
--- a/content/test/test_render_view_host.cc
+++ b/content/test/test_render_view_host.cc
@@ -62,7 +62,8 @@ TestRenderWidgetHostView::TestRenderWidgetHostView(RenderWidgetHost* rwh)
: rwh_(RenderWidgetHostImpl::From(rwh)),
is_showing_(false),
is_occluded_(false),
- did_swap_compositor_frame_(false) {
+ did_swap_compositor_frame_(false),
+ background_color_(SK_ColorWHITE) {
#if defined(OS_ANDROID)
// Not all tests initialize or need a context provider factory.
if (ContextProviderFactoryImpl::GetInstance()) {
@@ -153,6 +154,14 @@ gfx::Rect TestRenderWidgetHostView::GetViewBounds() const {
return gfx::Rect();
}
+void TestRenderWidgetHostView::SetBackgroundColor(SkColor color) {
+ background_color_ = color;
+}
+
+SkColor TestRenderWidgetHostView::background_color() const {
+ return background_color_;
+}
+
void TestRenderWidgetHostView::CopyFromCompositingSurface(
const gfx::Rect& src_subrect,
const gfx::Size& dst_size,
« content/public/browser/render_widget_host_view.h ('K') | « content/test/test_render_view_host.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698