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

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

Issue 1731373002: Allow to have a transparent UA dependent background. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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 | « chrome/common/chrome_switches.cc ('k') | content/public/common/content_switches.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 b5f413fc94afa96a6cc1a2884c1c85fa9940efe9..2f7def8a50288c368ae19bd7070b628e9d2848a9 100644
--- a/content/browser/renderer_host/render_widget_host_view_aura.cc
+++ b/content/browser/renderer_host/render_widget_host_view_aura.cc
@@ -809,6 +809,11 @@ void RenderWidgetHostViewAura::Focus() {
aura::client::FocusClient* client = aura::client::GetFocusClient(window_);
if (client)
window_->Focus();
+
+ if (base::CommandLine::ForCurrentProcess()->HasSwitch(
+ switches::kTransparentBackgroundRWHV)) {
+ SetBackgroundColor(SK_ColorTRANSPARENT);
+ }
}
bool RenderWidgetHostViewAura::HasFocus() const {
« no previous file with comments | « chrome/common/chrome_switches.cc ('k') | content/public/common/content_switches.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698