blob: f579cb167f0721e7b0483d8a19ad09a4a996dd47 [file] [log] [blame]
[email protected]8233cbc2012-07-13 16:14:521// Copyright (c) 2012 The Chromium Authors. All rights reserved.
[email protected]0f083402011-11-22 02:59:012// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5#ifndef CHROME_BROWSER_CHROME_PAGE_ZOOM_H_
6#define CHROME_BROWSER_CHROME_PAGE_ZOOM_H_
[email protected]0f083402011-11-22 02:59:017
8#include <vector>
[email protected]8233cbc2012-07-13 16:14:529#include "content/public/common/page_zoom.h"
10
11namespace content {
12class WebContents;
13}
[email protected]0f083402011-11-22 02:59:0114
15namespace chrome_page_zoom {
16
[email protected]0f083402011-11-22 02:59:0117// 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
19// represented.)
20std::vector<double> PresetZoomFactors(double custom_factor);
21
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
24// represented.)
25std::vector<double> PresetZoomLevels(double custom_level);
26
[email protected]8233cbc2012-07-13 16:14:5227// Adjusts the zoom level of |web_contents|.
28void Zoom(content::WebContents* web_contents, content::PageZoom zoom);
29
[email protected]0f083402011-11-22 02:59:0130} // namespace chrome_page_zoom
31
32#endif // CHROME_BROWSER_CHROME_PAGE_ZOOM_H_