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 3 // found in the LICENSE file. 4 5 #include "ui/base/default_theme_provider.h" 6 7 #include "ui/base/resource/resource_bundle.h" 8 #include "ui/gfx/image/image_skia.h" 9 10 namespace ui { 11 DefaultThemeProvider()12DefaultThemeProvider::DefaultThemeProvider() {} 13 ~DefaultThemeProvider()14DefaultThemeProvider::~DefaultThemeProvider() {} 15 UsingSystemTheme() const16bool DefaultThemeProvider::UsingSystemTheme() const { 17 return true; 18 } 19 GetImageSkiaNamed(int id) const20gfx::ImageSkia* DefaultThemeProvider::GetImageSkiaNamed(int id) const { 21 return ResourceBundle::GetSharedInstance().GetImageSkiaNamed(id); 22 } 23 GetColor(int id) const24SkColor DefaultThemeProvider::GetColor(int id) const { 25 // Return debugging-blue. 26 return 0xff0000ff; 27 } 28 GetDisplayProperty(int id) const29int DefaultThemeProvider::GetDisplayProperty(int id) const { 30 return -1; 31 } 32 ShouldUseNativeFrame() const33bool DefaultThemeProvider::ShouldUseNativeFrame() const { 34 return false; 35 } 36 HasCustomImage(int id) const37bool DefaultThemeProvider::HasCustomImage(int id) const { 38 return false; 39 } 40 GetRawData(int id,ui::ScaleFactor scale_factor) const41base::RefCountedMemory* DefaultThemeProvider::GetRawData( 42 int id, 43 ui::ScaleFactor scale_factor) const { 44 return NULL; 45 } 46 47 } // namespace ui 48