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

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

Issue 8926001: Move some zoom constants into the headers so we don't have to duplicate the values in plugins. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years 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) 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 10
11 namespace chrome_page_zoom { 11 namespace chrome_page_zoom {
12 12
13 // Zoom factors supported by the browser.
14 extern const double kPresetZoomFactors[];
15
16 // Size of |kPresetZoomFactors|.
17 extern const size_t kPresetZoomFactorsSize;
18
13 // Return a sorted vector of zoom factors. The vector will consist of preset 19 // 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 20 // values along with a custom value (if the custom value is not already
15 // represented.) 21 // represented.)
16 std::vector<double> PresetZoomFactors(double custom_factor); 22 std::vector<double> PresetZoomFactors(double custom_factor);
17 23
18 // Return a sorted vector of zoom levels. The vector will consist of preset 24 // 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 25 // values along with a custom value (if the custom value is not already
20 // represented.) 26 // represented.)
21 std::vector<double> PresetZoomLevels(double custom_level); 27 std::vector<double> PresetZoomLevels(double custom_level);
22 28
23 } // namespace chrome_page_zoom 29 } // namespace chrome_page_zoom
24 30
25 #endif // CHROME_BROWSER_CHROME_PAGE_ZOOM_H_ 31 #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