Chromium Code Reviews| Index: chrome/browser/resources/md_history/history_toolbar.html |
| diff --git a/chrome/browser/resources/md_history/history_toolbar.html b/chrome/browser/resources/md_history/history_toolbar.html |
| index cd00916be0bc745434721e8393df491dae5546bf..32fda1f552f89df0a4afcf8b76d622f259b14fe1 100644 |
| --- a/chrome/browser/resources/md_history/history_toolbar.html |
| +++ b/chrome/browser/resources/md_history/history_toolbar.html |
| @@ -50,27 +50,74 @@ |
| width: 36px; |
| } |
| + #clear-browsing-data { |
| + flex: 1 1 960px; |
| + max-width: 960px; |
| + } |
| + |
| + paper-button { |
| + pointer-events: auto; |
| + } |
| + |
| + #button-container { |
| + @apply(--layout-horizontal); |
| + @apply(--layout-center); |
| + height: inherit; |
| + left: 0; |
| + pointer-events: none; |
| + position: absolute; |
| + top: 0; |
| + width: 100%; |
| + } |
| + |
| + #toolbar-container { |
| + @apply(--layout-horizontal); |
| + @apply(--layout-center); |
| + width: 100%; |
| + } |
| + |
| + #front-padding { |
| + flex: 1 1 0; |
| + min-width: 100px; |
| + } |
| + |
| + #back-padding { |
| + flex: 1 1 0; |
| + } |
| + |
| [hidden] { |
| display: none !important; |
| } |
| </style> |
| - <div id="main-content" hidden$="{{itemsSelected_}}"> |
| - <h1 i18n-content="title" id="title"></h1> |
| - <cr-search-field id="search-input" |
| - i18n-values="label:search;clear-label:clearSearch"></cr-search-field> |
| - </div> |
| + <div id="toolbar-container"> |
| + <div id="main-content" hidden$="{{itemsSelected_}}"> |
| + <h1 i18n-content="title" id="title"></h1> |
| + <cr-search-field id="search-input" |
| + i18n-values="label:search;clear-label:clearSearch"></cr-search-field> |
| + </div> |
| - <div id="items" hidden$="{{!itemsSelected_}}"> |
| - <paper-icon-button icon="clear" id="cancel-icon-button" |
| - on-tap="onClearSelectionTap_"></paper-icon-button> |
| - <div id="number-selected">{{numberOfItemsSelected_(count)}}</div> |
| - <paper-button id="cancel-button" on-tap="onClearSelectionTap_" |
| - i18n-content="cancel"></paper-button> |
| - <paper-button id="delete-button" i18n-content="delete" |
| - on-tap="onDeleteTap_"></paper-button> |
| + <div id="items" hidden$="{{!itemsSelected_}}"> |
| + <paper-icon-button icon="clear" id="cancel-icon-button" |
| + on-tap="onClearSelectionTap_"></paper-icon-button> |
| + <div id="number-selected">{{numberOfItemsSelected_(count)}}</div> |
| + <paper-button id="cancel-button" on-tap="onClearSelectionTap_" |
| + i18n-content="cancel"></paper-button> |
| + <paper-button id="delete-button" i18n-content="delete" |
| + on-tap="onDeleteTap_"></paper-button> |
| + </div> |
| </div> |
| + <div id="button-container"> |
| + <div id="front-padding"></div> |
| + <div id="clear-browsing-data" hidden$="{{itemsSelected_}}"> |
|
tsergeant
2016/02/09 03:17:52
Maybe rename this div to something more generic, i
yingran
2016/02/09 04:28:06
Done.
|
| + <paper-button on-tap="onClearBrowsingDataTap_" |
| + i18n-content="clearBrowsingData" |
| + id="clear-browsing-data-button"> |
| + </paper-button> |
| + </div> |
| + <div id="back-padding"></div> |
| + </div> |
| </template> |
| <script src="chrome://history/history_toolbar.js"></script> |
| </dom-module> |