| OLD | NEW |
| 1 <link rel="import" href="chrome://resources/cr_elements/network/cr_onc_types.htm
l"> | 1 <link rel="import" href="chrome://resources/cr_elements/network/cr_onc_types.htm
l"> |
| 2 <link rel="import" href="chrome://resources/cr_elements/policy/cr_policy_network
_behavior.html"> | 2 <link rel="import" href="chrome://resources/cr_elements/policy/cr_policy_network
_behavior.html"> |
| 3 <link rel="import" href="chrome://resources/cr_elements/policy/cr_policy_network
_indicator.html"> | 3 <link rel="import" href="chrome://resources/cr_elements/policy/cr_policy_network
_indicator.html"> |
| 4 <link rel="import" href="chrome://resources/html/i18n_behavior.html"> |
| 4 <link rel="import" href="chrome://resources/html/polymer.html"> | 5 <link rel="import" href="chrome://resources/html/polymer.html"> |
| 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-checkbox/paper-ch
eckbox.html"> | 7 <link rel="import" href="chrome://resources/polymer/v1_0/paper-checkbox/paper-ch
eckbox.html"> |
| 7 <link rel="import" href="chrome://resources/polymer/v1_0/paper-input/paper-input
-container.html"> | 8 <link rel="import" href="chrome://resources/polymer/v1_0/paper-input/paper-input
-container.html"> |
| 8 <link rel="import" href="chrome://resources/polymer/v1_0/paper-input/paper-input
.html"> | 9 <link rel="import" href="chrome://resources/polymer/v1_0/paper-input/paper-input
.html"> |
| 9 <link rel="import" href="/md_select_css.html"> | 10 <link rel="import" href="/md_select_css.html"> |
| 10 <link rel="import" href="internet_shared_css.html"> | 11 <link rel="import" href="internet_shared_css.html"> |
| 11 <link rel="import" href="network_proxy_exclusions.html"> | 12 <link rel="import" href="network_proxy_exclusions.html"> |
| 12 <link rel="import" href="network_proxy_input.html"> | 13 <link rel="import" href="network_proxy_input.html"> |
| 13 | 14 |
| (...skipping 20 matching lines...) Expand all Loading... |
| 34 #exceptionsDiv network-proxy-exclusions { | 35 #exceptionsDiv network-proxy-exclusions { |
| 35 margin: 10px 0; | 36 margin: 10px 0; |
| 36 } | 37 } |
| 37 | 38 |
| 38 #proxyDiv paper-checkbox { | 39 #proxyDiv paper-checkbox { |
| 39 padding: 10px 0; | 40 padding: 10px 0; |
| 40 } | 41 } |
| 41 </style> | 42 </style> |
| 42 <!-- Policy indicator --> | 43 <!-- Policy indicator --> |
| 43 <div class="settings-box first single-column" | 44 <div class="settings-box first single-column" |
| 44 hidden$="[[!isNetworkPolicyControlled( | 45 hidden$="[[!isControlled(networkProperties.ProxySettings.Type)]]"> |
| 45 networkProperties.ProxySettings.Type)]]"> | |
| 46 <div class="layout horizontal center"> | 46 <div class="layout horizontal center"> |
| 47 <cr-policy-network-indicator | 47 <cr-policy-network-indicator |
| 48 property="[[networkProperties.ProxySettings.Type]]"> | 48 property="[[networkProperties.ProxySettings.Type]]"> |
| 49 </cr-policy-network-indicator> | 49 </cr-policy-network-indicator> |
| 50 <div>$i18n{networkProxyEnforced}</div> | 50 <div>[[getEnforcedString_(networkProperties.ProxySettings.Type)]]</div> |
| 51 </div> | 51 </div> |
| 52 </div> | 52 </div> |
| 53 | 53 |
| 54 <!-- Proxy type dropdown --> | 54 <!-- Proxy type dropdown --> |
| 55 <div class="settings-box continuation"> | 55 <div class="settings-box continuation"> |
| 56 <div class="start">$i18n{networkProxyConnectionType}</div> | 56 <div class="start">$i18n{networkProxyConnectionType}</div> |
| 57 <div class="md-select-wrapper"> | 57 <div class="md-select-wrapper"> |
| 58 <select id="proxyType" class="md-select" on-change="onTypeChange_" | 58 <select id="proxyType" class="md-select" on-change="onTypeChange_" |
| 59 value="[[proxy.Type]]"> | 59 value="[[proxy.Type]]" |
| 60 disabled="[[isProxyTypeDisabled_(networkProperties)]]"> |
| 60 <template is="dom-repeat" items="[[proxyTypes_]]"> | 61 <template is="dom-repeat" items="[[proxyTypes_]]"> |
| 61 <option value="[[item]]">[[proxyTypeDesc_(item)]]</option> | 62 <option value="[[item]]">[[getProxyTypeDesc_(item)]]</option> |
| 62 </template> | 63 </template> |
| 63 </select> | 64 </select> |
| 64 <span class="md-select-underline"></span> | 65 <span class="md-select-underline"></span> |
| 65 </div> | 66 </div> |
| 66 </div> | 67 </div> |
| 67 | 68 |
| 68 <!-- Autoconfiguration (PAC) --> | 69 <!-- Autoconfiguration (PAC) --> |
| 69 <div class="settings-box continuation" | 70 <div class="settings-box continuation" |
| 70 hidden$="[[!matches_(proxy.Type, ProxySettingsType_.PAC)]]"> | 71 hidden$="[[!matches_(proxy.Type, ProxySettingsType_.PAC)]]"> |
| 71 <div>$i18n{networkProxyAutoConfig}</div> | 72 <div>$i18n{networkProxyAutoConfig}</div> |
| 72 <paper-input no-label-float class="middle" value="{{proxy.PAC}}" | 73 <paper-input no-label-float class="middle" value="{{proxy.PAC}}" |
| 73 disabled="[[isNetworkPolicyEnforced( | 74 disabled="[[isEnforced_(networkProperties.ProxySettings.PAC)]]" |
| 74 networkProperties.ProxySettings.PAC)]]" | |
| 75 on-blur="onProxyInputChange_"> | 75 on-blur="onProxyInputChange_"> |
| 76 </paper-input> | 76 </paper-input> |
| 77 </div> | 77 </div> |
| 78 | 78 |
| 79 <!-- Web Proxy Auto Discovery (WPAD) --> | 79 <!-- Web Proxy Auto Discovery (WPAD) --> |
| 80 <div class="settings-box continuation" | 80 <div class="settings-box continuation" |
| 81 hidden$="[[!matches_(proxy.Type, ProxySettingsType_.WPAD)]]"> | 81 hidden$="[[!matches_(proxy.Type, ProxySettingsType_.WPAD)]]"> |
| 82 <div>$i18n{networkSectionWpad}</div> | 82 <div>$i18n{networkSectionWpad}</div> |
| 83 <div class="middle">[[WPAD]]</div> | 83 <div class="middle">[[WPAD]]</div> |
| 84 </div> | 84 </div> |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 140 </paper-input-container> | 140 </paper-input-container> |
| 141 <paper-button on-tap="onAddProxyExclusionTap_"> | 141 <paper-button on-tap="onAddProxyExclusionTap_"> |
| 142 $i18n{networkProxyAddException} | 142 $i18n{networkProxyAddException} |
| 143 </paper-button> | 143 </paper-button> |
| 144 </div> | 144 </div> |
| 145 </div> | 145 </div> |
| 146 </div> | 146 </div> |
| 147 </template> | 147 </template> |
| 148 <script src="network_proxy.js"></script> | 148 <script src="network_proxy.js"></script> |
| 149 </dom-module> | 149 </dom-module> |
| OLD | NEW |