Chromium Code Reviews| Index: chrome/browser/resources/md_bookmarks/toolbar.html |
| diff --git a/chrome/browser/resources/md_bookmarks/toolbar.html b/chrome/browser/resources/md_bookmarks/toolbar.html |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..40683742905bdcb0d0cfb3c6f04483294a9e8f41 |
| --- /dev/null |
| +++ b/chrome/browser/resources/md_bookmarks/toolbar.html |
| @@ -0,0 +1,64 @@ |
| +<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_toolbar/cr_toolbar.html"> |
| +<link rel="import" href="chrome://resources/polymer/v1_0/paper-icon-button/paper-icon-button-light.html"> |
| +<link rel="import" href="chrome://bookmarks/shared_style.html"> |
| +<link rel="stylesheet" href="chrome://resources/css/md_colors.css"> |
| + |
| +<dom-module id="bookmarks-toolbar"> |
| + <template> |
| + <style include="shared-style"> |
| + button.more-actions { |
| + -webkit-margin-end: 4px; |
|
tsergeant
2016/12/28 23:51:50
Oops, I made a couple of mistakes in my last revie
angelayang
2016/12/29 02:53:34
Done.
|
| + } |
| + |
| + button.more-vert-button div { |
| + border-color: white; |
| + } |
| + |
| + cr-toolbar { |
|
tsergeant
2016/12/28 23:51:50
and add back in the line
--cr-toolbar-field-margi
angelayang
2016/12/29 02:53:34
Done.
|
| + background: var(--md-toolbar-color); |
| + } |
| + |
| + :host-context([dir=rtl]) cr-toolbar { |
|
tsergeant
2016/12/28 23:51:50
You can delete this block as well.
angelayang
2016/12/29 02:53:34
Done.
|
| + --cr-toolbar-right-content-wide: { |
| + position: absolute; |
| + left: 0; |
| + }; |
| + } |
| + </style> |
| + <dialog is="cr-action-menu" id="dropdown"> |
| + <button class="dropdown-item" on-tap="onBulkEditTap_"> |
| + $i18n{menuBulkEdit} |
| + </button> |
| + <button class="dropdown-item" on-tap="onSortTap_"> |
| + $i18n{menuSort} |
| + </button> |
| + <hr> |
| + <button class="dropdown-item" on-tap="onAddBookmarkTap_"> |
| + $i18n{menuAddBookmark} |
| + </button> |
| + <button class="dropdown-item" on-tap="onAddFolderTap_"> |
| + $i18n{menuAddFolder} |
| + </button> |
| + <hr> |
| + <button class="dropdown-item" on-tap="onImportTap_"> |
| + $i18n{menuImport} |
| + </button> |
| + <button class="dropdown-item" on-tap="onExportTap_"> |
| + $i18n{menuExport} |
| + </button> |
| + </dialog> |
| + <cr-toolbar page-name="$i18n{title}" |
| + clear-label="$i18n{clearSearch}" |
| + search-prompt="$i18n{searchPrompt}"> |
| + <button is="paper-icon-button-light" class="more-actions more-vert-button" |
| + on-tap="onMenuButtonOpenTap_"> |
| + <div></div> |
| + <div></div> |
| + <div></div> |
| + </button> |
| + </cr-toolbar> |
| + </template> |
| + <script src="chrome://bookmarks/toolbar.js"></script> |
| +</dom-module> |