1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef CHROME_BROWSER_CHROME_PAGE_ZOOM_H_
6 #define CHROME_BROWSER_CHROME_PAGE_ZOOM_H_
9 #include "content/public/common/page_zoom.h"
15 namespace chrome_page_zoom {
17 // Return a sorted vector of zoom factors. The vector will consist of preset
18 // values along with a custom value (if the custom value is not already
20 std::vector<double> PresetZoomFactors(double custom_factor);
22 // Return a sorted vector of zoom levels. The vector will consist of preset
23 // values along with a custom value (if the custom value is not already
25 std::vector<double> PresetZoomLevels(double custom_level);
27 // Adjusts the zoom level of |web_contents|.
28 void Zoom(content::WebContents* web_contents, content::PageZoom zoom);
30 } // namespace chrome_page_zoom
32 #endif // CHROME_BROWSER_CHROME_PAGE_ZOOM_H_