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

Unified Diff: ui/base/resource/data_pack.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/data_pack.h
diff --git a/ui/base/resource/data_pack.h b/ui/base/resource/data_pack.h
index 5e3426f8b7df1dfdae813c8a6321b9d1d460bc68..50fe608cced47588b29a7d2b18ef5677ea3989d0 100644
--- a/ui/base/resource/data_pack.h
+++ b/ui/base/resource/data_pack.h
@@ -52,6 +52,9 @@ class UI_EXPORT DataPack : public ResourceHandle {
virtual base::RefCountedStaticMemory* GetStaticMemory(
uint16 resource_id) const OVERRIDE;
virtual TextEncodingType GetTextEncodingType() const OVERRIDE;
+ virtual float GetScaleFactor() const OVERRIDE;
+
+ void set_scale_factor(float scale_factor) { scale_factor_ = scale_factor; }
sky 2012/04/25 21:11:42 Do you really need a setter here? A setter implies
sail 2012/04/25 22:18:35 Done. Removed setter.
private:
// The memory-mapped data.
@@ -63,6 +66,9 @@ class UI_EXPORT DataPack : public ResourceHandle {
// Type of encoding for text resources.
TextEncodingType text_encoding_type_;
+ // The scale factor of image resources.
sky 2012/04/25 21:11:42 This isn't really clear. It reads like all images
sail 2012/04/25 22:18:35 Done.
+ float scale_factor_;
+
DISALLOW_COPY_AND_ASSIGN(DataPack);
};

Powered by Google App Engine
This is Rietveld 408576698