Chromium Code Reviews| Index: content/public/common/page_zoom.h |
| =================================================================== |
| --- content/public/common/page_zoom.h (revision 109526) |
| +++ content/public/common/page_zoom.h (working copy) |
| @@ -7,6 +7,7 @@ |
| #pragma once |
| #include "base/basictypes.h" |
| +#include "content/common/content_export.h" |
| namespace content { |
| @@ -18,6 +19,24 @@ |
| PAGE_ZOOM_IN = 1, |
| }; |
| +// The minimum zoom factor permitted for a page. This is an alternative to |
|
James Hawkins
2011/11/14 18:09:05
What do you mean by 'alternative'?
csilv
2011/11/14 23:10:29
These are the values that we are going to use in C
|
| +// WebView::minTextSizeMultiplier. |
| +CONTENT_EXPORT extern const double kMinimumZoomFactor; |
| + |
| +// The maximum zoom factor permitted for a page. This is an alternative to |
| +// WebView::maxTextSizeMultiplier. |
| +CONTENT_EXPORT extern const double kMaximumZoomFactor; |
| + |
| +// Preset zoom factors that represent common zoom factors within the minimum |
| +// and maximum values. This array is guaranteed to be in sorted order. |
| +CONTENT_EXPORT extern const double kPresetZoomFactors[]; |
| + |
| +// The number of zoom factors contained in the kPresetZoomFactors array. |
| +CONTENT_EXPORT extern const int kPresetZoomFactorsCount; |
| + |
| +// Epsilon for calculating zoom factor/level equality. |
| +CONTENT_EXPORT extern const double kPageZoomEpsilon; |
| + |
| } // namespace content |
| #endif // CONTENT_PUBLIC_COMMON_PAGE_ZOOM_H_ |