| // Copyright 2013 The Chromium Authors |
| // Use of this source code is governed by a BSD-style license that can be |
| // found in the LICENSE file. |
| |
| #include "chrome/browser/themes/custom_theme_supplier.h" |
| |
| #include "base/memory/ref_counted_memory.h" |
| #include "ui/gfx/color_utils.h" |
| #include "ui/gfx/image/image.h" |
| #include "ui/native_theme/native_theme.h" |
| |
| CustomThemeSupplier::~CustomThemeSupplier() = default; |
| |
| void CustomThemeSupplier::StartUsingTheme() {} |
| |
| void CustomThemeSupplier::StopUsingTheme() {} |
| |
| bool CustomThemeSupplier::GetTint(int id, color_utils::HSL* hsl) const { |
| return false; |
| } |
| |
| bool CustomThemeSupplier::GetColor(int id, SkColor* color) const { |
| return false; |
| } |
| |
| bool CustomThemeSupplier::GetDisplayProperty(int id, int* result) const { |
| return false; |
| } |
| |
| gfx::Image CustomThemeSupplier::GetImageNamed(int id) const { |
| return gfx::Image(); |
| } |
| |
| base::RefCountedMemory* CustomThemeSupplier::GetRawData( |
| int idr_id, |
| ui::ResourceScaleFactor scale_factor) const { |
| return nullptr; |
| } |
| |
| bool CustomThemeSupplier::HasCustomImage(int id) const { |
| return false; |
| } |
| |
| bool CustomThemeSupplier::CanUseIncognitoColors() const { |
| return true; |
| } |
| |
| ui::NativeTheme* CustomThemeSupplier::GetNativeTheme() const { |
| return ui::NativeTheme::GetInstanceForNativeUi(); |
| } |