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"> | 2 <link rel="import" href="chrome://resources/cr_elements/icons.html"> |
3 <link rel="import" href="chrome://resources/polymer/v1_0/paper-icon-button/paper
-icon-button.html"> | 3 <link rel="import" href="chrome://resources/polymer/v1_0/paper-icon-button/paper
-icon-button.html"> |
4 <link rel="import" href="chrome://resources/html/web_ui_listener_behavior.html"> | 4 <link rel="import" href="chrome://resources/html/web_ui_listener_behavior.html"> |
5 <link rel="import" href="../i18n_setup.html"> | 5 <link rel="import" href="../i18n_setup.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_behavior.html"> | 7 <link rel="import" href="site_settings_behavior.html"> |
8 <link rel="import" href="site_settings_prefs_browser_proxy.html"> | 8 <link rel="import" href="site_settings_prefs_browser_proxy.html"> |
9 | 9 |
10 <dom-module id="zoom-levels"> | 10 <dom-module id="zoom-levels"> |
11 <template> | 11 <template> |
12 <style include="settings-shared"> | 12 <style include="settings-shared"> |
13 :host { | 13 :host { |
14 display: block; | 14 display: block; |
15 } | 15 } |
16 | 16 |
17 .zoom-label { | 17 .zoom-label { |
18 -webkit-margin-end: 16px; | 18 -webkit-margin-end: 16px; |
19 color: var(--paper-grey-600); | 19 color: var(--paper-grey-600); |
20 } | 20 } |
21 | 21 |
22 .empty-message { | 22 #empty { |
23 margin-top: 15px; | 23 margin-top: 15px; |
24 } | 24 } |
25 </style> | 25 </style> |
26 <div class="list-frame vertical-list" id="listContainer"> | 26 <div class="list-frame vertical-list" id="listContainer"> |
27 <template is="dom-repeat" items="[[sites_]]" id="list" | 27 <template is="dom-repeat" items="[[sites_]]" id="list"> |
28 rendered-item-count="{{renderedCount}}"> | |
29 <div class="list-item"> | 28 <div class="list-item"> |
30 <div class="favicon-image" | 29 <div class="favicon-image" |
31 style$="[[computeSiteIcon(item.originForFavicon)]]"> | 30 style$="[[computeSiteIcon(item.originForFavicon)]]"> |
32 </div> | 31 </div> |
33 <div class="middle"> | 32 <div class="middle"> |
34 <div>[[item.displayName]]</div> | 33 <div>[[item.displayName]]</div> |
35 </div> | 34 </div> |
36 <div class="zoom-label">[[item.zoom]]</div> | 35 <div class="zoom-label">[[item.zoom]]</div> |
37 <div> | 36 <div> |
38 <paper-icon-button icon="cr:clear" on-tap="removeZoomLevel_" | 37 <paper-icon-button icon="cr:clear" on-tap="removeZoomLevel_" |
39 title="$i18n{siteSettingsRemoveZoomLevel}"></paper-icon-button> | 38 title="$i18n{siteSettingsRemoveZoomLevel}"></paper-icon-button> |
40 </div> | 39 </div> |
41 </div> | 40 </div> |
42 </template> | 41 </template> |
43 <template is="dom-if" if="{{!renderedCount}}"> | 42 <template is="dom-if" if="[[!sites_.length]]"> |
44 <div class="empty-message" id="empty"> | 43 <div id="empty"> |
45 $i18n{siteSettingsNoZoomedSites} | 44 $i18n{siteSettingsNoZoomedSites} |
46 </div> | 45 </div> |
47 </template> | 46 </template> |
48 </div> | 47 </div> |
49 </template> | 48 </template> |
50 <script src="zoom_levels.js"></script> | 49 <script src="zoom_levels.js"></script> |
51 </dom-module> | 50 </dom-module> |
OLD | NEW |