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

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

Issue 10387010: Select theme resources from ResourceBundle at requested scale factor. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Convert ptr to bool for win compile. Created 8 years, 7 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_handle.h
diff --git a/ui/base/resource/resource_handle.h b/ui/base/resource/resource_handle.h
index b40741e7599b48537f1e95c21c2ac85d62965500..5349c4e1bfc4756fe2a5271b10344cd9cbf097b7 100644
--- a/ui/base/resource/resource_handle.h
+++ b/ui/base/resource/resource_handle.h
@@ -29,8 +29,14 @@ class UI_EXPORT ResourceHandle {
static const float kScaleFactor100x;
static const float kScaleFactor200x;
+ // This scale factor is used for non-image resources.
+ static const float kScaleFactorNone;
tony 2012/05/11 21:22:03 Can we combine the scale factors into an enum? Th
sail 2012/05/11 21:28:50 This used to be 1x and 2x but Joi made a good poin
+
virtual ~ResourceHandle() {}
+ // Returns true if the DataPack contains a resource with id |resource_id|.
+ virtual bool HasResource(uint16 resource_id) const = 0;
+
// Get resource by id |resource_id|, filling in |data|.
// The data is owned by the DataPack object and should not be modified.
// Returns false if the resource id isn't found.

Powered by Google App Engine
This is Rietveld 408576698