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