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 1d26e72..b40741e 100644
--- a/ui/base/resource/resource_handle.h
+++ b/ui/base/resource/resource_handle.h
@@ -8,7 +8,6 @@
#include "base/basictypes.h"
#include "base/string_piece.h"
-#include "ui/base/layout.h"
#include "ui/base/ui_export.h"
namespace base {
@@ -26,10 +25,11 @@ class UI_EXPORT ResourceHandle {
UTF16
};
- virtual ~ResourceHandle() {}
+ // The scale factors for image resources.
+ static const float kScaleFactor100x;
+ static const float kScaleFactor200x;
- // Returns true if the DataPack contains a resource with id |resource_id|.
- virtual bool HasResource(uint16 resource_id) const = 0;
+ virtual ~ResourceHandle() {}
// Get resource by id |resource_id|, filling in |data|.
// The data is owned by the DataPack object and should not be modified.
@@ -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 ScaleFactor GetScaleFactor() const = 0;
+ virtual float GetScaleFactor() const = 0;
};
} // namespace ui