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

Unified Diff: chrome/browser/resources/settings/settings_ui/settings_ui.js

Issue 1880063004: [MD settings] drawer menu icon into title bar; icon colors (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: cleanup Created 4 years, 8 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/settings/settings_ui/settings_ui.js
diff --git a/chrome/browser/resources/settings/settings_ui/settings_ui.js b/chrome/browser/resources/settings/settings_ui/settings_ui.js
index 9e5a531d3d0e221e38653a0a11fe3a59d86361ad..db9930d26b1f1bc70ec9596a4f9603b79ca11543 100644
--- a/chrome/browser/resources/settings/settings_ui/settings_ui.js
+++ b/chrome/browser/resources/settings/settings_ui/settings_ui.js
@@ -13,6 +13,8 @@
Polymer({
is: 'settings-ui',
+ behaviors: [I18nBehavior],
+
properties: {
/**
* Preferences state.
@@ -25,10 +27,26 @@ Polymer({
observer: 'directionDelegateChanged_',
type: Object,
},
+
+ /** @private */
+ mainTitle_: String,
+
+ /** @private */
+ showSearch_: Boolean,
},
/** @private */
directionDelegateChanged_: function() {
this.$.panel.rightDrawer = this.directionDelegate.isRtl();
},
+
+ /** @private */
+ onNarrow_: function(e) {
tommycli 2016/04/13 20:39:29 Since it's not always narrowed (sometimes it's exp
dschuyler 2016/04/13 22:19:50 Done.
+ this.mainTitle_ = e.detail.narrow ? this.i18n('settings') : '';
+ },
+
+ /** @private */
+ toggleSearch_: function() {
+ this.showSearch_ = !this.showSearch_;
+ },
});

Powered by Google App Engine
This is Rietveld 408576698