OLD | NEW |
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
"> | 3 <link rel="import" href="chrome://resources/cr_elements/cr_lazy_render/cr_lazy_r
ender.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"> | |
6 <link rel="import" href="chrome://resources/polymer/v1_0/paper-icon-button/paper
-icon-button-light.html"> | 4 <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"> | |
8 <link rel="import" href="chrome://resources/polymer/v1_0/paper-styles/shadow.htm
l"> | 5 <link rel="import" href="chrome://resources/polymer/v1_0/paper-styles/shadow.htm
l"> |
| 6 <link rel="import" href="chrome://bookmarks/edit_dialog.html"> |
9 <link rel="import" href="chrome://bookmarks/item.html"> | 7 <link rel="import" href="chrome://bookmarks/item.html"> |
10 <link rel="import" href="chrome://bookmarks/shared_style.html"> | 8 <link rel="import" href="chrome://bookmarks/shared_style.html"> |
11 <link rel="import" href="chrome://bookmarks/store_client.html"> | 9 <link rel="import" href="chrome://bookmarks/store_client.html"> |
12 <link rel="import" href="chrome://bookmarks/util.html"> | 10 <link rel="import" href="chrome://bookmarks/util.html"> |
13 | 11 |
14 <dom-module id="bookmarks-list"> | 12 <dom-module id="bookmarks-list"> |
15 <template> | 13 <template> |
16 <style include="shared-style cr-shared-style"> | 14 <style include="shared-style"> |
17 :host { | 15 :host { |
18 overflow-y: auto; | 16 overflow-y: auto; |
19 padding: 20px 32px 20px calc(32px - var(--splitter-width)); | 17 padding: 20px 32px 20px calc(32px - var(--splitter-width)); |
20 } | 18 } |
21 | 19 |
22 #bookmarksCard { | 20 #bookmarksCard { |
23 @apply(--shadow-elevation-2dp); | 21 @apply(--shadow-elevation-2dp); |
24 background-color: #fff; | 22 background-color: #fff; |
25 margin: 0 auto; | 23 margin: 0 auto; |
26 max-width: var(--card-max-width); | 24 max-width: var(--card-max-width); |
(...skipping 15 matching lines...) Expand all Loading... |
42 [[getEditActionLabel_(menuItem_)]] | 40 [[getEditActionLabel_(menuItem_)]] |
43 </button> | 41 </button> |
44 <button class="dropdown-item" on-tap="onCopyURLTap_" | 42 <button class="dropdown-item" on-tap="onCopyURLTap_" |
45 hidden$="[[!menuItem_.url]]"> | 43 hidden$="[[!menuItem_.url]]"> |
46 $i18n{menuCopyURL} | 44 $i18n{menuCopyURL} |
47 </button> | 45 </button> |
48 <button class="dropdown-item" on-tap="onDeleteTap_"> | 46 <button class="dropdown-item" on-tap="onDeleteTap_"> |
49 $i18n{menuDelete} | 47 $i18n{menuDelete} |
50 </button> | 48 </button> |
51 </dialog> | 49 </dialog> |
52 <dialog is="cr-dialog" id="editBookmark"> | |
53 <div class="title">[[getEditorTitle_(menuItem_)]]</div> | |
54 <div class="body"> | |
55 <paper-input always-float-label id="name" | |
56 label="$i18n{editDialogNameInput}" | |
57 value="{{menuItem_.title}}"> | |
58 </paper-input> | |
59 <paper-input always-float-label id="url" | |
60 label="$i18n{editDialogUrlInput}" | |
61 value="{{menuItem_.url}}" | |
62 hidden$="[[!menuItem_.url]]"> | |
63 </paper-input> | |
64 </div> | |
65 <div class="button-container"> | |
66 <paper-button class="cancel-button" on-tap="onCancelEditTap_"> | |
67 $i18n{cancelEdit} | |
68 </paper-button> | |
69 <paper-button class="action-button" on-tap="onSaveEditTap_" | |
70 id='saveButton'> | |
71 $i18n{saveEdit} | |
72 </paper-button> | |
73 </div> | |
74 </dialog> | |
75 <div id="bookmarksCard" hidden$="[[isEmptyList_(displayedList_.length)]]"> | 50 <div id="bookmarksCard" hidden$="[[isEmptyList_(displayedList_.length)]]"> |
76 <template is="dom-repeat" items="[[displayedList_]]" as="id"> | 51 <template is="dom-repeat" items="[[displayedList_]]" as="id"> |
77 <bookmarks-item item-id="[[id]]"> | 52 <bookmarks-item item-id="[[id]]"> |
78 </bookmarks-item> | 53 </bookmarks-item> |
79 </template> | 54 </template> |
80 </div> | 55 </div> |
81 <div class="centered-message" | 56 <div class="centered-message" |
82 hidden$="[[!isEmptyList_(displayedList_.length)]]"> | 57 hidden$="[[!isEmptyList_(displayedList_.length)]]"> |
83 [[emptyListMessage_(searchTerm_)]] | 58 [[emptyListMessage_(searchTerm_)]] |
84 </div> | 59 </div> |
| 60 <template is="cr-lazy-render" id="editDialog"> |
| 61 <bookmarks-edit-dialog></bookmarks-edit-dialog> |
| 62 </template> |
85 </template> | 63 </template> |
86 <script src="chrome://bookmarks/list.js"></script> | 64 <script src="chrome://bookmarks/list.js"></script> |
87 </dom-module> | 65 </dom-module> |
OLD | NEW |