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

Side by Side Diff: chrome/browser/resources/md_bookmarks/list.html

Issue 2617943002: [MD Bookmarks] Edit Bookmarks. (Closed)
Patch Set: test fix 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
« no previous file with comments | « no previous file | chrome/browser/resources/md_bookmarks/list.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <link rel="import" href="chrome://resources/html/polymer.html"> 1 <link rel="import" href="chrome://resources/html/polymer.html">
2 <link rel="import" href="chrome://resources/cr_elements/cr_action_menu/cr_action _menu.html"> 2 <link rel="import" href="chrome://resources/cr_elements/cr_action_menu/cr_action _menu.html">
3 <link rel="import" href="chrome://resources/cr_elements/cr_dialog/cr_dialog.html ">
4 <link rel="import" href="chrome://resources/cr_elements/shared_style_css.html">
5 <link rel="import" href="chrome://resources/polymer/v1_0/paper-button/paper-butt on.html">
3 <link rel="import" href="chrome://resources/polymer/v1_0/paper-icon-button/paper -icon-button-light.html"> 6 <link rel="import" href="chrome://resources/polymer/v1_0/paper-icon-button/paper -icon-button-light.html">
7 <link rel="import" href="chrome://resources/polymer/v1_0/paper-input/paper-input .html">
4 <link rel="import" href="chrome://resources/polymer/v1_0/paper-styles/shadow.htm l"> 8 <link rel="import" href="chrome://resources/polymer/v1_0/paper-styles/shadow.htm l">
5 <link rel="import" href="chrome://bookmarks/item.html"> 9 <link rel="import" href="chrome://bookmarks/item.html">
6 <link rel="import" href="chrome://bookmarks/shared_style.html"> 10 <link rel="import" href="chrome://bookmarks/shared_style.html">
7 11
8 <dom-module id="bookmarks-list"> 12 <dom-module id="bookmarks-list">
9 <template> 13 <template>
10 <style include="shared-style"> 14 <style include="shared-style cr-shared-style">
11 :host { 15 :host {
12 padding: 20px 32px; 16 padding: 20px 32px;
13 } 17 }
14 18
15 #bookmarks-card { 19 #bookmarksCard {
16 @apply(--shadow-elevation-2dp); 20 @apply(--shadow-elevation-2dp);
17 background-color: #fff; 21 background-color: #fff;
18 margin: 0 auto; 22 margin: 0 auto;
19 max-width: var(--card-max-width); 23 max-width: var(--card-max-width);
20 min-width: var(--card-min-width); 24 min-width: var(--card-min-width);
21 padding: 8px 0; 25 padding: 8px 0;
22 } 26 }
23 27
24 .centered-message { 28 .centered-message {
25 align-items: center; 29 align-items: center;
26 color: #6e6e6e; 30 color: #6e6e6e;
27 display: flex; 31 display: flex;
28 font-size: 14px; 32 font-size: 14px;
29 font-weight: 500; 33 font-weight: 500;
30 height: 100%; 34 height: 100%;
31 justify-content: center; 35 justify-content: center;
32 } 36 }
33 </style> 37 </style>
34 <dialog is="cr-action-menu" id="dropdown"> 38 <dialog is="cr-action-menu" id="dropdown">
35 <button class="dropdown-item" on-tap="onEditTap_"> 39 <button class="dropdown-item" on-tap="onEditTap_">
36 $i18n{menuEdit} 40 $i18n{menuEdit}
37 </button> 41 </button>
38 <button class="dropdown-item" on-tap="onCopyURLTap_"> 42 <button class="dropdown-item" on-tap="onCopyURLTap_">
39 $i18n{menuCopyURL} 43 $i18n{menuCopyURL}
40 </button> 44 </button>
41 <button class="dropdown-item" on-tap="onDeleteTap_"> 45 <button class="dropdown-item" on-tap="onDeleteTap_">
42 $i18n{menuDelete} 46 $i18n{menuDelete}
43 </button> 47 </button>
44 </dialog> 48 </dialog>
45 <div id="bookmarks-card" 49 <dialog is="cr-dialog" id="editBookmark">
46 hidden$="[[isListEmpty_(selectedNode.children.length)]]"> 50 <div class="title">$i18n{editBookmarkTitle}</div>
51 <div class="body">
52 <paper-input always-float-label id="name"
53 label="$i18n{editDialogNameInput}"
54 value="{{menuItem_.title}}">
55 </paper-input>
56 <paper-input always-float-label id="url"
57 label="$i18n{editDialogUrlInput}"
58 value="{{menuItem_.url}}">
59 </paper-input>
60 </div>
61 <div class="button-container">
62 <paper-button class="cancel-button" on-tap="onCancelEditTap_">
63 $i18n{cancelEdit}
64 </paper-button>
65 <paper-button class="action-button" on-tap="onSaveEditTap_">
66 $i18n{saveEdit}
67 </paper-button>
68 </div>
69 </dialog>
70 <div id="bookmarksCard">
71 <hidden$="[[isListEmpty_(selectedNode.children.length)]]">
47 <template is="dom-repeat" items="[[selectedNode.children]]" as="item"> 72 <template is="dom-repeat" items="[[selectedNode.children]]" as="item">
48 <bookmarks-item item="[[item]]"></bookmarks-item> 73 <bookmarks-item item="[[item]]"></bookmarks-item>
49 </template> 74 </template>
50 </div> 75 </div>
51 <div class="centered-message" 76 <div class="centered-message"
52 hidden$="[[!isListEmpty_(selectedNode.children.length)]]"> 77 hidden$="[[!isListEmpty_(selectedNode.children.length)]]">
53 $i18n{emptyList} 78 $i18n{emptyList}
54 </div> 79 </div>
55 </template> 80 </template>
56 <script src="chrome://bookmarks/list.js"></script> 81 <script src="chrome://bookmarks/list.js"></script>
57 </dom-module> 82 </dom-module>
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/resources/md_bookmarks/list.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698