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

Unified Diff: chrome/common/resource_bundle.h

Issue 40042: Add trivial theming support in extensions.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 10 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 side-by-side diff with in-line comments
Download patch
Index: chrome/common/resource_bundle.h
===================================================================
--- chrome/common/resource_bundle.h (revision 10888)
+++ chrome/common/resource_bundle.h (working copy)
@@ -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 @@
typedef struct _GdkPixbuf GdkPixbuf;
#endif
class ChromeFont;
+class Extension;
class SkBitmap;
class StringPiece;
@@ -118,6 +120,9 @@
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 @@
static ResourceBundle* g_shared_instance_;
+ scoped_ptr<Extension> theme_extension_;
+
DISALLOW_EVIL_CONSTRUCTORS(ResourceBundle);
};

Powered by Google App Engine
This is Rietveld 408576698