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

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

Issue 2592293003: [MD Bookmarks] Add skeleton for MD Bookmarks. (Closed)
Patch Set: Created 4 years 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: 'bookmarks-toolbar',
7 properties: {
tsergeant 2016/12/22 04:33:02 Just delete this properties block entirely if it's
angelayang 2016/12/28 00:49:38 Done.
8 },
9
10 /**
11 * @param {Event} e
12 * @private
13 */
14 onMenuButtonOpenTap_: function(e) {
15 var menu = /** @type {!CrActionMenuElement} */ (
16 this.$.dropdown);
17 menu.showAt(/** @type {!Element} */ (e.target));
18 },
19
20 /** @private */
21 onBulkEditTap_: function() {
22 this.closeDropdownMenu_();
23 },
24
25 /** @private */
26 onSortTap_: function() {
27 this.closeDropdownMenu_();
28 },
29
30 /** @private */
31 onAddBookmarkTap_: function() {
32 this.closeDropdownMenu_();
33 },
34
35 /** @private */
36 onAddImportTap_: function() {
37 this.closeDropdownMenu_();
38 },
39
40 /** @private */
41 onAddExportTap_: function() {
42 this.closeDropdownMenu_();
43 },
44
45 /** @private */
46 closeDropdownMenu_: function() {
47 var menu = /** @type {!CrActionMenuElement} */ (
48 this.$.dropdown);
49 menu.close();
50 }
51 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698