OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 CHROME_BROWSER_CHROME_PAGE_ZOOM_H_ | 5 #ifndef CHROME_BROWSER_CHROME_PAGE_ZOOM_CONSTANTS_H_ |
6 #define CHROME_BROWSER_CHROME_PAGE_ZOOM_H_ | 6 #define CHROME_BROWSER_CHROME_PAGE_ZOOM_CONSTANTS_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <vector> | 9 #include "base/basictypes.h" |
10 | 10 |
11 namespace chrome_page_zoom { | 11 namespace chrome_page_zoom { |
12 | 12 |
13 // Zoom factors supported by the browser. | 13 // Zoom factors supported by the browser. |
14 extern const double kPresetZoomFactors[]; | 14 extern const double kPresetZoomFactors[]; |
15 | 15 |
16 // Size of |kPresetZoomFactors|. | 16 // Size of |kPresetZoomFactors|. |
17 extern const size_t kPresetZoomFactorsSize; | 17 extern const size_t kPresetZoomFactorsSize; |
18 | 18 |
19 // Return a sorted vector of zoom factors. The vector will consist of preset | |
20 // values along with a custom value (if the custom value is not already | |
21 // represented.) | |
22 std::vector<double> PresetZoomFactors(double custom_factor); | |
23 | |
24 // Return a sorted vector of zoom levels. The vector will consist of preset | |
25 // values along with a custom value (if the custom value is not already | |
26 // represented.) | |
27 std::vector<double> PresetZoomLevels(double custom_level); | |
28 | |
29 } // namespace chrome_page_zoom | 19 } // namespace chrome_page_zoom |
30 | 20 |
31 #endif // CHROME_BROWSER_CHROME_PAGE_ZOOM_H_ | 21 #endif // CHROME_BROWSER_CHROME_PAGE_ZOOM_CONSTANTS_H_ |
OLD | NEW |