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

Unified Diff: chrome/browser/resources/print_preview/native_layer.js

Issue 81563002: Removed unused code path. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 1 month 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/resources/print_preview/native_layer.js
diff --git a/chrome/browser/resources/print_preview/native_layer.js b/chrome/browser/resources/print_preview/native_layer.js
index 3ff8a9cfce26d557b956fd1f86e427e597850a5a..50a2c65a31a114e95cf820658ebe62722818038f 100644
--- a/chrome/browser/resources/print_preview/native_layer.js
+++ b/chrome/browser/resources/print_preview/native_layer.js
@@ -36,7 +36,6 @@ cr.define('print_preview', function() {
this.onDidGetDefaultPageLayout_.bind(this);
global['onDidGetPreviewPageCount'] =
this.onDidGetPreviewPageCount_.bind(this);
- global['reloadPreviewPages'] = this.onReloadPreviewPages_.bind(this);
global['onDidPreviewPage'] = this.onDidPreviewPage_.bind(this);
global['updatePrintPreview'] = this.onUpdatePrintPreview_.bind(this);
global['printScalingDisabledForSourcePDF'] =
@@ -75,7 +74,6 @@ cr.define('print_preview', function() {
'print_preview.NativeLayer.PREVIEW_GENERATION_DONE',
PREVIEW_GENERATION_FAIL:
'print_preview.NativeLayer.PREVIEW_GENERATION_FAIL',
- PREVIEW_RELOAD: 'print_preview.NativeLayer.PREVIEW_RELOAD',
PRINT_TO_CLOUD: 'print_preview.NativeLayer.PRINT_TO_CLOUD',
SETTINGS_INVALID: 'print_preview.NativeLayer.SETTINGS_INVALID',
PRIVET_PRINTER_CHANGED: 'print_preview.NativeLayer.PRIVET_PRINTER_CHANGED',
@@ -173,7 +171,6 @@ cr.define('print_preview', function() {
* - PAGE_PREVIEW_READY
* - PREVIEW_GENERATION_DONE
* - PREVIEW_GENERATION_FAIL
- * - PREVIEW_RELOAD
* @param {print_preview.Destination} destination Destination to print to.
* @param {!print_preview.PrintTicketStore} printTicketStore Used to get the
* state of the print ticket.
@@ -558,21 +555,6 @@ cr.define('print_preview', function() {
},
/**
- * Called when no pipelining previewed pages.
- * @param {number} previewUid Preview unique identifier.
- * @param {number} previewResponseId The preview request id that resulted in
- * this response.
- * @private
- */
- onReloadPreviewPages_: function(previewUid, previewResponseId) {
- var previewReloadEvent = new Event(
- NativeLayer.EventType.PREVIEW_RELOAD);
- previewReloadEvent.previewUid = previewUid;
- previewReloadEvent.previewResponseId = previewResponseId;
- this.dispatchEvent(previewReloadEvent);
- },
-
- /**
* Notification that a print preview page has been rendered.
* Check if the settings have changed and request a regeneration if needed.
* Called from PrintPreviewUI::OnDidPreviewPage().
« no previous file with comments | « chrome/browser/printing/print_preview_message_handler.cc ('k') | chrome/browser/resources/print_preview/preview_generator.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698