summaryrefslogtreecommitdiffstats
path: root/chrome/common/resource_bundle.h
diff options
context:
space:
mode:
authorerikkay@google.com <erikkay@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-03-04 20:27:04 +0000
committererikkay@google.com <erikkay@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-03-04 20:27:04 +0000
commit07c00d99969c6584079c78a2e31cb0d5ad5beda7 (patch)
tree84243fe741c02a76214c76cf5bfa2bb0fe93f670 /chrome/common/resource_bundle.h
parent1b1e520d728ae8f53b944322fcfddab929aad70f (diff)
downloadchromium_src-07c00d99969c6584079c78a2e31cb0d5ad5beda7.zip
chromium_src-07c00d99969c6584079c78a2e31cb0d5ad5beda7.tar.gz
chromium_src-07c00d99969c6584079c78a2e31cb0d5ad5beda7.tar.bz2
Add trivial theming support in extensions.
NOTE: This is not final API. It *will* change. It's purely for testing purposes. Review URL: http://codereview.chromium.org/40042 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@10913 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common/resource_bundle.h')
-rw-r--r--chrome/common/resource_bundle.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/chrome/common/resource_bundle.h b/chrome/common/resource_bundle.h
index ac62d9b..30fcbc7 100644
--- a/chrome/common/resource_bundle.h
+++ b/chrome/common/resource_bundle.h
@@ -1,4 +1,4 @@
-// Copyright (c) 2006-2008 The Chromium Authors. All rights reserved.
+// Copyright (c) 2006-2009 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
@@ -18,6 +18,7 @@
#include "base/file_path.h"
#include "base/lock.h"
#include "base/scoped_ptr.h"
+#include "chrome/browser/extensions/extension.h"
#if defined(OS_LINUX) || defined(OS_MACOSX)
namespace base {
@@ -28,6 +29,7 @@ namespace base {
typedef struct _GdkPixbuf GdkPixbuf;
#endif
class ChromeFont;
+class Extension;
class SkBitmap;
class StringPiece;
@@ -118,6 +120,9 @@ class ResourceBundle {
GdkPixbuf* LoadPixbuf(int resource_id);
#endif
+ // Sets an Extension object that can handle theme resource requests.
+ void SetThemeExtension(const Extension& e);
+
private:
// We define a DataHandle typedef to abstract across how data is stored
// across platforms.
@@ -183,6 +188,8 @@ class ResourceBundle {
static ResourceBundle* g_shared_instance_;
+ scoped_ptr<Extension> theme_extension_;
+
DISALLOW_EVIL_CONSTRUCTORS(ResourceBundle);
};