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

Unified Diff: chrome/browser/resources/md_history/side_bar.js

Issue 2165903003: MD History: Show sidebar next to content on wide screens (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@history_fix_footer_link
Patch Set: calamity@ review Created 4 years, 5 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/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');
},
/**

Powered by Google App Engine
This is Rietveld 408576698