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

Side by Side Diff: printing/custom_scaling.h

Issue 10348002: ugrr... Fixing printing scaling again. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 7 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 | « chrome/renderer/print_web_view_helper_win.cc ('k') | printing/custom_scaling.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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.
4
5 #ifndef PRINTING_CUSTOM_SCALING_H_
6 #define PRINTING_CUSTOM_SCALING_H_
7
8 #include "printing/printing_export.h"
9
10 namespace printing {
11
12 // This set of function allows plugin to set custom printing scale in the
13 // thread local storage. It is a hack to pass scale through this, but
14 // alternative is to do major refactoring to pass this scale factor all the
15 // from plugin through webkit to the upper level.
16 // We should definitely revisit this approach in favor of better implementation
17 // later. In the mean time, this looks like a simplest way fixing printing
18 // issues now.
19
20 // Gets custom printing scale from the TLS. Return false if it has not been
21 // set.
22 PRINTING_EXPORT bool GetCustomPrintingPageScale(double* scale);
23
24 // Sets custom printing scale in TLS.
25 PRINTING_EXPORT void SetCustomPrintingPageScale(double scale);
26
27 // Clears custom printing scale in TLS.
28 PRINTING_EXPORT void ClearCustomPrintingPageScale();
29
30 } // namespace printing
31
32 #endif // PRINTING_CUSTOM_SCALING_H_
33
OLDNEW
« no previous file with comments | « chrome/renderer/print_web_view_helper_win.cc ('k') | printing/custom_scaling.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698