| OLD | NEW |
| 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 "ui/base/default_theme_provider.h" | 5 #include "ui/base/default_theme_provider.h" |
| 6 | 6 |
| 7 #include "ui/base/resource/resource_bundle.h" | 7 #include "ui/base/resource/resource_bundle.h" |
| 8 #include "ui/gfx/image/image_skia.h" | 8 #include "ui/gfx/image/image_skia.h" |
| 9 | 9 |
| 10 namespace ui { | 10 namespace ui { |
| 11 | 11 |
| 12 DefaultThemeProvider::DefaultThemeProvider() {} | 12 DefaultThemeProvider::DefaultThemeProvider() {} |
| 13 | 13 |
| 14 DefaultThemeProvider::~DefaultThemeProvider() {} | 14 DefaultThemeProvider::~DefaultThemeProvider() {} |
| 15 | 15 |
| 16 bool DefaultThemeProvider::UsingNativeTheme() const { | 16 bool DefaultThemeProvider::UsingSystemTheme() const { |
| 17 return true; | 17 return true; |
| 18 } | 18 } |
| 19 | 19 |
| 20 gfx::ImageSkia* DefaultThemeProvider::GetImageSkiaNamed(int id) const { | 20 gfx::ImageSkia* DefaultThemeProvider::GetImageSkiaNamed(int id) const { |
| 21 return ResourceBundle::GetSharedInstance().GetImageSkiaNamed(id); | 21 return ResourceBundle::GetSharedInstance().GetImageSkiaNamed(id); |
| 22 } | 22 } |
| 23 | 23 |
| 24 SkColor DefaultThemeProvider::GetColor(int id) const { | 24 SkColor DefaultThemeProvider::GetColor(int id) const { |
| 25 // Return debugging-blue. | 25 // Return debugging-blue. |
| 26 return 0xff0000ff; | 26 return 0xff0000ff; |
| (...skipping 11 matching lines...) Expand all Loading... |
| 38 return false; | 38 return false; |
| 39 } | 39 } |
| 40 | 40 |
| 41 base::RefCountedMemory* DefaultThemeProvider::GetRawData( | 41 base::RefCountedMemory* DefaultThemeProvider::GetRawData( |
| 42 int id, | 42 int id, |
| 43 ui::ScaleFactor scale_factor) const { | 43 ui::ScaleFactor scale_factor) const { |
| 44 return NULL; | 44 return NULL; |
| 45 } | 45 } |
| 46 | 46 |
| 47 } // namespace ui | 47 } // namespace ui |
| OLD | NEW |