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

Unified Diff: content/browser/renderer_host/render_widget_host_view_aura.cc

Issue 654123004: Revert of Sets the default background color of inline signin and user manager to grey (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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/browser/renderer_host/render_widget_host_view_aura.cc
diff --git a/content/browser/renderer_host/render_widget_host_view_aura.cc b/content/browser/renderer_host/render_widget_host_view_aura.cc
index 8e79e9a1e55e4df1495663e43c24b6f52741de73..774920e96163b804af49d191c86664d33071763a 100644
--- a/content/browser/renderer_host/render_widget_host_view_aura.cc
+++ b/content/browser/renderer_host/render_widget_host_view_aura.cc
@@ -476,7 +476,7 @@
window_->SetType(ui::wm::WINDOW_TYPE_CONTROL);
window_->Init(aura::WINDOW_LAYER_SOLID_COLOR);
window_->SetName("RenderWidgetHostViewAura");
- window_->layer()->SetColor(background_color_);
+ window_->layer()->SetColor(SK_ColorWHITE);
}
void RenderWidgetHostViewAura::InitAsPopup(
@@ -505,7 +505,7 @@
window_->SetType(ui::wm::WINDOW_TYPE_MENU);
window_->Init(aura::WINDOW_LAYER_SOLID_COLOR);
window_->SetName("RenderWidgetHostViewAura");
- window_->layer()->SetColor(background_color_);
+ window_->layer()->SetColor(SK_ColorWHITE);
// Setting the transient child allows for the popup to get mouse events when
// in a system modal dialog. Do this before calling ParentWindowWithContext
@@ -534,7 +534,7 @@
window_->Init(aura::WINDOW_LAYER_SOLID_COLOR);
window_->SetName("RenderWidgetHostViewAura");
window_->SetProperty(aura::client::kShowStateKey, ui::SHOW_STATE_FULLSCREEN);
- window_->layer()->SetColor(background_color_);
+ window_->layer()->SetColor(SK_ColorWHITE);
aura::Window* parent = NULL;
gfx::Rect bounds;
@@ -805,12 +805,12 @@
return window_->GetBoundsInScreen();
}
-void RenderWidgetHostViewAura::SetBackgroundColor(SkColor color) {
- RenderWidgetHostViewBase::SetBackgroundColor(color);
- bool opaque = GetBackgroundOpaque();
+void RenderWidgetHostViewAura::SetBackgroundOpaque(bool opaque) {
+ RenderWidgetHostViewBase::SetBackgroundOpaque(opaque);
host_->SetBackgroundOpaque(opaque);
window_->layer()->SetFillsBoundsOpaquely(opaque);
- window_->layer()->SetColor(color);
+ SkColor background_color = opaque ? SK_ColorWHITE : SK_ColorTRANSPARENT;
+ window_->layer()->SetColor(background_color);
}
gfx::Size RenderWidgetHostViewAura::GetVisibleViewportSize() const {

Powered by Google App Engine
This is Rietveld 408576698