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

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

Issue 1884043002: Use black for resize gutter in tab fullscreen mode. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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 2da28efebd8d855e2dbbba5ba2e821fbcbd92ab6..c33e325cef30eaab1a331b7c0dcf7f6d7f8f6166 100644
--- a/content/browser/renderer_host/render_widget_host_view_aura.cc
+++ b/content/browser/renderer_host/render_widget_host_view_aura.cc
@@ -2768,6 +2768,16 @@ bool RenderWidgetHostViewAura::DelegatedFrameHostIsVisible() const {
return !host_->is_hidden();
}
+SkColor RenderWidgetHostViewAura::DelegatedFrameHostGetGutterColor(
+ SkColor color) const {
+ // When making an element on the page fullscreen the element's background
+ // may not match the page's, so use black as the gutter color to avoid
+ // flashes of brighter colors during the transition.
+ if (host_->delegate() && host_->delegate()->IsFullscreenForCurrentTab(host_))
+ return SK_ColorBLACK;
+ return color;
+}
+
gfx::Size RenderWidgetHostViewAura::DelegatedFrameHostDesiredSizeInDIP() const {
return window_->bounds().size();
}

Powered by Google App Engine
This is Rietveld 408576698