| OLD | NEW |
| 1 <link rel="import" href="chrome://resources/cr_elements/icons.html"> | 1 <link rel="import" href="chrome://resources/cr_elements/icons.html"> |
| 2 <link rel="import" href="chrome://resources/html/polymer.html"> | 2 <link rel="import" href="chrome://resources/html/polymer.html"> |
| 3 <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"> |
| 4 <link rel="import" href="chrome://resources/polymer/v1_0/iron-dropdown/iron-drop
down.html"> |
| 4 <link rel="import" href="chrome://resources/polymer/v1_0/iron-icon/iron-icon.htm
l"> | 5 <link rel="import" href="chrome://resources/polymer/v1_0/iron-icon/iron-icon.htm
l"> |
| 5 <link rel="import" href="chrome://resources/polymer/v1_0/paper-button/paper-butt
on.html"> | 6 <link rel="import" href="chrome://resources/polymer/v1_0/paper-button/paper-butt
on.html"> |
| 6 <link rel="import" href="chrome://resources/polymer/v1_0/paper-icon-button/paper
-icon-button.html"> | 7 <link rel="import" href="chrome://resources/polymer/v1_0/paper-icon-button/paper
-icon-button.html"> |
| 7 <link rel="import" href="chrome://resources/polymer/v1_0/paper-icon-button/paper
-icon-button-light.html"> | |
| 8 <link rel="import" href="chrome://resources/polymer/v1_0/paper-menu/paper-menu.h
tml"> | |
| 9 <link rel="import" href="chrome://resources/polymer/v1_0/paper-menu/paper-submen
u.html"> | 8 <link rel="import" href="chrome://resources/polymer/v1_0/paper-menu/paper-submen
u.html"> |
| 10 <link rel="import" href="chrome://resources/polymer/v1_0/paper-menu-button/paper
-menu-button.html"> | |
| 11 <link rel="import" href="/i18n_setup.html"> | 9 <link rel="import" href="/i18n_setup.html"> |
| 12 <link rel="import" href="/icons.html"> | 10 <link rel="import" href="/icons.html"> |
| 13 <link rel="import" href="/route.html"> | 11 <link rel="import" href="/route.html"> |
| 14 <link rel="import" href="/settings_shared_css.html"> | 12 <link rel="import" href="/settings_shared_css.html"> |
| 15 <link rel="import" href="/site_settings/add_site_dialog.html"> | 13 <link rel="import" href="/site_settings/add_site_dialog.html"> |
| 16 <link rel="import" href="/site_settings/constants.html"> | 14 <link rel="import" href="/site_settings/constants.html"> |
| 17 <link rel="import" href="/site_settings/site_settings_behavior.html"> | 15 <link rel="import" href="/site_settings/site_settings_behavior.html"> |
| 18 <link rel="import" href="/site_settings/site_settings_prefs_browser_proxy.html"> | 16 <link rel="import" href="/site_settings/site_settings_prefs_browser_proxy.html"> |
| 19 | 17 |
| 20 <dom-module id="site-list"> | 18 <dom-module id="site-list"> |
| 21 <template> | 19 <template> |
| 22 <style include="settings-shared"> | 20 <style include="settings-shared"> |
| 23 paper-menu-button { | 21 paper-icon-button { |
| 24 left: 8px; | 22 left: 8px; |
| 25 margin: 0; | |
| 26 padding: 0; | |
| 27 right: 8px; | 23 right: 8px; |
| 28 } | 24 } |
| 29 | 25 |
| 30 .selectable { | 26 .selectable { |
| 31 -webkit-user-select: text; | 27 -webkit-user-select: text; |
| 32 } | 28 } |
| 33 </style> | 29 </style> |
| 34 <paper-submenu id="category" hidden | 30 <paper-submenu id="category" hidden |
| 35 on-paper-submenu-open="onToggle_" on-paper-submenu-close="onToggle_"> | 31 on-paper-submenu-open="onToggle_" on-paper-submenu-close="onToggle_"> |
| 36 <div class="menu-trigger settings-box" hidden$="[[allSites]]" actionable> | 32 <div class="menu-trigger settings-box" hidden$="[[allSites]]" actionable> |
| (...skipping 16 matching lines...) Expand all Loading... |
| 53 <div class="selectable secondary"> | 49 <div class="selectable secondary"> |
| 54 [[computeSiteDescription_(item)]] | 50 [[computeSiteDescription_(item)]] |
| 55 </div> | 51 </div> |
| 56 </div> | 52 </div> |
| 57 </div> | 53 </div> |
| 58 | 54 |
| 59 <template is="dom-if" if="[[!!computeIconControlledBy_(item)]]"> | 55 <template is="dom-if" if="[[!!computeIconControlledBy_(item)]]"> |
| 60 <iron-icon icon="[[computeIconControlledBy_(item)]]"></iron-icon> | 56 <iron-icon icon="[[computeIconControlledBy_(item)]]"></iron-icon> |
| 61 </template> | 57 </template> |
| 62 | 58 |
| 63 <paper-menu-button hidden="[[!shouldShowMenu_(item.source)]]" | 59 <paper-icon-button id="dots" icon="cr:more-vert" toggles |
| 64 horizontal-align="right"> | 60 active="{{item.menuOpened}}" |
| 65 <paper-icon-button icon="cr:more-vert" class="dropdown-trigger"> | 61 hidden="[[isExceptionControlled_(item.source)]]"> |
| 66 </paper-icon-button> | 62 </paper-icon-button> |
| 67 <paper-menu id="actionMenu" class="dropdown-content" | 63 <template is="dom-if" if="[[item.menuOpened]]"> |
| 68 on-iron-activate="onActionMenuIronActivate_" | 64 <iron-dropdown vertical-align="auto" horizontal-align="right" |
| 69 attr-for-selected="menu-value"> | 65 opened="{{item.menuOpened}}"> |
| 70 <paper-item | 66 <div class="dropdown-content"> |
| 71 hidden="[[!showAllowAction_]]" actionable | 67 <button class="dropdown-item" role="option" id="allow" |
| 72 menu-value$="[[PermissionValues.ALLOW]]"> | 68 on-tap="onAllowTap_" hidden$="[[!showAllowAction_]]"> |
| 73 $i18n{siteSettingsActionAllow} | 69 $i18n{siteSettingsActionAllow} |
| 74 </paper-item> | 70 </button> |
| 75 <paper-item | 71 <button class="dropdown-item" role="option" id="block" |
| 76 hidden="[[!showBlockAction_]]" actionable | 72 on-tap="onBlockTap_" hidden$="[[!showBlockAction_]]"> |
| 77 menu-value$="[[PermissionValues.BLOCK]]"> | 73 $i18n{siteSettingsActionBlock} |
| 78 $i18n{siteSettingsActionBlock} | 74 </button> |
| 79 </paper-item> | 75 <button class="dropdown-item" role="option" id="sessionOnly" |
| 80 <paper-item | 76 on-tap="onSessionOnlyTap_" |
| 81 hidden="[[!showSessionOnlyActionForSite_(item)]]" actionable | 77 hidden$="[[!showSessionOnlyActionForSite_(item)]]"> |
| 82 menu-value$="[[PermissionValues.SESSION_ONLY]]"> | 78 $i18n{siteSettingsActionSessionOnly} |
| 83 $i18n{siteSettingsActionSessionOnly} | 79 </button> |
| 84 </paper-item> | 80 <button class="dropdown-item" role="option" id="reset" |
| 85 <paper-item | 81 on-tap="onResetTap_"> |
| 86 menu-value$="[[PermissionValues.DEFAULT]]" actionable> | 82 $i18n{siteSettingsActionReset} |
| 87 $i18n{siteSettingsActionReset} | 83 </button> |
| 88 </paper-item> | 84 </div> |
| 89 </paper-menu> | 85 </iron-dropdown> |
| 90 </paper-menu-button> | 86 </template> |
| 91 <div on-tap="onOriginTap_" actionable> | |
| 92 <button class="icon-arrow-right" is="paper-icon-button-light"> | |
| 93 </button> | |
| 94 </div> | |
| 95 </div> | 87 </div> |
| 96 </template> | 88 </template> |
| 97 | 89 |
| 98 <template is="dom-if" if="[[!allSites]]"> | 90 <template is="dom-if" if="[[!allSites]]"> |
| 99 <div class="list-item list-button" on-tap="onAddSiteTap_"> | 91 <div class="list-item list-button" on-tap="onAddSiteTap_"> |
| 100 $i18n{addSiteLink} | 92 $i18n{addSiteLink} |
| 101 </div> | 93 </div> |
| 102 </template> | 94 </template> |
| 103 </div> | 95 </div> |
| 104 </paper-submenu> | 96 </paper-submenu> |
| 105 </template> | 97 </template> |
| 106 <script src="site_list.js"></script> | 98 <script src="site_list.js"></script> |
| 107 </dom-module> | 99 </dom-module> |
| OLD | NEW |