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_H_ |
6 #define CHROME_BROWSER_CHROME_PAGE_ZOOM_H_ | 6 #define CHROME_BROWSER_CHROME_PAGE_ZOOM_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <vector> | 9 #include <vector> |
10 #include "content/public/common/page_zoom.h" | |
11 | |
12 namespace content { | |
13 class WebContents; | |
Ben Goodger (Google)
2012/07/12 21:50:19
outdent
| |
14 } | |
10 | 15 |
11 namespace chrome_page_zoom { | 16 namespace chrome_page_zoom { |
12 | 17 |
13 // Return a sorted vector of zoom factors. The vector will consist of preset | 18 // Return a sorted vector of zoom factors. The vector will consist of preset |
14 // values along with a custom value (if the custom value is not already | 19 // values along with a custom value (if the custom value is not already |
15 // represented.) | 20 // represented.) |
16 std::vector<double> PresetZoomFactors(double custom_factor); | 21 std::vector<double> PresetZoomFactors(double custom_factor); |
17 | 22 |
18 // Return a sorted vector of zoom levels. The vector will consist of preset | 23 // Return a sorted vector of zoom levels. The vector will consist of preset |
19 // values along with a custom value (if the custom value is not already | 24 // values along with a custom value (if the custom value is not already |
20 // represented.) | 25 // represented.) |
21 std::vector<double> PresetZoomLevels(double custom_level); | 26 std::vector<double> PresetZoomLevels(double custom_level); |
22 | 27 |
28 // Adjusts the zoom level of |web_contents|. | |
29 void Zoom(content::WebContents* web_contents, content::PageZoom zoom); | |
30 | |
23 } // namespace chrome_page_zoom | 31 } // namespace chrome_page_zoom |
24 | 32 |
25 #endif // CHROME_BROWSER_CHROME_PAGE_ZOOM_H_ | 33 #endif // CHROME_BROWSER_CHROME_PAGE_ZOOM_H_ |
OLD | NEW |