Chromium Code Reviews| 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 |
| index 9098d7cb553719e6f22c8bcddbe3a98f8ed1fd26..037004071c35aa4ccf4c123eb992ebc0fd9f39a6 100644 |
| --- a/chrome/browser/resources/md_bookmarks/list.html |
| +++ b/chrome/browser/resources/md_bookmarks/list.html |
| @@ -1,18 +1,22 @@ |
| <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/cr_elements/cr_dialog/cr_dialog.html"> |
| +<link rel="import" href="chrome://resources/cr_elements/shared_style_css.html"> |
| +<link rel="import" href="chrome://resources/polymer/v1_0/paper-button/paper-button.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-input/paper-input.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"> |
| + <style include="shared-style cr-shared-style"> |
| :host { |
| padding: 20px 32px; |
| } |
| - #bookmarks-card { |
| + #bookmarksCard { |
|
calamity
2017/01/09 03:19:11
Why did this change?
jiaxi
2017/01/09 03:23:13
Hi Chris, how's the holiday?
Style guide is to u
tsergeant
2017/01/09 03:27:33
Style guide actually says to use either, but I thi
|
| @apply(--shadow-elevation-2dp); |
| background-color: #fff; |
| margin: 0 auto; |
| @@ -32,7 +36,28 @@ |
| $i18n{menuDelete} |
| </button> |
| </dialog> |
| - <div id="bookmarks-card"> |
| + <dialog is="cr-dialog" id="editBookmark"> |
| + <div class="title">$i18n{editBookmarkTitle}</div> |
| + <div class="body"> |
| + <paper-input always-float-label id="name" |
| + label="$i18n{editDialogNameInput}" |
| + value="{{menuItem_.title}}"> |
| + </paper-input> |
| + <paper-input always-float-label id="url" |
| + label="$i18n{editDialogUrlInput}" |
| + value="{{menuItem_.url}}"> |
| + </paper-input> |
| + </div> |
| + <div class="button-container"> |
| + <paper-button class="cancel-button" on-tap="onCancelEditTap_"> |
| + $i18n{cancelEdit} |
| + </paper-button> |
| + <paper-button class="action-button" on-tap="onSaveEditTap_"> |
| + $i18n{saveEdit} |
| + </paper-button> |
| + </div> |
| + </dialog> |
| + <div id="bookmarksCard"> |
| <!-- TODO(angelayang): handle empty folders --> |
| <template is="dom-repeat" items="[[selectedNode.children]]" as="item"> |
| <bookmarks-item item="[[item]]"></bookmarks-item> |