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

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

Issue 10151025: Add scale factor tag to data packs (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase 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
« no previous file with comments | « ui/base/resource/resource_data_dll_win.cc ('k') | ui/base/resource/resource_handle.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/base/resource/resource_handle.h
diff --git a/ui/base/resource/resource_handle.h b/ui/base/resource/resource_handle.h
index ce3a23bb2899381c5f4bf194ac135f526e6be1da..b40741e7599b48537f1e95c21c2ac85d62965500 100644
--- a/ui/base/resource/resource_handle.h
+++ b/ui/base/resource/resource_handle.h
@@ -25,6 +25,10 @@ class UI_EXPORT ResourceHandle {
UTF16
};
+ // The scale factors for image resources.
+ static const float kScaleFactor100x;
+ static const float kScaleFactor200x;
+
virtual ~ResourceHandle() {}
// Get resource by id |resource_id|, filling in |data|.
@@ -40,6 +44,10 @@ class UI_EXPORT ResourceHandle {
// Get the encoding type of text resources.
virtual TextEncodingType GetTextEncodingType() const = 0;
+
+ // The scale of images in this resource pack relative to images in the 1x
+ // resource pak.
+ virtual float GetScaleFactor() const = 0;
};
} // namespace ui
« no previous file with comments | « ui/base/resource/resource_data_dll_win.cc ('k') | ui/base/resource/resource_handle.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698