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

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

Issue 2683653005: Fix WindowdotPrintShouldBringUpPrintPreview (Closed)
Patch Set: Move inits Created 3 years, 10 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 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 d4b57a1d4dbfeb1e97204624e53008d486feef2a..2d9aa00635ac64d97e483803746424b6bb7bea16 100644
--- a/chrome/browser/resources/print_preview/native_layer.js
+++ b/chrome/browser/resources/print_preview/native_layer.js
@@ -63,7 +63,6 @@ cr.define('print_preview', function() {
global.onDidPreviewPage = this.onDidPreviewPage_.bind(this);
global.updatePrintPreview = this.onUpdatePrintPreview_.bind(this);
global.onDidGetAccessToken = this.onDidGetAccessToken_.bind(this);
- global.autoCancelForTesting = this.autoCancelForTesting_.bind(this);
global.onPrivetPrinterChanged = this.onPrivetPrinterChanged_.bind(this);
global.onPrivetCapabilitiesSet =
this.onPrivetCapabilitiesSet_.bind(this);
@@ -761,17 +760,6 @@ cr.define('print_preview', function() {
},
/**
- * Simulates a user click on the print preview dialog cancel button. Used
- * only for testing.
- * @private
- */
- autoCancelForTesting_: function() {
- var properties = {view: window, bubbles: true, cancelable: true};
- var click = new MouseEvent('click', properties);
- document.querySelector('#print-header .cancel').dispatchEvent(click);
- },
-
- /**
* @param {{serviceName: string, name: string}} printer Specifies
* information about the printer that was added.
* @private

Powered by Google App Engine
This is Rietveld 408576698