summaryrefslogtreecommitdiffstats
path: root/printing
diff options
context:
space:
mode:
authorthestig@chromium.org <thestig@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-08-23 05:04:46 +0000
committerthestig@chromium.org <thestig@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-08-23 05:04:46 +0000
commitff9067434aceb8bcf7c70b1d2ad627fd85e5b957 (patch)
treeac8810b39c81cb8b59a00625a28c160dfb8fd3dc /printing
parent2bd4b68de2e193aca51caa09edddb8fd0cd3b9cd (diff)
downloadchromium_src-ff9067434aceb8bcf7c70b1d2ad627fd85e5b957.zip
chromium_src-ff9067434aceb8bcf7c70b1d2ad627fd85e5b957.tar.gz
chromium_src-ff9067434aceb8bcf7c70b1d2ad627fd85e5b957.tar.bz2
Print Preview: Go from event driven print preview back to print preview with sync messages. The sync messages now go to the IO thread to avoid the potential deadlock on Windows.
BUG=91057, and probably a few more. TEST=included. Review URL: http://codereview.chromium.org/7621087 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@97820 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'printing')
-rw-r--r--printing/print_job_constants.cc7
-rw-r--r--printing/print_job_constants.h2
2 files changed, 5 insertions, 4 deletions
diff --git a/printing/print_job_constants.cc b/printing/print_job_constants.cc
index abaf167..b1928e5 100644
--- a/printing/print_job_constants.cc
+++ b/printing/print_job_constants.cc
@@ -12,6 +12,9 @@ const char kIsFirstRequest[] = "isFirstRequest";
// Unique ID sent along every preview request.
const char kPreviewRequestID[] = "requestID";
+// Unique ID to identify a print preview UI.
+const char kPreviewUIAddr[] = "previewUIAddr";
+
// Print using cloud print: true if selected, false if not.
const char kSettingCloudPrintId[] = "cloudPrintID";
@@ -83,10 +86,8 @@ const char kSettingPrinterName[] = "printerName";
// Print to PDF option: true if selected, false if not.
const char kSettingPrintToPDF[] = "printToPDF";
-// Indices used to represent first page, invalid page and complete
-// preview document.
+// Indices used to represent first preview page and complete preview document.
const int FIRST_PAGE_INDEX = 0;
const int COMPLETE_PREVIEW_DOCUMENT_INDEX = -1;
-const int INVALID_PAGE_INDEX = -2;
} // namespace printing
diff --git a/printing/print_job_constants.h b/printing/print_job_constants.h
index f9188be..e451189 100644
--- a/printing/print_job_constants.h
+++ b/printing/print_job_constants.h
@@ -9,6 +9,7 @@ namespace printing {
extern const char kIsFirstRequest[];
extern const char kPreviewRequestID[];
+extern const char kPreviewUIAddr[];
extern const char kSettingCloudPrintId[];
extern const char kSettingCollate[];
extern const char kSettingColor[];
@@ -34,7 +35,6 @@ extern const char kSettingPrintToPDF[];
extern const int FIRST_PAGE_INDEX;
extern const int COMPLETE_PREVIEW_DOCUMENT_INDEX;
-extern const int INVALID_PAGE_INDEX;
// Print job duplex mode values.
enum DuplexMode {