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

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: Correcting histograms.xml Created 5 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
« no previous file with comments | « chrome/browser/dom_distiller/profile_utils.cc ('k') | chrome/browser/ui/tab_helpers.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 98a61fc0e101acd1b062de18d0244588a6349054..7bda60e6c3bfdcab42359eac4f12d3a8514214a3 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 =
@@ -742,13 +742,10 @@ cr.define('print_preview', function() {
},
/**
- * Updates the interface to show the "Distill Page" option
- * when PrintPreviewHandler::HandleIsPageDistillableResult
- * determines that this page can be distilled with the
- * DOM Distiller.
+ * Updates the interface to show the "Simplify Page" option.
* @private
*/
- detectDistillablePage_: function() {
+ allowDistillPage_: function() {
var allowDistillPageEvent = new Event(
NativeLayer.EventType.ALLOW_DISTILL_PAGE);
this.dispatchEvent(allowDistillPageEvent);
« no previous file with comments | « chrome/browser/dom_distiller/profile_utils.cc ('k') | chrome/browser/ui/tab_helpers.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698