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

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

Issue 2592293003: [MD Bookmarks] Add skeleton for MD Bookmarks. (Closed)
Patch Set: Remove unused imports. 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
(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
8 /**
9 * @param {Event} e
10 * @private
11 */
12 onMenuButtonOpenTap_: function(e) {
13 var menu = /** @type {!CrActionMenuElement} */ (this.$.dropdown);
14 menu.showAt(/** @type {!Element} */ (e.target));
15 },
16
17 /** @private */
18 onBulkEditTap_: function() {
19 this.closeDropdownMenu_();
20 },
21
22 /** @private */
23 onSortTap_: function() {
24 this.closeDropdownMenu_();
25 },
26
27 /** @private */
28 onAddBookmarkTap_: function() {
29 this.closeDropdownMenu_();
30 },
31
32 /** @private */
33 onAddImportTap_: function() {
34 this.closeDropdownMenu_();
35 },
36
37 /** @private */
38 onAddExportTap_: function() {
39 this.closeDropdownMenu_();
40 },
41
42 /** @private */
43 closeDropdownMenu_: function() {
44 var menu = /** @type {!CrActionMenuElement} */ (this.$.dropdown);
45 menu.close();
46 }
47 });
OLDNEW
« no previous file with comments | « chrome/browser/resources/md_bookmarks/toolbar.html ('k') | chrome/browser/ui/webui/md_bookmarks/md_bookmarks_ui.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698