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

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

Issue 2627383002: MD History: Replace app-drawer with cr-drawer (Closed)
Patch Set: Use correct close function Created 3 years, 11 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
1 // Copyright 2016 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 Polymer({ 5 Polymer({
6 is: 'history-side-bar', 6 is: 'history-side-bar',
7 7
8 behaviors: [Polymer.IronA11yKeysBehavior], 8 behaviors: [Polymer.IronA11yKeysBehavior],
9 9
10 properties: { 10 properties: {
11 selectedPage: { 11 selectedPage: {
12 type: String, 12 type: String,
13 notify: true, 13 notify: true,
14 }, 14 },
15 15
16 // If true, the sidebar is contained within an app-drawer.
17 drawer: {
18 type: Boolean,
19 reflectToAttribute: true,
20 },
21
22 showFooter: Boolean, 16 showFooter: Boolean,
23 }, 17 },
24 18
25 keyBindings: { 19 keyBindings: {
26 'space:keydown': 'onSpacePressed_', 20 'space:keydown': 'onSpacePressed_',
27 }, 21 },
28 22
29 /** 23 /**
30 * @param {CustomEvent} e 24 * @param {CustomEvent} e
31 * @private 25 * @private
(...skipping 24 matching lines...) Expand all
56 50
57 /** 51 /**
58 * Prevent clicks on sidebar items from navigating. These are only links for 52 * Prevent clicks on sidebar items from navigating. These are only links for
59 * accessibility purposes, taps are handled separately by <iron-selector>. 53 * accessibility purposes, taps are handled separately by <iron-selector>.
60 * @private 54 * @private
61 */ 55 */
62 onItemClick_: function(e) { 56 onItemClick_: function(e) {
63 e.preventDefault(); 57 e.preventDefault();
64 }, 58 },
65 }); 59 });
OLDNEW
« no previous file with comments | « chrome/browser/resources/md_history/side_bar.html ('k') | chrome/test/data/webui/md_history/history_drawer_test.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698