Index: chrome/browser/resources/md_history/side_bar.js |
diff --git a/chrome/browser/resources/md_history/side_bar.js b/chrome/browser/resources/md_history/side_bar.js |
index 8a9c56e43c1fe1d0378929b9d700a0a617628ef1..a47576a2f8fa54c3b4ad91c4ea5617cd0acf9982 100644 |
--- a/chrome/browser/resources/md_history/side_bar.js |
+++ b/chrome/browser/resources/md_history/side_bar.js |
@@ -14,14 +14,15 @@ Polymer({ |
route: Object, |
showFooter: Boolean, |
- }, |
- toggle: function() { |
- this.$.drawer.toggle(); |
+ // If true, the sidebar is contained within an app-drawer. |
+ drawer: { |
+ type: Boolean, |
+ reflectToAttribute: true |
+ }, |
}, |
- /** @private */ |
- onDrawerFocus_: function() { |
+ focusCurrentPage: function() { |
// The desired behavior is for the app-drawer to focus the currently |
// selected menu item on opening. However, it will always focus the first |
// focusable child. Therefore, we set tabindex=0 on the app-drawer so that |
@@ -32,7 +33,7 @@ Polymer({ |
/** @private */ |
onSelectorActivate_: function() { |
- this.$.drawer.close(); |
+ this.fire('history-close-drawer'); |
}, |
/** |