summaryrefslogtreecommitdiffstats
path: root/ui/base/resource/resource_handle.h
diff options
context:
space:
mode:
Diffstat (limited to 'ui/base/resource/resource_handle.h')
-rw-r--r--ui/base/resource/resource_handle.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/ui/base/resource/resource_handle.h b/ui/base/resource/resource_handle.h
index b40741e..1d26e72 100644
--- a/ui/base/resource/resource_handle.h
+++ b/ui/base/resource/resource_handle.h
@@ -8,6 +8,7 @@
#include "base/basictypes.h"
#include "base/string_piece.h"
+#include "ui/base/layout.h"
#include "ui/base/ui_export.h"
namespace base {
@@ -25,12 +26,11 @@ class UI_EXPORT ResourceHandle {
UTF16
};
- // The scale factors for image resources.
- static const float kScaleFactor100x;
- static const float kScaleFactor200x;
-
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.
@@ -47,7 +47,7 @@ class UI_EXPORT ResourceHandle {
// The scale of images in this resource pack relative to images in the 1x
// resource pak.
- virtual float GetScaleFactor() const = 0;
+ virtual ScaleFactor GetScaleFactor() const = 0;
};
} // namespace ui