OLD | NEW |
---|---|
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CONTENT_PUBLIC_COMMON_PAGE_ZOOM_H_ | 5 #ifndef CONTENT_PUBLIC_COMMON_PAGE_ZOOM_H_ |
6 #define CONTENT_PUBLIC_COMMON_PAGE_ZOOM_H_ | 6 #define CONTENT_PUBLIC_COMMON_PAGE_ZOOM_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
10 #include "content/common/content_export.h" | |
10 | 11 |
11 namespace content { | 12 namespace content { |
12 | 13 |
13 // This enum is the parameter to various text/page zoom commands so we know | 14 // This enum is the parameter to various text/page zoom commands so we know |
14 // what the specific zoom command is. | 15 // what the specific zoom command is. |
15 enum PageZoom { | 16 enum PageZoom { |
16 PAGE_ZOOM_OUT = -1, | 17 PAGE_ZOOM_OUT = -1, |
17 PAGE_ZOOM_RESET = 0, | 18 PAGE_ZOOM_RESET = 0, |
18 PAGE_ZOOM_IN = 1, | 19 PAGE_ZOOM_IN = 1, |
19 }; | 20 }; |
20 | 21 |
22 // 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
| |
23 // WebView::minTextSizeMultiplier. | |
24 CONTENT_EXPORT extern const double kMinimumZoomFactor; | |
25 | |
26 // The maximum zoom factor permitted for a page. This is an alternative to | |
27 // WebView::maxTextSizeMultiplier. | |
28 CONTENT_EXPORT extern const double kMaximumZoomFactor; | |
29 | |
30 // Preset zoom factors that represent common zoom factors within the minimum | |
31 // and maximum values. This array is guaranteed to be in sorted order. | |
32 CONTENT_EXPORT extern const double kPresetZoomFactors[]; | |
33 | |
34 // The number of zoom factors contained in the kPresetZoomFactors array. | |
35 CONTENT_EXPORT extern const int kPresetZoomFactorsCount; | |
36 | |
37 // Epsilon for calculating zoom factor/level equality. | |
38 CONTENT_EXPORT extern const double kPageZoomEpsilon; | |
39 | |
21 } // namespace content | 40 } // namespace content |
22 | 41 |
23 #endif // CONTENT_PUBLIC_COMMON_PAGE_ZOOM_H_ | 42 #endif // CONTENT_PUBLIC_COMMON_PAGE_ZOOM_H_ |
OLD | NEW |