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

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

Issue 399973004: Advanced printing destination settings modal dialog (non-functional yet, just the skeleton). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 5 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/print_preview.js
diff --git a/chrome/browser/resources/print_preview/print_preview.js b/chrome/browser/resources/print_preview/print_preview.js
index 9fe9806edb088bdb2f2c819482ff1cb475e081f6..20af44bf4d064d4c59e3105ce4e94d7eda4f1ea3 100644
--- a/chrome/browser/resources/print_preview/print_preview.js
+++ b/chrome/browser/resources/print_preview/print_preview.js
@@ -165,6 +165,14 @@ cr.define('print_preview', function() {
this.addChild(this.otherOptionsSettings_);
/**
+ * Component used to search for print destinations.
+ * @type {!print_preview.AdvancedSettings}
+ * @private
+ */
+ this.advancedSettings_ = new print_preview.AdvancedSettings(this.metrics_);
+ this.addChild(this.advancedSettings_);
+
+ /**
* Area of the UI that holds the print preview.
* @type {!print_preview.PreviewArea}
* @private
@@ -407,6 +415,7 @@ cr.define('print_preview', function() {
this.colorSettings_.decorate($('color-settings'));
this.marginSettings_.decorate($('margin-settings'));
this.otherOptionsSettings_.decorate($('other-options-settings'));
+ this.advancedSettings_.decorate($('advanced-settings'));
this.previewArea_.decorate($('preview-area'));
setIsVisible($('open-pdf-in-preview-link'), cr.isMac);
@@ -1127,6 +1136,8 @@ cr.define('print_preview', function() {
});
// Pull in all other scripts in a single shot.
+<include src="common/search_box.js"/>
+
<include src="data/page_number_set.js"/>
<include src="data/destination.js"/>
<include src="data/local_parsers.js"/>
@@ -1174,6 +1185,7 @@ cr.define('print_preview', function() {
<include src="settings/margin_settings.js"/>
<include src="settings/destination_settings.js"/>
<include src="settings/other_options_settings.js"/>
+<include src="settings/advanced_settings/advanced_settings.js"/>
<include src="previewarea/margin_control.js"/>
<include src="previewarea/margin_control_container.js"/>
@@ -1186,7 +1198,6 @@ cr.define('print_preview', function() {
<include src="search/recent_destination_list.js"/>
<include src="search/destination_list_item.js"/>
<include src="search/destination_search.js"/>
-<include src="search/search_box.js"/>
<include src="search/fedex_tos.js"/>
window.addEventListener('DOMContentLoaded', function() {

Powered by Google App Engine
This is Rietveld 408576698