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

Side by Side Diff: ui/views/widget/default_theme_provider.cc

Issue 10827454: Move more methods from NWW to HWNDMessageHandler. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 4 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 | Annotate | Revision Log
« no previous file with comments | « ui/base/win/shell.cc ('k') | ui/views/widget/native_widget_aura.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 "ui/views/widget/default_theme_provider.h" 5 #include "ui/views/widget/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 #if defined(OS_WIN) && !defined(USE_AURA) 10 #if defined(OS_WIN) && !defined(USE_AURA)
11 #include "ui/views/widget/native_widget_win.h" 11 #include "ui/base/win/shell.h"
12 #endif 12 #endif
13 13
14 namespace views { 14 namespace views {
15 15
16 DefaultThemeProvider::DefaultThemeProvider() {} 16 DefaultThemeProvider::DefaultThemeProvider() {}
17 17
18 DefaultThemeProvider::~DefaultThemeProvider() {} 18 DefaultThemeProvider::~DefaultThemeProvider() {}
19 19
20 SkBitmap* DefaultThemeProvider::GetBitmapNamed(int id) const { 20 SkBitmap* DefaultThemeProvider::GetBitmapNamed(int id) const {
21 return ResourceBundle::GetSharedInstance().GetBitmapNamed(id); 21 return ResourceBundle::GetSharedInstance().GetBitmapNamed(id);
22 } 22 }
23 23
24 gfx::ImageSkia* DefaultThemeProvider::GetImageSkiaNamed(int id) const { 24 gfx::ImageSkia* DefaultThemeProvider::GetImageSkiaNamed(int id) const {
25 return ResourceBundle::GetSharedInstance().GetImageSkiaNamed(id); 25 return ResourceBundle::GetSharedInstance().GetImageSkiaNamed(id);
26 } 26 }
27 27
28 SkColor DefaultThemeProvider::GetColor(int id) const { 28 SkColor DefaultThemeProvider::GetColor(int id) const {
29 // Return debugging-blue. 29 // Return debugging-blue.
30 return 0xff0000ff; 30 return 0xff0000ff;
31 } 31 }
32 32
33 bool DefaultThemeProvider::GetDisplayProperty(int id, int* result) const { 33 bool DefaultThemeProvider::GetDisplayProperty(int id, int* result) const {
34 return false; 34 return false;
35 } 35 }
36 36
37 bool DefaultThemeProvider::ShouldUseNativeFrame() const { 37 bool DefaultThemeProvider::ShouldUseNativeFrame() const {
38 #if defined(OS_WIN) && !defined(USE_AURA) 38 #if defined(OS_WIN) && !defined(USE_AURA)
39 return NativeWidgetWin::IsAeroGlassEnabled(); 39 return ui::win::IsAeroGlassEnabled();
40 #else 40 #else
41 return false; 41 return false;
42 #endif 42 #endif
43 } 43 }
44 44
45 bool DefaultThemeProvider::HasCustomImage(int id) const { 45 bool DefaultThemeProvider::HasCustomImage(int id) const {
46 return false; 46 return false;
47 } 47 }
48 48
49 base::RefCountedMemory* DefaultThemeProvider::GetRawData( 49 base::RefCountedMemory* DefaultThemeProvider::GetRawData(
50 int id, 50 int id,
51 ui::ScaleFactor scale_factor) const { 51 ui::ScaleFactor scale_factor) const {
52 return NULL; 52 return NULL;
53 } 53 }
54 54
55 } // namespace views 55 } // namespace views
OLDNEW
« no previous file with comments | « ui/base/win/shell.cc ('k') | ui/views/widget/native_widget_aura.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698