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