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

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

Issue 2566153007: Implement PrintBrowser functionality. (Closed)
Patch Set: Fix git weirdness Created 4 years 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 0c5f7c9cda4444f6bdd7a5b8a1ae175e20753428..12b450b94496d9671247a78b4e26e369a81db3d2 100644
--- a/chrome/browser/resources/print_preview/print_preview.js
+++ b/chrome/browser/resources/print_preview/print_preview.js
@@ -19,6 +19,12 @@ cr.define('print_preview', function() {
print_preview.Component.call(this);
/**
+ * If in PrintBrowser mode, don't show the navbar
+ */
+ if (loadTimeData.getBoolean('printBrowserEnabled'))
+ $('navbar-container').style.display = 'none';
rbpotter 2016/12/16 20:05:29 Not sure that this stops all the events from the n
+
+ /**
* Whether the print scaling feature is enabled.
* @type {boolean}
* @private

Powered by Google App Engine
This is Rietveld 408576698