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

Unified Diff: content/test/test_render_view_host.cc

Issue 2702153003: [content] Fix background color update handling in RWHVAura. (Closed)
Patch Set: rebase: employ same mechanism in RWHVMac. Created 3 years, 8 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
« no previous file with comments | « content/test/test_render_view_host.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 40c6fdd91993a5875ffc34970bf3026ec2c02775..691b57b96e7d944d7ecc95bfac79444ad3cef553 100644
--- a/content/test/test_render_view_host.cc
+++ b/content/test/test_render_view_host.cc
@@ -58,7 +58,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)
frame_sink_id_ = AllocateFrameSinkId();
GetSurfaceManager()->RegisterFrameSinkId(frame_sink_id_);
@@ -136,6 +137,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_;
+}
+
bool TestRenderWidgetHostView::HasAcceleratedSurface(
const gfx::Size& desired_size) {
return false;
« no previous file with comments | « 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