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

Unified 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, 12 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/resources/md_bookmarks/toolbar.js
diff --git a/chrome/browser/resources/md_bookmarks/toolbar.js b/chrome/browser/resources/md_bookmarks/toolbar.js
new file mode 100644
index 0000000000000000000000000000000000000000..b1d982c2360b9bbe9fc3e0ad2745a8b36eef10b5
--- /dev/null
+++ b/chrome/browser/resources/md_bookmarks/toolbar.js
@@ -0,0 +1,47 @@
+// Copyright 2016 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+Polymer({
+ is: 'bookmarks-toolbar',
+
+ /**
+ * @param {Event} e
+ * @private
+ */
+ onMenuButtonOpenTap_: function(e) {
+ var menu = /** @type {!CrActionMenuElement} */ (this.$.dropdown);
+ menu.showAt(/** @type {!Element} */ (e.target));
+ },
+
+ /** @private */
+ onBulkEditTap_: function() {
+ this.closeDropdownMenu_();
+ },
+
+ /** @private */
+ onSortTap_: function() {
+ this.closeDropdownMenu_();
+ },
+
+ /** @private */
+ onAddBookmarkTap_: function() {
+ this.closeDropdownMenu_();
+ },
+
+ /** @private */
+ onAddImportTap_: function() {
+ this.closeDropdownMenu_();
+ },
+
+ /** @private */
+ onAddExportTap_: function() {
+ this.closeDropdownMenu_();
+ },
+
+ /** @private */
+ closeDropdownMenu_: function() {
+ var menu = /** @type {!CrActionMenuElement} */ (this.$.dropdown);
+ menu.close();
+ }
+});
« 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