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/polymer/v1_0/iron-flex-layout/iron-f lex-layout.html"> | 2 <link rel="import" href="chrome://resources/polymer/v1_0/iron-flex-layout/iron-f lex-layout.html"> |
| 3 <link rel="import" href="chrome://resources/polymer/v1_0/paper-button/paper-butt on.html"> | 3 <link rel="import" href="chrome://resources/polymer/v1_0/paper-button/paper-butt on.html"> |
| 4 <link rel="import" href="chrome://resources/polymer/v1_0/paper-icon-button/paper -icon-button.html"> | 4 <link rel="import" href="chrome://resources/polymer/v1_0/paper-icon-button/paper -icon-button.html"> |
| 5 <link rel="import" href="/icons.html"> | 5 <link rel="import" href="/icons.html"> |
| 6 <link rel="import" href="/settings_shared_css.html"> | 6 <link rel="import" href="/settings_shared_css.html"> |
| 7 <link rel="import" href="/site_settings/constants.html"> | 7 <link rel="import" href="/site_settings/constants.html"> |
| 8 <link rel="import" href="/site_settings/site_details_permission.html"> | 8 <link rel="import" href="/site_settings/site_details_permission.html"> |
| 9 <link rel="import" href="/site_settings/site_settings_behavior.html"> | 9 <link rel="import" href="/site_settings/site_settings_behavior.html"> |
| 10 <link rel="import" href="/site_settings/website_usage_private_api.html"> | 10 <link rel="import" href="/site_settings/website_usage_private_api.html"> |
| 11 | 11 |
| 12 <dom-module id="site-details"> | 12 <dom-module id="site-details"> |
| 13 <template> | 13 <template> |
| 14 <style include="settings-shared"> | 14 <style include="settings-shared"> |
| 15 :host { | |
| 16 -webkit-margin-start: 4px; | |
| 17 display: block; | |
| 18 } | |
| 19 | |
| 20 .origin-box { | |
| 21 margin-bottom: 20px; | |
| 22 } | |
| 23 | |
| 24 .origin { | |
| 25 -webkit-margin-start: 10px; | |
| 26 font-weight: 500; | |
| 27 } | |
| 28 | |
| 29 .reset-button { | |
| 30 -webkit-margin-start: 15px; | |
| 31 } | |
| 32 | |
| 33 #storage { | 15 #storage { |
| 34 -webkit-padding-end: 0; | 16 -webkit-padding-end: 0; |
| 35 } | 17 } |
| 36 | |
| 37 .website-icon { | |
| 38 background-repeat: no-repeat; | |
| 39 background-size: contain; | |
| 40 height: 16px; | |
| 41 width: 16px; | |
| 42 } | |
| 43 </style> | 18 </style> |
| 44 <div class="settings-box block"> | 19 <!-- TODO(dschuyler): change this to a dom-if. --> |
|
tommycli
2016/08/04 01:41:02
Why not do it now? Or you could just leave it hidd
dschuyler
2016/08/04 20:03:52
Done.
| |
| 45 <div class="horizontal layout origin-box"> | 20 <div id="usage" hidden$="[[!storedData_]]"> |
| 46 <div class="website-icon" | 21 <div class="settings-box first"> |
| 47 style$="[[computeSiteIcon(site.originForDisplay)]]"></div> | 22 <h2>$i18n{siteSettingsUsage}</h2> |
| 48 <div class="origin flex">[[site.originForDisplay]]</div> | |
| 49 </div> | 23 </div> |
| 50 <h2 id="usage" hidden$="[[!storedData_]]">$i18n{siteSettingsUsage}</h2> | 24 <div class="list-frame"> |
| 51 <paper-item id="storage" hidden$="[[!storedData_]]"> | 25 <paper-item id="storage" hidden$="[[!storedData_]]"> |
| 52 <div class="flex">[[storedData_]]</div> | 26 <div class="flex">[[storedData_]]</div> |
| 53 <paper-icon-button icon="settings:delete" | 27 <paper-icon-button icon="settings:delete" |
| 54 on-tap="onClearStorage_" | 28 on-tap="onClearStorage_" |
| 55 alt="$i18n{siteSettingsDelete}"></paper-icon-button> | 29 alt="$i18n{siteSettingsDelete}"></paper-icon-button> |
| 56 </paper-item> | 30 </paper-item> |
| 31 </div> | |
| 32 </div> | |
| 33 <div class="settings-box"> | |
| 57 <h2>$i18n{siteSettingsPermissions}</h2> | 34 <h2>$i18n{siteSettingsPermissions}</h2> |
| 58 | 35 </div> |
| 36 <div class="list-frame"> | |
| 59 <site-details-permission site="[[site]]" id="cookies" | 37 <site-details-permission site="[[site]]" id="cookies" |
| 60 category="{{ContentSettingsTypes.COOKIES}}"> | 38 category="{{ContentSettingsTypes.COOKIES}}"> |
| 61 </site-details-permission> | 39 </site-details-permission> |
| 62 <site-details-permission site="[[site]]" id="geolocation" | 40 <site-details-permission site="[[site]]" id="geolocation" |
| 63 category="{{ContentSettingsTypes.GEOLOCATION}}"> | 41 category="{{ContentSettingsTypes.GEOLOCATION}}"> |
| 64 </site-details-permission> | 42 </site-details-permission> |
| 65 <site-details-permission site="[[site]]" id="camera" | 43 <site-details-permission site="[[site]]" id="camera" |
| 66 category="{{ContentSettingsTypes.CAMERA}}"> | 44 category="{{ContentSettingsTypes.CAMERA}}"> |
| 67 </site-details-permission> | 45 </site-details-permission> |
| 68 <site-details-permission site="[[site]]" id="mic" | 46 <site-details-permission site="[[site]]" id="mic" |
| (...skipping 20 matching lines...) Expand all Loading... | |
| 89 <site-details-permission site="[[site]]" id="automaticDownloads" | 67 <site-details-permission site="[[site]]" id="automaticDownloads" |
| 90 category="{{ContentSettingsTypes.AUTOMATIC_DOWNLOADS}}"> | 68 category="{{ContentSettingsTypes.AUTOMATIC_DOWNLOADS}}"> |
| 91 </site-details-permission> | 69 </site-details-permission> |
| 92 <site-details-permission site="[[site]]" id="unsandboxedPlugins" | 70 <site-details-permission site="[[site]]" id="unsandboxedPlugins" |
| 93 category="{{ContentSettingsTypes.UNSANDBOXED_PLUGINS}}"> | 71 category="{{ContentSettingsTypes.UNSANDBOXED_PLUGINS}}"> |
| 94 </site-details-permission> | 72 </site-details-permission> |
| 95 <site-details-permission site="[[site]]" id="fullscreen" | 73 <site-details-permission site="[[site]]" id="fullscreen" |
| 96 category="{{ContentSettingsTypes.FULLSCREEN}}"> | 74 category="{{ContentSettingsTypes.FULLSCREEN}}"> |
| 97 </site-details-permission> | 75 </site-details-permission> |
| 98 | 76 |
| 99 <paper-button on-tap="onClearAndReset_" raised class="reset-button"> | 77 <div on-tap="onClearAndReset_" raised class="list-item list-button"> |
| 100 $i18n{siteSettingsClearAndReset} | 78 $i18n{siteSettingsClearAndReset} |
| 101 </paper-button> | 79 </div> |
| 102 </div> | 80 </div> |
| 103 <website-usage-private-api id="usageApi" | 81 <website-usage-private-api id="usageApi" |
| 104 website-data-usage="{{storedData_}}" | 82 website-data-usage="{{storedData_}}" |
| 105 website-storage-type="{{storageType_}}"> | 83 website-storage-type="{{storageType_}}"> |
| 106 </website-usage-private-api> | 84 </website-usage-private-api> |
| 107 </template> | 85 </template> |
| 108 <script src="site_details.js"></script> | 86 <script src="site_details.js"></script> |
| 109 </dom-module> | 87 </dom-module> |
| OLD | NEW |