Chromium Code Reviews| 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_; |
| + }, |
| }); |