summaryrefslogtreecommitdiffstats
path: root/printing/printing_context.h
diff options
context:
space:
mode:
authorsanjeevr@chromium.org <sanjeevr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-12-03 22:40:37 +0000
committersanjeevr@chromium.org <sanjeevr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-12-03 22:40:37 +0000
commitee5f36e4442fed7e6c264c73bbbd49b6545201d1 (patch)
tree2d6de2c6c52f5b6a9ca772e56c2edeef6f7733cc /printing/printing_context.h
parent18d68db9020b616b3ee9d39b4406736ae266cd61 (diff)
downloadchromium_src-ee5f36e4442fed7e6c264c73bbbd49b6545201d1.zip
chromium_src-ee5f36e4442fed7e6c264c73bbbd49b6545201d1.tar.gz
chromium_src-ee5f36e4442fed7e6c264c73bbbd49b6545201d1.tar.bz2
On Chrome OS, use the application locale to determine the default paper size rather than rely on GTK.
BUG=None. TEST=Web pages printed from Chrome OS should use locale-specific default paper size (specifically, for US, it should use 8.5 x 11). Review URL: http://codereview.chromium.org/5636001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@68233 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'printing/printing_context.h')
-rw-r--r--printing/printing_context.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/printing/printing_context.h b/printing/printing_context.h
index 4edd84e..8cb4f25 100644
--- a/printing/printing_context.h
+++ b/printing/printing_context.h
@@ -84,7 +84,7 @@ class PrintingContext {
// Creates an instance of this object. Implementers of this interface should
// implement this method to create an object of their implementation. The
// caller owns the returned object.
- static PrintingContext* Create();
+ static PrintingContext* Create(const std::string& app_locale);
void set_use_overlays(bool use_overlays) {
settings_.use_overlays = use_overlays;
@@ -95,7 +95,7 @@ class PrintingContext {
}
protected:
- PrintingContext();
+ explicit PrintingContext(const std::string& app_locale);
// Reinitializes the settings for object reuse.
void ResetSettings();
@@ -115,6 +115,9 @@ class PrintingContext {
// Did the user cancel the print job.
volatile bool abort_printing_;
+ // The application locale.
+ std::string app_locale_;
+
DISALLOW_COPY_AND_ASSIGN(PrintingContext);
};