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

Side by Side Diff: views/widget/default_theme_provider.h

Issue 159891: Make the DOMUIThemeSource load and pass through a PNG, rather than relying on... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 11 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 | « chrome/browser/dom_ui/dom_ui_theme_source_unittest.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Property Changes:
Added: svn:eol-style
+ LF
OLDNEW
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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 #ifndef VIEWS_DEFAULT_THEME_PROVIDER_H_ 5 #ifndef VIEWS_DEFAULT_THEME_PROVIDER_H_
6 #define VIEWS_DEFAULT_THEME_PROVIDER_H_ 6 #define VIEWS_DEFAULT_THEME_PROVIDER_H_
7 7
8 #include "app/theme_provider.h" 8 #include "app/theme_provider.h"
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 10
11 class Profile; 11 class Profile;
12 class ResourceBundle; 12 class ResourceBundle;
13 13
14 namespace views { 14 namespace views {
15 15
16 class DefaultThemeProvider : public ThemeProvider { 16 class DefaultThemeProvider : public ThemeProvider {
17 public: 17 public:
18 DefaultThemeProvider() { }; 18 DefaultThemeProvider() { };
19 virtual ~DefaultThemeProvider() { }; 19 virtual ~DefaultThemeProvider() { };
20 20
21 // Overridden from ThemeProvider. 21 // Overridden from ThemeProvider.
22 virtual void Init(Profile* profile); 22 virtual void Init(Profile* profile);
23 virtual SkBitmap* GetBitmapNamed(int id); 23 virtual SkBitmap* GetBitmapNamed(int id);
24 virtual SkColor GetColor(int id); 24 virtual SkColor GetColor(int id);
25 virtual bool GetDisplayProperty(int id, int* result); 25 virtual bool GetDisplayProperty(int id, int* result);
26 virtual bool ShouldUseNativeFrame(); 26 virtual bool ShouldUseNativeFrame();
27 virtual bool HasCustomImage(int id); 27 virtual bool HasCustomImage(int id);
28 virtual bool GetRawData(int id, std::vector<unsigned char>* raw_data) {
29 return false;
30 }
28 31
29 private: 32 private:
30 DISALLOW_COPY_AND_ASSIGN(DefaultThemeProvider); 33 DISALLOW_COPY_AND_ASSIGN(DefaultThemeProvider);
31 }; 34 };
32 35
33 } // namespace views 36 } // namespace views
34 37
35 #endif // VIEWS_DEFAULT_THEME_PROVIDER_H_ 38 #endif // VIEWS_DEFAULT_THEME_PROVIDER_H_
OLDNEW
« no previous file with comments | « chrome/browser/dom_ui/dom_ui_theme_source_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698