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

Side by Side Diff: content/browser/renderer_host/render_widget_host_view_aura.cc

Issue 1980163002: Use black for resize gutter in tab fullscreen mode. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2704
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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 "content/browser/renderer_host/render_widget_host_view_aura.h" 5 #include "content/browser/renderer_host/render_widget_host_view_aura.h"
6 6
7 #include <set> 7 #include <set>
8 #include <utility> 8 #include <utility>
9 9
10 #include "base/auto_reset.h" 10 #include "base/auto_reset.h"
(...skipping 2831 matching lines...) Expand 10 before | Expand all | Expand 10 after
2842 // DelegatedFrameHost, public: 2842 // DelegatedFrameHost, public:
2843 2843
2844 ui::Layer* RenderWidgetHostViewAura::DelegatedFrameHostGetLayer() const { 2844 ui::Layer* RenderWidgetHostViewAura::DelegatedFrameHostGetLayer() const {
2845 return window_->layer(); 2845 return window_->layer();
2846 } 2846 }
2847 2847
2848 bool RenderWidgetHostViewAura::DelegatedFrameHostIsVisible() const { 2848 bool RenderWidgetHostViewAura::DelegatedFrameHostIsVisible() const {
2849 return !host_->is_hidden(); 2849 return !host_->is_hidden();
2850 } 2850 }
2851 2851
2852 SkColor RenderWidgetHostViewAura::DelegatedFrameHostGetGutterColor(
2853 SkColor color) const {
2854 // When making an element on the page fullscreen the element's background
2855 // may not match the page's, so use black as the gutter color to avoid
2856 // flashes of brighter colors during the transition.
2857 if (host_->delegate() && host_->delegate()->IsFullscreenForCurrentTab(host_))
2858 return SK_ColorBLACK;
2859 return color;
2860 }
2861
2852 gfx::Size RenderWidgetHostViewAura::DelegatedFrameHostDesiredSizeInDIP() const { 2862 gfx::Size RenderWidgetHostViewAura::DelegatedFrameHostDesiredSizeInDIP() const {
2853 return window_->bounds().size(); 2863 return window_->bounds().size();
2854 } 2864 }
2855 2865
2856 bool RenderWidgetHostViewAura::DelegatedFrameCanCreateResizeLock() const { 2866 bool RenderWidgetHostViewAura::DelegatedFrameCanCreateResizeLock() const {
2857 #if !defined(OS_CHROMEOS) 2867 #if !defined(OS_CHROMEOS)
2858 // On Windows and Linux, holding pointer moves will not help throttling 2868 // On Windows and Linux, holding pointer moves will not help throttling
2859 // resizes. 2869 // resizes.
2860 // TODO(piman): on Windows we need to block (nested message loop?) the 2870 // TODO(piman): on Windows we need to block (nested message loop?) the
2861 // WM_SIZE event. On Linux we need to throttle at the WM level using 2871 // WM_SIZE event. On Linux we need to throttle at the WM level using
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
2929 2939
2930 //////////////////////////////////////////////////////////////////////////////// 2940 ////////////////////////////////////////////////////////////////////////////////
2931 // RenderWidgetHostViewBase, public: 2941 // RenderWidgetHostViewBase, public:
2932 2942
2933 // static 2943 // static
2934 void RenderWidgetHostViewBase::GetDefaultScreenInfo(WebScreenInfo* results) { 2944 void RenderWidgetHostViewBase::GetDefaultScreenInfo(WebScreenInfo* results) {
2935 GetScreenInfoForWindow(results, NULL); 2945 GetScreenInfoForWindow(results, NULL);
2936 } 2946 }
2937 2947
2938 } // namespace content 2948 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698