| 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_dialog/cr_dialog.html
"> |
| 4 <link rel="import" href="chrome://resources/cr_elements/shared_style_css.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"> | 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"> | 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"> | 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"> | 8 <link rel="import" href="chrome://resources/polymer/v1_0/paper-styles/shadow.htm
l"> |
| 9 <link rel="import" href="chrome://bookmarks/item.html"> | 9 <link rel="import" href="chrome://bookmarks/item.html"> |
| 10 <link rel="import" href="chrome://bookmarks/shared_style.html"> | 10 <link rel="import" href="chrome://bookmarks/shared_style.html"> |
| (...skipping 19 matching lines...) Expand all Loading... |
| 30 color: #6e6e6e; | 30 color: #6e6e6e; |
| 31 display: flex; | 31 display: flex; |
| 32 font-size: 14px; | 32 font-size: 14px; |
| 33 font-weight: 500; | 33 font-weight: 500; |
| 34 height: 100%; | 34 height: 100%; |
| 35 justify-content: center; | 35 justify-content: center; |
| 36 } | 36 } |
| 37 </style> | 37 </style> |
| 38 <dialog is="cr-action-menu" id="dropdown"> | 38 <dialog is="cr-action-menu" id="dropdown"> |
| 39 <button class="dropdown-item" on-tap="onEditTap_"> | 39 <button class="dropdown-item" on-tap="onEditTap_"> |
| 40 $i18n{menuEdit} | 40 [[getEditActionLabel_(menuItem_)]] |
| 41 </button> | 41 </button> |
| 42 <button class="dropdown-item" on-tap="onCopyURLTap_"> | 42 <button class="dropdown-item" on-tap="onCopyURLTap_" |
| 43 hidden$="[[!menuItem_.url]]"> |
| 43 $i18n{menuCopyURL} | 44 $i18n{menuCopyURL} |
| 44 </button> | 45 </button> |
| 45 <button class="dropdown-item" on-tap="onDeleteTap_"> | 46 <button class="dropdown-item" on-tap="onDeleteTap_"> |
| 46 $i18n{menuDelete} | 47 $i18n{menuDelete} |
| 47 </button> | 48 </button> |
| 48 </dialog> | 49 </dialog> |
| 49 <dialog is="cr-dialog" id="editBookmark"> | 50 <dialog is="cr-dialog" id="editBookmark"> |
| 50 <div class="title">$i18n{editBookmarkTitle}</div> | 51 <div class="title">[[getEditorTitle_(menuItem_)]]</div> |
| 51 <div class="body"> | 52 <div class="body"> |
| 52 <paper-input always-float-label id="name" | 53 <paper-input always-float-label id="name" |
| 53 label="$i18n{editDialogNameInput}" | 54 label="$i18n{editDialogNameInput}" |
| 54 value="{{menuItem_.title}}"> | 55 value="{{menuItem_.title}}"> |
| 55 </paper-input> | 56 </paper-input> |
| 56 <paper-input always-float-label id="url" | 57 <paper-input always-float-label id="url" |
| 57 label="$i18n{editDialogUrlInput}" | 58 label="$i18n{editDialogUrlInput}" |
| 58 value="{{menuItem_.url}}"> | 59 value="{{menuItem_.url}}" |
| 60 hidden$="[[!menuItem_.url]]"> |
| 59 </paper-input> | 61 </paper-input> |
| 60 </div> | 62 </div> |
| 61 <div class="button-container"> | 63 <div class="button-container"> |
| 62 <paper-button class="cancel-button" on-tap="onCancelEditTap_"> | 64 <paper-button class="cancel-button" on-tap="onCancelEditTap_"> |
| 63 $i18n{cancelEdit} | 65 $i18n{cancelEdit} |
| 64 </paper-button> | 66 </paper-button> |
| 65 <paper-button class="action-button" on-tap="onSaveEditTap_"> | 67 <paper-button class="action-button" on-tap="onSaveEditTap_" |
| 68 id='saveButton'> |
| 66 $i18n{saveEdit} | 69 $i18n{saveEdit} |
| 67 </paper-button> | 70 </paper-button> |
| 68 </div> | 71 </div> |
| 69 </dialog> | 72 </dialog> |
| 70 <div id="bookmarksCard" hidden$="[[isEmptyList_(displayedList.length)]]"> | 73 <div id="bookmarksCard" hidden$="[[isEmptyList_(displayedList.length)]]"> |
| 71 <template is="dom-repeat" items="[[displayedList]]" as="item"> | 74 <template is="dom-repeat" items="[[displayedList]]" as="item"> |
| 72 <bookmarks-item item="[[item]]"></bookmarks-item> | 75 <bookmarks-item item="[[item]]"></bookmarks-item> |
| 73 </template> | 76 </template> |
| 74 </div> | 77 </div> |
| 75 <div class="centered-message" | 78 <div class="centered-message" |
| 76 hidden$="[[!isEmptyList_(displayedList.length)]]"> | 79 hidden$="[[!isEmptyList_(displayedList.length)]]"> |
| 77 [[emptyListMessage_(searchTerm)]] | 80 [[emptyListMessage_(searchTerm)]] |
| 78 </div> | 81 </div> |
| 79 </template> | 82 </template> |
| 80 <script src="chrome://bookmarks/list.js"></script> | 83 <script src="chrome://bookmarks/list.js"></script> |
| 81 </dom-module> | 84 </dom-module> |
| OLD | NEW |