blob: 8f1f52bd4df5d8d38e12a3b523535ffef5b4118f [file] [log] [blame]
[email protected]3e17c692012-02-27 02:03:041// Copyright (c) 2012 The Chromium Authors. All rights reserved.
[email protected]84ad47e2011-11-21 18:17:352// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
[email protected]209da9b72013-05-25 14:20:455#include "ui/base/default_theme_provider.h"
[email protected]84ad47e2011-11-21 18:17:356
7#include "ui/base/resource/resource_bundle.h"
estade8ea8beb2015-12-18 19:21:128#include "ui/gfx/color_palette.h"
[email protected]546882b2012-05-11 00:53:329#include "ui/gfx/image/image_skia.h"
[email protected]84ad47e2011-11-21 18:17:3510
[email protected]209da9b72013-05-25 14:20:4511namespace ui {
[email protected]84ad47e2011-11-21 18:17:3512
13DefaultThemeProvider::DefaultThemeProvider() {}
14
15DefaultThemeProvider::~DefaultThemeProvider() {}
16
[email protected]546882b2012-05-11 00:53:3217gfx::ImageSkia* DefaultThemeProvider::GetImageSkiaNamed(int id) const {
18 return ResourceBundle::GetSharedInstance().GetImageSkiaNamed(id);
19}
20
[email protected]84ad47e2011-11-21 18:17:3521SkColor DefaultThemeProvider::GetColor(int id) const {
estade8ea8beb2015-12-18 19:21:1222 return gfx::kPlaceholderColor;
[email protected]84ad47e2011-11-21 18:17:3523}
24
[email protected]7ce1599f2013-08-30 08:54:0425int DefaultThemeProvider::GetDisplayProperty(int id) const {
26 return -1;
[email protected]84ad47e2011-11-21 18:17:3527}
28
29bool DefaultThemeProvider::ShouldUseNativeFrame() const {
[email protected]84ad47e2011-11-21 18:17:3530 return false;
[email protected]84ad47e2011-11-21 18:17:3531}
32
33bool DefaultThemeProvider::HasCustomImage(int id) const {
34 return false;
35}
36
[email protected]0a3e3c6112012-08-05 20:07:4537base::RefCountedMemory* DefaultThemeProvider::GetRawData(
38 int id,
39 ui::ScaleFactor scale_factor) const {
[email protected]84ad47e2011-11-21 18:17:3540 return NULL;
41}
42
[email protected]209da9b72013-05-25 14:20:4543} // namespace ui