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

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

Issue 1932413003: [MD History] Refactor history.html into a history-app element. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: address nit 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
« no previous file with comments | « chrome/browser/resources/md_history/side_bar.html ('k') | chrome/browser/ui/webui/md_history_ui.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 02108615aad6627772660df4b186abb659946ee9..11da2e42884c0a1912b197769c89dd3733c4949b 100644
--- a/chrome/browser/resources/md_history/side_bar.js
+++ b/chrome/browser/resources/md_history/side_bar.js
@@ -5,6 +5,13 @@
Polymer({
is: 'history-side-bar',
+ properties: {
+ selectedPage: {
+ type: String,
+ notify: true
+ }
+ },
+
/**
* Handles menu selection changes.
* @param {Event} e
@@ -12,6 +19,6 @@ Polymer({
*/
onSelect_: function(e) {
this.fire('unselect-all');
- this.fire('switch-display', {display: e.detail.item.id});
+ this.selectedPage = e.detail.item.getAttribute('view-id');
},
});
« no previous file with comments | « chrome/browser/resources/md_history/side_bar.html ('k') | chrome/browser/ui/webui/md_history_ui.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698