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

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

Issue 1419063002: Displaying "simplify page" on print preview by default (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Small refactors, formatting, and removing call to distillation heuristics. Created 5 years, 2 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 b82398511a20457ec6b83f37b37230ab09b07cd5..58aff64fc29e8a3a243f07a8407a5fbc7ee1963e 100644
--- a/chrome/browser/resources/print_preview/native_layer.js
+++ b/chrome/browser/resources/print_preview/native_layer.js
@@ -67,8 +67,8 @@ cr.define('print_preview', function() {
this.onEnableManipulateSettingsForTest_.bind(this);
global.printPresetOptionsFromDocument =
this.onPrintPresetOptionsFromDocument_.bind(this);
- global.detectDistillablePage =
- this.detectDistillablePage_.bind(this);
+ global.allowDistillPage =
+ this.allowDistillPage_.bind(this);
global.onProvisionalPrinterResolved =
this.onProvisionalDestinationResolved_.bind(this);
global.failedToResolveProvisionalPrinter =
@@ -747,7 +747,7 @@ cr.define('print_preview', function() {
* DOM Distiller.
* @private
*/
- detectDistillablePage_: function() {
+ allowDistillPage_: function() {
var allowDistillPageEvent = new Event(
NativeLayer.EventType.ALLOW_DISTILL_PAGE);
this.dispatchEvent(allowDistillPageEvent);

Powered by Google App Engine
This is Rietveld 408576698