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

Side by Side Diff: chrome/browser/resources/md_history/side_bar.js

Issue 1607403004: MD History: Display synced tabs history (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@second_patch
Patch Set: Merged but tests not working everything else SEEMS ok Created 4 years, 10 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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 Polymer({
6 is: 'side-bar',
7
8 properties: {
9 selectedDisplay: {
10 type: String,
11 value: 'history-button'
12 }
13 },
14
15 changeDisplay: function(e) {
16 this.selectedPage = e.currentTarget.id;
17
18 var currentButton =
19 Polymer.dom(this.root).querySelector('.selected');
20 currentButton.classList.remove('selected');
21
22 var buttonPressed =
23 Polymer.dom(this.root).querySelector('#' + e.currentTarget.id);
24 buttonPressed.classList.add('selected');
25
26 this.fire('switch-display', { display: this.selectedPage });
27 }
28 });
OLDNEW
« no previous file with comments | « chrome/browser/resources/md_history/side_bar.html ('k') | chrome/browser/resources/md_history/synced_device_card.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698