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

Side by Side Diff: extensions/components/native_app_window/native_app_window_views.cc

Issue 637083002: 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: rebased Created 6 years, 1 month 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 unified diff | Download patch
« no previous file with comments | « extensions/browser/guest_view/web_view/web_view_guest.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 "extensions/components/native_app_window/native_app_window_views.h" 5 #include "extensions/components/native_app_window/native_app_window_views.h"
6 6
7 #include "base/threading/sequenced_worker_pool.h" 7 #include "base/threading/sequenced_worker_pool.h"
8 #include "content/public/browser/render_view_host.h" 8 #include "content/public/browser/render_view_host.h"
9 #include "content/public/browser/render_widget_host_view.h" 9 #include "content/public/browser/render_widget_host_view.h"
10 #include "content/public/browser/web_contents.h" 10 #include "content/public/browser/web_contents.h"
(...skipping 275 matching lines...) Expand 10 before | Expand all | Expand 10 after
286 app_window_->OnNativeWindowActivated(); 286 app_window_->OnNativeWindowActivated();
287 } 287 }
288 288
289 // WebContentsObserver implementation. 289 // WebContentsObserver implementation.
290 290
291 void NativeAppWindowViews::RenderViewCreated( 291 void NativeAppWindowViews::RenderViewCreated(
292 content::RenderViewHost* render_view_host) { 292 content::RenderViewHost* render_view_host) {
293 if (app_window_->requested_alpha_enabled() && CanHaveAlphaEnabled()) { 293 if (app_window_->requested_alpha_enabled() && CanHaveAlphaEnabled()) {
294 content::RenderWidgetHostView* view = render_view_host->GetView(); 294 content::RenderWidgetHostView* view = render_view_host->GetView();
295 DCHECK(view); 295 DCHECK(view);
296 view->SetBackgroundOpaque(false); 296 view->SetBackgroundColor(SK_ColorTRANSPARENT);
297 } 297 }
298 } 298 }
299 299
300 void NativeAppWindowViews::RenderViewHostChanged( 300 void NativeAppWindowViews::RenderViewHostChanged(
301 content::RenderViewHost* old_host, 301 content::RenderViewHost* old_host,
302 content::RenderViewHost* new_host) { 302 content::RenderViewHost* new_host) {
303 OnViewWasResized(); 303 OnViewWasResized();
304 } 304 }
305 305
306 // views::View implementation. 306 // views::View implementation.
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after
438 438
439 bool NativeAppWindowViews::CanHaveAlphaEnabled() const { 439 bool NativeAppWindowViews::CanHaveAlphaEnabled() const {
440 return widget_->IsTranslucentWindowOpacitySupported(); 440 return widget_->IsTranslucentWindowOpacitySupported();
441 } 441 }
442 442
443 void NativeAppWindowViews::SetVisibleOnAllWorkspaces(bool always_visible) { 443 void NativeAppWindowViews::SetVisibleOnAllWorkspaces(bool always_visible) {
444 widget_->SetVisibleOnAllWorkspaces(always_visible); 444 widget_->SetVisibleOnAllWorkspaces(always_visible);
445 } 445 }
446 446
447 } // namespace native_app_window 447 } // namespace native_app_window
OLDNEW
« no previous file with comments | « extensions/browser/guest_view/web_view/web_view_guest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698