Chromium Code Reviews| 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 "> | |
| 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 |
|
jiaxi
2017/01/06 06:03:53
According to Tim's comment: `the cr-dialog and ac
tsergeant
2017/01/09 00:21:04
What you've got now looks right to me.
| |
| 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 </style> | 27 </style> |
| 24 <dialog is="cr-action-menu" id="dropdown"> | 28 <dialog is="cr-action-menu" id="dropdown"> |
| 25 <button class="dropdown-item" on-tap="onEditTap_"> | 29 <button class="dropdown-item" on-tap="onEditTap_"> |
| 26 $i18n{menuEdit} | 30 $i18n{menuEdit} |
| 27 </button> | 31 </button> |
| 28 <button class="dropdown-item" on-tap="onCopyURLTap_"> | 32 <button class="dropdown-item" on-tap="onCopyURLTap_"> |
| 29 $i18n{menuCopyURL} | 33 $i18n{menuCopyURL} |
| 30 </button> | 34 </button> |
| 31 <button class="dropdown-item" on-tap="onDeleteTap_"> | 35 <button class="dropdown-item" on-tap="onDeleteTap_"> |
| 32 $i18n{menuDelete} | 36 $i18n{menuDelete} |
| 33 </button> | 37 </button> |
| 34 </dialog> | 38 </dialog> |
| 35 <div id="bookmarks-card"> | 39 <dialog is="cr-dialog" id="editBookmark"> |
| 40 <div class="title">$i18n{editBookmarkTitle}</div> | |
| 41 <div class="body"> | |
| 42 <paper-input always-float-label id="name" | |
| 43 label="$i18n{editDialogNameInput}" | |
| 44 value="{{menuItem_.title}}"> | |
| 45 </paper-input> | |
| 46 <paper-input always-float-label id="url" | |
| 47 label="$i18n{editDialogUrlInput}" | |
| 48 value="{{menuItem_.url}}"> | |
| 49 </paper-input> | |
| 50 </div> | |
| 51 <div class="button-container"> | |
| 52 <paper-button class="cancel-button" on-tap="onCancelEditTap_"> | |
| 53 $i18n{cancelEdit} | |
| 54 </paper-button> | |
| 55 <paper-button class="action-button" on-tap="onSaveEditTap_"> | |
| 56 $i18n{saveEdit} | |
| 57 </paper-button> | |
| 58 </div> | |
| 59 </dialog> | |
| 60 <div id="bookmarksCard"> | |
| 36 <!-- TODO(angelayang): handle empty folders --> | 61 <!-- TODO(angelayang): handle empty folders --> |
| 37 <template is="dom-repeat" items="[[selectedNode.children]]" as="item"> | 62 <template is="dom-repeat" items="[[selectedNode.children]]" as="item"> |
| 38 <bookmarks-item item="[[item]]"></bookmarks-item> | 63 <bookmarks-item item="[[item]]"></bookmarks-item> |
| 39 </template> | 64 </template> |
| 40 </div> | 65 </div> |
| 41 </template> | 66 </template> |
| 42 <script src="chrome://bookmarks/list.js"></script> | 67 <script src="chrome://bookmarks/list.js"></script> |
| 43 </dom-module> | 68 </dom-module> |
| OLD | NEW |