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

Unified Diff: chrome/browser/resources/md_bookmarks/item.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/item.html
diff --git a/chrome/browser/resources/md_bookmarks/item.html b/chrome/browser/resources/md_bookmarks/item.html
new file mode 100644
index 0000000000000000000000000000000000000000..ffe39e2f8feed9af8519dc91e85bc3dd3755ea76
--- /dev/null
+++ b/chrome/browser/resources/md_bookmarks/item.html
@@ -0,0 +1,68 @@
+<link rel="import" href="chrome://resources/html/polymer.html">
+<link rel="import" href="chrome://resources/cr_elements/icons.html">
+<link rel="import" href="chrome://resources/html/icon.html">
+<link rel="import" href="chrome://resources/polymer/v1_0/iron-icon/iron-icon.html">
+<link rel="import" href="chrome://resources/polymer/v1_0/paper-icon-button/paper-icon-button-light.html">
+<link rel="import" href="chrome://bookmarks/shared_style.html">
+
+<dom-module id="bookmarks-item">
+ <template>
+ <style include="shared-style">
+ :host {
+ -webkit-padding-start: 20px;
+ align-items: center;
+ display: flex;
+ flex-direction: row;
+ height: 40px;
+ }
+
+ #website-title {
+ color: var(--primary-text-color);
+ cursor: pointer;
+ flex: 1;
+ overflow: hidden;
+ text-decoration: none;
+ text-overflow: ellipsis;
+ white-space: nowrap;
+ }
+
+ #icon {
+ background-repeat: no-repeat;
+ height: 16px;
+ margin: 2px;
+ }
+
+ #icon-wrapper {
+ -webkit-margin-end: 20px;
+ height: 20px;
+ width: 20px;
+ }
+
+ .more-vert-button {
+ -webkit-margin-end: 12px;
+ }
+
+ iron-icon {
+ --iron-icon-height: 20px;
+ --iron-icon-width: 20px;
+ color: var(--secondary-text-color);
+ }
+ </style>
+ <div id="icon-wrapper">
+ <iron-icon icon="bookmarks:folder"
tsergeant 2017/01/03 23:31:17 This is wrapped a bit weirdly. We also normally ke
jiaxi 2017/01/04 02:50:16 Done.
+ hidden$="[[!isFolder_]]" id="folder-icon">
+ </iron-icon>
+ <div id="icon" hidden$="[[isFolder_]]"></div>
+ </div>
+ <div id="website-title">
+ [[item.title]]
+ </div>
+ <button is="paper-icon-button-light" class="more-vert-button"
+ on-tap="onMenuButtonOpenTap_">
+ <div></div>
+ <div></div>
+ <div></div>
+ </button>
+ </template>
+ <script src="chrome://bookmarks/item.js"></script>
+<dom-module>

Powered by Google App Engine
This is Rietveld 408576698