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

Unified Diff: chrome/browser/resources/md_bookmarks/list.html

Issue 2603303002: [MD Bookmarks] Add UI for Material Bookmarks. (Closed)
Patch Set: 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/list.html
diff --git a/chrome/browser/resources/md_bookmarks/list.html b/chrome/browser/resources/md_bookmarks/list.html
new file mode 100644
index 0000000000000000000000000000000000000000..9098d7cb553719e6f22c8bcddbe3a98f8ed1fd26
--- /dev/null
+++ b/chrome/browser/resources/md_bookmarks/list.html
@@ -0,0 +1,43 @@
+<link rel="import" href="chrome://resources/html/polymer.html">
+<link rel="import" href="chrome://resources/cr_elements/cr_action_menu/cr_action_menu.html">
+<link rel="import" href="chrome://resources/polymer/v1_0/paper-icon-button/paper-icon-button-light.html">
+<link rel="import" href="chrome://resources/polymer/v1_0/paper-styles/shadow.html">
+<link rel="import" href="chrome://bookmarks/item.html">
+<link rel="import" href="chrome://bookmarks/shared_style.html">
+
+<dom-module id="bookmarks-list">
+ <template>
+ <style include="shared-style">
+ :host {
+ padding: 20px 32px;
+ }
+
+ #bookmarks-card {
+ @apply(--shadow-elevation-2dp);
+ background-color: #fff;
+ margin: 0 auto;
+ max-width: var(--card-max-width);
+ min-width: var(--card-min-width);
+ padding: 8px 0;
+ }
+ </style>
+ <dialog is="cr-action-menu" id="dropdown">
+ <button class="dropdown-item" on-tap="onEditTap_">
+ $i18n{menuEdit}
+ </button>
+ <button class="dropdown-item" on-tap="onCopyURLTap_">
+ $i18n{menuCopyURL}
+ </button>
+ <button class="dropdown-item" on-tap="onDeleteTap_">
+ $i18n{menuDelete}
+ </button>
+ </dialog>
+ <div id="bookmarks-card">
+ <!-- TODO(angelayang): handle empty folders -->
+ <template is="dom-repeat" items="[[selectedNode.children]]" as="item">
+ <bookmarks-item item="[[item]]"></bookmarks-item>
+ </template>
+ </div>
+ </template>
+ <script src="chrome://bookmarks/list.js"></script>
+</dom-module>

Powered by Google App Engine
This is Rietveld 408576698