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

Side by Side Diff: chrome/browser/resources/md_bookmarks/list.js

Issue 2617663002: WIP: run clang-format-js on lots of things (Closed)
Patch Set: merge 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: 'bookmarks-list', 6 is: 'bookmarks-list',
7 7
8 properties: { 8 properties: {
9 /** @type {BookmarkTreeNode} */ 9 /** @type {BookmarkTreeNode} */
10 selectedNode: Object, 10 selectedNode: Object,
11 }, 11 },
12 12
13 listeners: { 13 listeners: {'toggle-menu': 'onToggleMenu_'},
14 'toggle-menu': 'onToggleMenu_'
15 },
16 14
17 /** 15 /**
18 * @param {Event} e 16 * @param {Event} e
19 * @private 17 * @private
20 */ 18 */
21 onToggleMenu_: function(e) { 19 onToggleMenu_: function(e) {
22 var menu = /** @type {!CrActionMenuElement} */ ( 20 var menu = /** @type {!CrActionMenuElement} */ (this.$.dropdown);
23 this.$.dropdown);
24 menu.showAt(/** @type {!Element} */ (e.detail.target)); 21 menu.showAt(/** @type {!Element} */ (e.detail.target));
25 }, 22 },
26 23
27 // TODO(jiaxi): change these dummy click event handlers later. 24 // TODO(jiaxi): change these dummy click event handlers later.
28 /** @private */ 25 /** @private */
29 onEditTap_: function() { 26 onEditTap_: function() {
30 this.closeDropdownMenu_(); 27 this.closeDropdownMenu_();
31 }, 28 },
32 29
33 /** @private */ 30 /** @private */
34 onCopyURLTap_: function() { 31 onCopyURLTap_: function() {
35 this.closeDropdownMenu_(); 32 this.closeDropdownMenu_();
36 }, 33 },
37 34
38 /** @private */ 35 /** @private */
39 onDeleteTap_: function() { 36 onDeleteTap_: function() {
40 this.closeDropdownMenu_(); 37 this.closeDropdownMenu_();
41 }, 38 },
42 39
43 /** @private */ 40 /** @private */
44 closeDropdownMenu_: function() { 41 closeDropdownMenu_: function() {
45 var menu = /** @type {!CrActionMenuElement} */ ( 42 var menu = /** @type {!CrActionMenuElement} */ (this.$.dropdown);
46 this.$.dropdown);
47 menu.close(); 43 menu.close();
48 } 44 }
49 }); 45 });
OLDNEW
« no previous file with comments | « chrome/browser/resources/md_bookmarks/item.js ('k') | chrome/browser/resources/md_downloads/action_service.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698