| OLD | NEW |
| 1 <link rel="import" href="chrome://resources/html/polymer.html"> | 1 <link rel="import" href="chrome://resources/html/polymer.html"> |
| 2 | 2 |
| 3 <link rel="import" href="chrome://resources/cr_elements/cr_dialog/cr_dialog.html
"> | 3 <link rel="import" href="chrome://resources/cr_elements/cr_dialog/cr_dialog.html
"> |
| 4 <link rel="import" href="chrome://resources/cr_elements/hidden_style_css.html"> | 4 <link rel="import" href="chrome://resources/cr_elements/hidden_style_css.html"> |
| 5 <link rel="import" href="chrome://resources/cr_elements/network/cr_onc_types.htm
l"> | 5 <link rel="import" href="chrome://resources/cr_elements/network/cr_onc_types.htm
l"> |
| 6 <link rel="import" href="chrome://resources/cr_elements/policy/cr_policy_network
_behavior.html"> | 6 <link rel="import" href="chrome://resources/cr_elements/policy/cr_policy_network
_behavior.html"> |
| 7 <link rel="import" href="chrome://resources/cr_elements/policy/cr_policy_network
_indicator.html"> | 7 <link rel="import" href="chrome://resources/cr_elements/policy/cr_policy_network
_indicator.html"> |
| 8 <link rel="import" href="chrome://resources/html/assert.html"> | 8 <link rel="import" href="chrome://resources/html/assert.html"> |
| 9 <link rel="import" href="chrome://resources/html/cr/ui/focus_without_ink.html"> | 9 <link rel="import" href="chrome://resources/html/cr/ui/focus_without_ink.html"> |
| 10 <link rel="import" href="chrome://resources/html/i18n_behavior.html"> | 10 <link rel="import" href="chrome://resources/html/i18n_behavior.html"> |
| 11 <link rel="import" href="chrome://resources/html/md_select_css.html"> | 11 <link rel="import" href="chrome://resources/html/md_select_css.html"> |
| 12 <link rel="import" href="chrome://resources/polymer/v1_0/iron-a11y-keys/iron-a11
y-keys.html"> | 12 <link rel="import" href="chrome://resources/polymer/v1_0/iron-a11y-keys/iron-a11
y-keys.html"> |
| 13 <link rel="import" href="chrome://resources/polymer/v1_0/iron-flex-layout/iron-f
lex-layout-classes.html"> | 13 <link rel="import" href="chrome://resources/polymer/v1_0/iron-flex-layout/iron-f
lex-layout-classes.html"> |
| 14 <link rel="import" href="chrome://resources/polymer/v1_0/paper-button/paper-butt
on.html"> | 14 <link rel="import" href="chrome://resources/polymer/v1_0/paper-button/paper-butt
on.html"> |
| 15 <link rel="import" href="chrome://resources/polymer/v1_0/paper-input/paper-input
-container.html"> | 15 <link rel="import" href="chrome://resources/polymer/v1_0/paper-input/paper-input
-container.html"> |
| 16 <link rel="import" href="chrome://resources/polymer/v1_0/paper-input/paper-input
.html"> | 16 <link rel="import" href="chrome://resources/polymer/v1_0/paper-input/paper-input
.html"> |
| 17 <link rel="import" href="chrome://resources/polymer/v1_0/paper-toggle-button/pap
er-toggle-button.html"> | 17 <link rel="import" href="chrome://resources/polymer/v1_0/paper-toggle-button/pap
er-toggle-button.html"> |
| 18 <link rel="import" href="../controls/extension_controlled_indicator.html"> | 18 <link rel="import" href="../controls/extension_controlled_indicator.html"> |
| 19 <link rel="import" href="../controls/settings_toggle_button.html"> | 19 <link rel="import" href="../controls/settings_toggle_button.html"> |
| 20 <link rel="import" href="../i18n_setup.html"> | 20 <link rel="import" href="../i18n_setup.html"> |
| 21 <link rel="import" href="../prefs/prefs_behavior.html"> | 21 <link rel="import" href="../prefs/prefs_behavior.html"> |
| 22 <link rel="import" href="../settings_vars_css.html"> | 22 <link rel="import" href="../settings_vars_css.html"> |
| 23 <link rel="import" href="internet_shared_css.html"> | 23 <link rel="import" href="internet_shared_css.html"> |
| 24 <link rel="import" href="network_proxy_exclusions.html"> | 24 <link rel="import" href="network_proxy_exclusions.html"> |
| 25 <link rel="import" href="network_proxy_input.html"> | 25 <link rel="import" href="network_proxy_input.html"> |
| 26 | 26 |
| 27 <dom-module id="network-proxy"> | 27 <dom-module id="network-proxy"> |
| 28 <template> | 28 <template> |
| 29 <style include="internet-shared md-select cr-hidden-style iron-flex"> | 29 <style include="internet-shared md-select cr-hidden-style iron-flex iron-fle
x-alignment"> |
| 30 cr-policy-network-indicator { | 30 cr-policy-network-indicator { |
| 31 -webkit-margin-end: 10px; | 31 -webkit-margin-end: 10px; |
| 32 } | 32 } |
| 33 | 33 |
| 34 extension-controlled-indicator { | 34 extension-controlled-indicator { |
| 35 -webkit-margin-start: 0; | 35 -webkit-margin-start: 0; |
| 36 width: 100%; | 36 width: 100%; |
| 37 } | 37 } |
| 38 | 38 |
| 39 network-proxy-input { | 39 network-proxy-input { |
| 40 margin-bottom: 10px; | 40 margin-bottom: 10px; |
| 41 } | 41 } |
| 42 | 42 |
| 43 #exceptionsDiv { | |
| 44 padding: 10px 0; | |
| 45 } | |
| 46 | |
| 47 network-proxy-exclusions { | 43 network-proxy-exclusions { |
| 48 margin: 10px 0; | 44 margin: 10px 0; |
| 49 } | 45 } |
| 46 |
| 47 #manualProxy { |
| 48 @apply(--settings-list-frame-padding); |
| 49 } |
| 50 </style> | 50 </style> |
| 51 | 51 |
| 52 <!-- Policy indicator. Only one dom-if below will be shown. --> | 52 <!-- Policy indicator. Only one dom-if below will be shown. --> |
| 53 <template is="dom-if" | 53 <template is="dom-if" |
| 54 if="[[shouldShowNetworkPolicyIndicator_(networkProperties)]]"> | 54 if="[[shouldShowNetworkPolicyIndicator_(networkProperties)]]"> |
| 55 <div class="list-frame"> | 55 <div class="list-frame"> |
| 56 <div class="layout horizontal center"> | 56 <div class="layout horizontal center"> |
| 57 <cr-policy-network-indicator | 57 <cr-policy-network-indicator |
| 58 property="[[networkProperties.ProxySettings.Type]]" | 58 property="[[networkProperties.ProxySettings.Type]]" |
| 59 no-extension-indicator> | 59 no-extension-indicator> |
| (...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 126 <div id="networkProxyToggleLabel" class="flex"> | 126 <div id="networkProxyToggleLabel" class="flex"> |
| 127 $i18n{networkProxyUseSame} | 127 $i18n{networkProxyUseSame} |
| 128 </div> | 128 </div> |
| 129 <paper-toggle-button checked="{{useSameProxy_}}" | 129 <paper-toggle-button checked="{{useSameProxy_}}" |
| 130 disabled="[[!isEditable_('Type', networkProperties, editable, | 130 disabled="[[!isEditable_('Type', networkProperties, editable, |
| 131 useSharedProxies_)]]" | 131 useSharedProxies_)]]" |
| 132 aria-labelledby="networkProxyToggleLabel"> | 132 aria-labelledby="networkProxyToggleLabel"> |
| 133 </paper-toggle-button> | 133 </paper-toggle-button> |
| 134 </div> | 134 </div> |
| 135 | 135 |
| 136 <div class="list-frame" | 136 <div id="manualProxy" class="layout vertical start" |
| 137 hidden$="[[!matches_(proxy_.Type, ProxySettingsType_.MANUAL)]]"> | 137 hidden$="[[!matches_(proxy_.Type, ProxySettingsType_.MANUAL)]]"> |
| 138 <div hidden$="[[!useSameProxy_]]" class="layout vertical"> | 138 <div hidden$="[[!useSameProxy_]]" class="layout vertical"> |
| 139 <network-proxy-input | 139 <network-proxy-input |
| 140 on-proxy-change="onProxyInputChange_" | 140 on-proxy-change="onProxyInputChange_" |
| 141 editable="[[isEditable_('Manual.HTTPProxy.Host', networkProperties, | 141 editable="[[isEditable_('Manual.HTTPProxy.Host', networkProperties, |
| 142 editable, useSharedProxies_)]]" | 142 editable, useSharedProxies_)]]" |
| 143 value="{{proxy_.Manual.HTTPProxy}}" | 143 value="{{proxy_.Manual.HTTPProxy}}" |
| 144 label="$i18n{networkProxy}"> | 144 label="$i18n{networkProxy}"> |
| 145 </network-proxy-input> | 145 </network-proxy-input> |
| 146 </div> | 146 </div> |
| (...skipping 21 matching lines...) Expand all Loading... |
| 168 </network-proxy-input> | 168 </network-proxy-input> |
| 169 <network-proxy-input | 169 <network-proxy-input |
| 170 on-proxy-change="onProxyInputChange_" | 170 on-proxy-change="onProxyInputChange_" |
| 171 editable="[[isEditable_('Manual.SOCKS.Host', networkProperties, | 171 editable="[[isEditable_('Manual.SOCKS.Host', networkProperties, |
| 172 editable, useSharedProxies_)]]" | 172 editable, useSharedProxies_)]]" |
| 173 value="{{proxy_.Manual.SOCKS}}" | 173 value="{{proxy_.Manual.SOCKS}}" |
| 174 label="$i18n{networkProxySocks}"> | 174 label="$i18n{networkProxySocks}"> |
| 175 </network-proxy-input> | 175 </network-proxy-input> |
| 176 </div> | 176 </div> |
| 177 | 177 |
| 178 <div id="exceptionsDiv" | 178 <div hidden="[[!isEditable_('Type', networkProperties, editable, |
| 179 hidden="[[!isEditable_('Type', networkProperties, editable, | 179 useSharedProxies_)]]"> |
| 180 useSharedProxies_)]]"> | |
| 181 <div>$i18n{networkProxyExceptionList}</div> | 180 <div>$i18n{networkProxyExceptionList}</div> |
| 182 <network-proxy-exclusions on-proxy-change="onProxyExclusionsChange_" | 181 <network-proxy-exclusions on-proxy-change="onProxyExclusionsChange_" |
| 183 exclusions="{{proxy_.ExcludeDomains}}"> | 182 exclusions="{{proxy_.ExcludeDomains}}"> |
| 184 </network-proxy-exclusions> | 183 </network-proxy-exclusions> |
| 185 <div class="layout horizontal"> | 184 <div class="layout horizontal"> |
| 186 <paper-input-container no-label-float class="flex"> | 185 <paper-input-container no-label-float class="flex"> |
| 187 <input id="proxyExclusion" is="iron-input"> | 186 <input id="proxyExclusion" is="iron-input"> |
| 188 <iron-a11y-keys keys="enter" | 187 <iron-a11y-keys keys="enter" |
| 189 on-keys-pressed="onAddProxyExclusionTap_"> | 188 on-keys-pressed="onAddProxyExclusionTap_"> |
| 190 </iron-a11y-keys> | 189 </iron-a11y-keys> |
| (...skipping 25 matching lines...) Expand all Loading... |
| 216 </paper-button> | 215 </paper-button> |
| 217 <paper-button class="action-button" | 216 <paper-button class="action-button" |
| 218 on-tap="onAllowSharedDialogConfirm_"> | 217 on-tap="onAllowSharedDialogConfirm_"> |
| 219 $i18n{confirm} | 218 $i18n{confirm} |
| 220 </paper-button> | 219 </paper-button> |
| 221 </div> | 220 </div> |
| 222 </dialog> | 221 </dialog> |
| 223 </template> | 222 </template> |
| 224 <script src="network_proxy.js"></script> | 223 <script src="network_proxy.js"></script> |
| 225 </dom-module> | 224 </dom-module> |
| OLD | NEW |