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

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

Issue 975293004: Start caching the theme color in web_contents (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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 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_base.h" 5 #include "content/browser/renderer_host/render_widget_host_view_base.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "base/profiler/scoped_tracker.h" 8 #include "base/profiler/scoped_tracker.h"
9 #include "content/browser/accessibility/browser_accessibility_manager.h" 9 #include "content/browser/accessibility/browser_accessibility_manager.h"
10 #include "content/browser/gpu/gpu_data_manager_impl.h" 10 #include "content/browser/gpu/gpu_data_manager_impl.h"
(...skipping 385 matching lines...) Expand 10 before | Expand all | Expand 10 after
396 } 396 }
397 397
398 void RenderWidgetHostViewBase::SetBackgroundColorToDefault() { 398 void RenderWidgetHostViewBase::SetBackgroundColorToDefault() {
399 SetBackgroundColor(SK_ColorWHITE); 399 SetBackgroundColor(SK_ColorWHITE);
400 } 400 }
401 401
402 bool RenderWidgetHostViewBase::GetBackgroundOpaque() { 402 bool RenderWidgetHostViewBase::GetBackgroundOpaque() {
403 return SkColorGetA(background_color_) == SK_AlphaOPAQUE; 403 return SkColorGetA(background_color_) == SK_AlphaOPAQUE;
404 } 404 }
405 405
406 void RenderWidgetHostViewBase::SetThemeColor(SkColor color) {
407 }
408
406 gfx::Size RenderWidgetHostViewBase::GetPhysicalBackingSize() const { 409 gfx::Size RenderWidgetHostViewBase::GetPhysicalBackingSize() const {
407 gfx::NativeView view = GetNativeView(); 410 gfx::NativeView view = GetNativeView();
408 gfx::Display display = 411 gfx::Display display =
409 gfx::Screen::GetScreenFor(view)->GetDisplayNearestWindow(view); 412 gfx::Screen::GetScreenFor(view)->GetDisplayNearestWindow(view);
410 return gfx::ToCeiledSize(gfx::ScaleSize(GetRequestedRendererSize(), 413 return gfx::ToCeiledSize(gfx::ScaleSize(GetRequestedRendererSize(),
411 display.device_scale_factor())); 414 display.device_scale_factor()));
412 } 415 }
413 416
414 bool RenderWidgetHostViewBase::DoTopControlsShrinkBlinkSize() const { 417 bool RenderWidgetHostViewBase::DoTopControlsShrinkBlinkSize() const {
415 return false; 418 return false;
(...skipping 281 matching lines...) Expand 10 before | Expand all | Expand 10 after
697 700
698 return primary_landscape_angle == angle 701 return primary_landscape_angle == angle
699 ? blink::WebScreenOrientationLandscapePrimary 702 ? blink::WebScreenOrientationLandscapePrimary
700 : blink::WebScreenOrientationLandscapeSecondary; 703 : blink::WebScreenOrientationLandscapeSecondary;
701 } 704 }
702 705
703 void RenderWidgetHostViewBase::OnDidNavigateMainFrameToNewPage() { 706 void RenderWidgetHostViewBase::OnDidNavigateMainFrameToNewPage() {
704 } 707 }
705 708
706 } // namespace content 709 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698