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

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

Issue 10151025: Add scale factor tag to data packs (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix build Created 8 years, 8 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
diff --git a/ui/base/resource/resource_bundle.h b/ui/base/resource/resource_bundle.h
index 974e5d3d56e49e95677f64867cdb62e4f2a31492..7b06e5e9dea469f4ca118cab590e92be1b1a90a0 100644
--- a/ui/base/resource/resource_bundle.h
+++ b/ui/base/resource/resource_bundle.h
@@ -87,9 +87,10 @@ class UI_EXPORT ResourceBundle {
// Registers additional data pack files with the global ResourceBundle. When
// looking for a DataResource, we will search these files after searching the
- // main module. This method is not thread safe! You should call it
- // immediately after calling InitSharedInstance.
- void AddDataPack(const FilePath& path);
+ // main module. |scale_factor| is the scale of images in this resource pak
+ // relative to the images in the 1x resource pak. This method is not thread
+ // safe! You should call it immediately after calling InitSharedInstance.
+ void AddDataPack(const FilePath& path, float scale_factor);
// Changes the locale for an already-initialized ResourceBundle, returning the
// name of the newly-loaded locale. Future calls to get strings will return

Powered by Google App Engine
This is Rietveld 408576698