Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(47)

Side by Side Diff: chrome/browser/chrome_page_zoom.h

Issue 10736037: Enable keyboard shortcuts and some menu commands for browserless Panels. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Synced Created 8 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | chrome/browser/chrome_page_zoom.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 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 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 7
8 #include <vector> 8 #include <vector>
9 #include "content/public/common/page_zoom.h"
10
11 namespace content {
12 class WebContents;
13 }
9 14
10 namespace chrome_page_zoom { 15 namespace chrome_page_zoom {
11 16
12 // Return a sorted vector of zoom factors. The vector will consist of preset 17 // Return a sorted vector of zoom factors. The vector will consist of preset
13 // values along with a custom value (if the custom value is not already 18 // values along with a custom value (if the custom value is not already
14 // represented.) 19 // represented.)
15 std::vector<double> PresetZoomFactors(double custom_factor); 20 std::vector<double> PresetZoomFactors(double custom_factor);
16 21
17 // Return a sorted vector of zoom levels. The vector will consist of preset 22 // Return a sorted vector of zoom levels. The vector will consist of preset
18 // values along with a custom value (if the custom value is not already 23 // values along with a custom value (if the custom value is not already
19 // represented.) 24 // represented.)
20 std::vector<double> PresetZoomLevels(double custom_level); 25 std::vector<double> PresetZoomLevels(double custom_level);
21 26
27 // Adjusts the zoom level of |web_contents|.
28 void Zoom(content::WebContents* web_contents, content::PageZoom zoom);
29
22 } // namespace chrome_page_zoom 30 } // namespace chrome_page_zoom
23 31
24 #endif // CHROME_BROWSER_CHROME_PAGE_ZOOM_H_ 32 #endif // CHROME_BROWSER_CHROME_PAGE_ZOOM_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/chrome_page_zoom.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698