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

Unified Diff: ui/base/resource/resource_bundle.h

Issue 7328011: Introduce ui.dll / libui.so for the component build. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 5 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: ui/base/resource/resource_bundle.h
===================================================================
--- ui/base/resource/resource_bundle.h (revision 91577)
+++ ui/base/resource/resource_bundle.h (working copy)
@@ -22,6 +22,7 @@
#include "base/memory/ref_counted_memory.h"
#include "base/memory/scoped_ptr.h"
#include "base/string16.h"
+#include "ui/base/ui_base_api.h"
#include "ui/gfx/native_widget_types.h"
class SkBitmap;
@@ -56,7 +57,7 @@
// ResourceBundle is a central facility to load images and other resources,
// such as theme graphics.
// Every resource is loaded only once.
-class ResourceBundle {
+class UI_BASE_API ResourceBundle {
public:
// An enumeration of the various font styles used throughout Chrome.
// The following holds true for the font sizes:
@@ -142,6 +143,10 @@
void ReloadFonts();
#if defined(OS_WIN)
+ // NOTE: This needs to be called before initializing the shared instance if
+ // your resources are not stored in the executable.
+ static void SetResourcesDataDLL(HINSTANCE handle);
+
// Loads and returns an icon from the app module.
HICON LoadThemeIcon(int icon_id);

Powered by Google App Engine
This is Rietveld 408576698