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

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

Issue 115910: Allow themes to change the background of the new tab page.... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 11 years, 6 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/common/pref_names.cc ('k') | views/widget/default_theme_provider.cc » ('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) 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 ResourceBundle; 11 class ResourceBundle;
12 12
13 namespace views { 13 namespace views {
14 14
15 class DefaultThemeProvider : public ThemeProvider { 15 class DefaultThemeProvider : public ThemeProvider {
16 public: 16 public:
17 DefaultThemeProvider() { }; 17 DefaultThemeProvider() { };
18 virtual ~DefaultThemeProvider() { }; 18 virtual ~DefaultThemeProvider() { };
19 19
20 // Overridden from ThemeProvider. 20 // Overridden from ThemeProvider.
21 virtual SkBitmap* GetBitmapNamed(int id); 21 virtual SkBitmap* GetBitmapNamed(int id);
22 virtual SkColor GetColor(int id); 22 virtual SkColor GetColor(int id);
23 virtual bool GetDisplayProperty(int id, int* result);
23 virtual bool ShouldUseNativeFrame(); 24 virtual bool ShouldUseNativeFrame();
24 25
25 private: 26 private:
26 DISALLOW_COPY_AND_ASSIGN(DefaultThemeProvider); 27 DISALLOW_COPY_AND_ASSIGN(DefaultThemeProvider);
27 }; 28 };
28 29
29 } // namespace views 30 } // namespace views
30 31
31 #endif // VIEWS_DEFAULT_THEME_PROVIDER_H_ 32 #endif // VIEWS_DEFAULT_THEME_PROVIDER_H_
OLDNEW
« no previous file with comments | « chrome/common/pref_names.cc ('k') | views/widget/default_theme_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698