Chromium Code Reviews| Index: ui/base/layout.h |
| diff --git a/ui/base/layout.h b/ui/base/layout.h |
| index fcfb974dad22933c310b95215c122da5f8d68903..a3ecd0349219d25b01460d381fb3513e362c6092 100644 |
| --- a/ui/base/layout.h |
| +++ b/ui/base/layout.h |
| @@ -32,12 +32,15 @@ UI_EXPORT DisplayLayout GetDisplayLayout(); |
| // Supported UI scale factors for the platform. This is used as an index |
| // into the array |kScaleFactorScales| which maps the enum value to a float. |
| +// SCALE_FACTOR_NONE is used for density independent resources such as |
| +// string, html/js files or an image that can be used for any scales |
|
pkotwicz
2012/11/07 06:40:44
Nit: /any scale/all scale factors/g
oshima
2012/11/07 22:35:30
Done.
|
| +// (such as wallpapers). |
| enum ScaleFactor { |
| - SCALE_FACTOR_100P = 0, |
| + SCALE_FACTOR_NONE = 0, |
| + SCALE_FACTOR_100P, |
| // The scale factor used for unscaled binary data, the 1x (default) scale |
| // factor data packs. |
|
pkotwicz
2012/11/07 06:40:44
Nit: remove the comment above as it is stale
oshima
2012/11/07 22:35:30
Done.
|
| - SCALE_FACTOR_NONE = SCALE_FACTOR_100P, |
| SCALE_FACTOR_140P, |
| SCALE_FACTOR_180P, |
| SCALE_FACTOR_200P, |
| @@ -51,6 +54,7 @@ UI_EXPORT float GetScaleFactorScale(ScaleFactor scale_factor); |
| // Returns the supported ScaleFactor which most closely matches |scale|. |
| // Converting from float to ScaleFactor is inefficient and should be done as |
| // little as possible. |
| +// TODO(oshima): Make ScaleFactor a class and remove this. |
| UI_EXPORT ScaleFactor GetScaleFactorFromScale(float scale); |
| // Returns the ScaleFactor used by |view|. |