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

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

Issue 2076193003: [MD settings] Remove old side nav code; remove extra toolbar (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: review changes Created 4 years, 6 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
« no previous file with comments | « chrome/browser/resources/settings/settings_ui/settings_ui.html ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 1249bb8a09fec52e321ae930588376825bb06783..f963adaa2ab6d45e5fed845944a5a9269c47c1ba 100644
--- a/chrome/browser/resources/settings/settings_ui/settings_ui.js
+++ b/chrome/browser/resources/settings/settings_ui/settings_ui.js
@@ -28,28 +28,12 @@ Polymer({
},
listeners: {
- 'sideNav.iron-select': 'onIronSelect_',
- 'paper-responsive-change': 'onPaperResponsiveChange_',
+ 'sideNav.iron-activate': 'onIronActivate_',
},
- /**
- * @param {!CustomEvent} e
- * @private
- */
- onIronSelect_: function(e) {
- if (Polymer.dom(e).path.indexOf(this.$.panel) >= 0) {
- this.classList.remove('narrowing');
- this.$.panel.closeDrawer();
- }
- },
-
- /**
- * @param {!CustomEvent} e
- * @private
- */
- onPaperResponsiveChange_: function(e) {
- if (Polymer.dom(e).rootTarget == this.$.panel)
- this.classList.toggle('narrowing', e.detail.narrow);
+ /** @private */
+ onIronActivate_: function() {
+ this.$.panel.closeDrawer();
},
/** @private */
« no previous file with comments | « chrome/browser/resources/settings/settings_ui/settings_ui.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698