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_lazy_render/cr_lazy_r ender.html"> | 2 <link rel="import" href="chrome://resources/cr_elements/cr_lazy_render/cr_lazy_r ender.html"> |
| 3 <link rel="import" href="chrome://resources/cr_elements/shared_style_css.html"> | 3 <link rel="import" href="chrome://resources/cr_elements/shared_style_css.html"> |
| 4 <link rel="import" href="chrome://resources/cr_elements/cr_action_menu/cr_action _menu.html"> | |
|
tsergeant
2016/12/21 00:39:36
This should be lazy loaded, which means that the i
dpapad
2016/12/21 01:04:48
Done. Thanks for the explanation, I was wondering
| |
| 4 <link rel="import" href="chrome://resources/polymer/v1_0/iron-a11y-announcer/iro n-a11y-announcer.html"> | 5 <link rel="import" href="chrome://resources/polymer/v1_0/iron-a11y-announcer/iro n-a11y-announcer.html"> |
| 5 <link rel="import" href="chrome://resources/polymer/v1_0/iron-pages/iron-pages.h tml"> | 6 <link rel="import" href="chrome://resources/polymer/v1_0/iron-pages/iron-pages.h tml"> |
| 6 <link rel="import" href="chrome://history/browser_service.html"> | 7 <link rel="import" href="chrome://history/browser_service.html"> |
| 7 <link rel="import" href="chrome://history/history_list.html"> | 8 <link rel="import" href="chrome://history/history_list.html"> |
| 8 <link rel="import" href="chrome://history/shared_style.html"> | 9 <link rel="import" href="chrome://history/shared_style.html"> |
| 9 | 10 |
| 10 <!-- Lazy loaded: cr-dialog, cr-shared-menu, history-grouped-list, paper-button, | 11 <!-- Lazy loaded: cr-dialog, cr-action-menu, history-grouped-list, paper-button, |
| 11 paper-item. --> | 12 paper-item. --> |
| 12 | 13 |
| 13 <dom-module id="history-list-container"> | 14 <dom-module id="history-list-container"> |
| 14 <template> | 15 <template> |
| 15 <style include="shared-style cr-shared-style"> | 16 <style include="shared-style cr-shared-style"> |
| 16 :host { | 17 :host { |
| 17 display: block; | 18 display: block; |
| 18 height: 100%; | 19 height: 100%; |
| 19 overflow: hidden; | 20 overflow: hidden; |
| 20 } | 21 } |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 55 $i18n{cancel} | 56 $i18n{cancel} |
| 56 </paper-button> | 57 </paper-button> |
| 57 <paper-button class="action-button" on-tap="onDialogConfirmTap_"> | 58 <paper-button class="action-button" on-tap="onDialogConfirmTap_"> |
| 58 $i18n{deleteConfirm} | 59 $i18n{deleteConfirm} |
| 59 </paper-button> | 60 </paper-button> |
| 60 </div> | 61 </div> |
| 61 </dialog> | 62 </dialog> |
| 62 </template> | 63 </template> |
| 63 | 64 |
| 64 <template is="cr-lazy-render" id="sharedMenu"> | 65 <template is="cr-lazy-render" id="sharedMenu"> |
| 65 <cr-shared-menu> | 66 <dialog is="cr-action-menu"> |
| 66 <paper-item id="menuMoreButton" class="menu-item" | 67 <button id="menuMoreButton" class="dropdown-item" |
| 67 on-tap="onMoreFromSiteTap_"> | 68 on-tap="onMoreFromSiteTap_"> |
| 68 $i18n{moreFromSite} | 69 $i18n{moreFromSite} |
| 69 </paper-item> | 70 </button> |
| 70 <paper-item id="menuRemoveButton" class="menu-item" | 71 <button id="menuRemoveButton" class="dropdown-item" |
| 71 disabled="[[!canDeleteHistory_()]]" | 72 disabled="[[!canDeleteHistory_()]]" |
| 72 on-tap="onRemoveFromHistoryTap_"> | 73 on-tap="onRemoveFromHistoryTap_"> |
| 73 $i18n{removeFromHistory} | 74 $i18n{removeFromHistory} |
| 74 </paper-item> | 75 </button> |
| 75 </cr-shared-menu> | 76 </dialog> |
| 76 </template> | 77 </template> |
| 77 </template> | 78 </template> |
| 78 <script src="chrome://history/list_container.js"></script> | 79 <script src="chrome://history/list_container.js"></script> |
| 79 </dom-module> | 80 </dom-module> |
| OLD | NEW |