| 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/html/web_ui_listener_behavior.html"> | 2 <link rel="import" href="chrome://resources/html/web_ui_listener_behavior.html"> |
| 3 <link rel="import" href="chrome://resources/polymer/v1_0/iron-flex-layout/iron-f
lex-layout-classes.html"> | 3 <link rel="import" href="chrome://resources/polymer/v1_0/iron-flex-layout/iron-f
lex-layout-classes.html"> |
| 4 <link rel="import" href="/icons.html"> | 4 <link rel="import" href="/icons.html"> |
| 5 <link rel="import" href="/settings_page/settings_subpage_search.html"> |
| 5 <link rel="import" href="/settings_shared_css.html"> | 6 <link rel="import" href="/settings_shared_css.html"> |
| 6 <link rel="import" href="/site_settings/site_data_details_dialog.html"> | 7 <link rel="import" href="/site_settings/site_data_details_dialog.html"> |
| 7 <link rel="import" href="/site_settings/site_settings_behavior.html"> | 8 <link rel="import" href="/site_settings/site_settings_behavior.html"> |
| 8 | 9 |
| 9 <dom-module id="site-data"> | 10 <dom-module id="site-data"> |
| 10 <template> | 11 <template> |
| 11 <style include="settings-shared"> | 12 <style include="settings-shared"> |
| 12 :host { | 13 :host { |
| 13 display: block; | 14 display: block; |
| 14 margin-top: 18px; | 15 margin-top: 18px; |
| 15 width: 100%; | 16 width: 100%; |
| 16 } | 17 } |
| 17 | 18 |
| 18 .list-frame { | 19 .list-frame { |
| 19 -webkit-margin-end: -29px; | 20 -webkit-margin-end: -29px; |
| 20 -webkit-padding-start: 36px; | 21 -webkit-padding-start: 36px; |
| 21 margin-top: 10px; | 22 margin-top: 10px; |
| 22 } | 23 } |
| 23 | 24 |
| 24 .site-header { | 25 .site-header { |
| 25 margin-top: 10px; | 26 margin-top: 10px; |
| 26 } | 27 } |
| 27 | 28 |
| 28 .site { | 29 .site { |
| 29 margin-top: 7px; | 30 margin-top: 7px; |
| 30 } | 31 } |
| 32 |
| 33 #filter { |
| 34 margin-top: -4px; |
| 35 } |
| 31 </style> | 36 </style> |
| 32 <div class="layout horizontal"> | 37 <div class="layout horizontal"> |
| 33 <div class="flex site-header">$i18n{siteSettingsCookieHeader}</div> | 38 <div class="flex site-header">$i18n{siteSettingsCookieHeader}</div> |
| 34 <div class="secondary-action" hidden$="[[!removeAllIsVisible_(sites)]]"> | 39 <div class="secondary-action" hidden$="[[!removeAllIsVisible_(sites)]]"> |
| 35 <paper-button on-tap="onDeleteAllSites_" class="secondary-button"> | 40 <paper-button on-tap="onDeleteMultipleSites_" class="secondary-button"> |
| 36 $i18n{siteSettingsCookieRemoveAll} | 41 [[computeRemoveLabel_(filterString_)]] |
| 37 </paper-button> | 42 </paper-button> |
| 38 </div> | 43 </div> |
| 44 <settings-subpage-search id="filter" on-search-changed="onSearchChanged_" |
| 45 label="$i18n{siteSettingsCookieSearch}"> |
| 46 </settings-subpage-search> |
| 39 </div> | 47 </div> |
| 40 | 48 |
| 41 <div class="list-frame vertical-list"> | 49 <div class="list-frame vertical-list"> |
| 42 <template is="dom-repeat" items="[[sites]]"> | 50 <template is="dom-repeat" id="list" items="[[sites]]" filter="showItem_"> |
| 43 <div class="list-item layout horizontal"> | 51 <div class="list-item layout horizontal"> |
| 44 <div class="layout horizontal flex" on-tap="onSiteTap_" actionable> | 52 <div class="layout horizontal flex" on-tap="onSiteTap_" actionable> |
| 45 <div class="favicon-image site" | 53 <div class="favicon-image site" |
| 46 style$="[[computeSiteIcon(item.site)]]"> | 54 style$="[[computeSiteIcon(item.site)]]"> |
| 47 </div> | 55 </div> |
| 48 <div class="flex middle">[[item.site]]</div> | 56 <div class="flex middle">[[item.site]]</div> |
| 49 <div class="site">[[item.localData]]</div> | 57 <div class="site">[[item.localData]]</div> |
| 50 </div> | 58 </div> |
| 51 <div> | 59 <paper-icon-button on-tap="onDeleteSite_" |
| 52 <paper-icon-button on-tap="onDeleteSite_" | 60 icon="settings:delete"></paper-icon-button> |
| 53 icon="settings:delete"></paper-icon-button> | |
| 54 </div> | |
| 55 </div> | 61 </div> |
| 56 </template> | 62 </template> |
| 57 </div> | 63 </div> |
| 58 | 64 |
| 59 </template> | 65 </template> |
| 60 <script src="cookie_info.js"></script> | 66 <script src="cookie_info.js"></script> |
| 61 <script src="cookie_tree_node.js"></script> | 67 <script src="cookie_tree_node.js"></script> |
| 62 <script src="site_data.js"></script> | 68 <script src="site_data.js"></script> |
| 63 </dom-module> | 69 </dom-module> |
| OLD | NEW |