Chromium Code Reviews| 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/network/cr_onc_types.htm l"> | 2 <link rel="import" href="chrome://resources/cr_elements/network/cr_onc_types.htm l"> |
| 3 <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 _behavior.html"> |
| 4 <link rel="import" href="chrome://resources/cr_elements/policy/cr_policy_network _indicator.html"> | 4 <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_pref_in dicator.html"> | |
| 6 <link rel="import" href="chrome://resources/html/i18n_behavior.html"> | 5 <link rel="import" href="chrome://resources/html/i18n_behavior.html"> |
| 7 <link rel="import" href="chrome://resources/html/md_select_css.html"> | 6 <link rel="import" href="chrome://resources/html/md_select_css.html"> |
| 8 <link rel="import" href="chrome://resources/html/polymer.html"> | 7 <link rel="import" href="chrome://resources/html/polymer.html"> |
| 9 <link rel="import" href="chrome://resources/polymer/v1_0/paper-button/paper-butt on.html"> | 8 <link rel="import" href="chrome://resources/polymer/v1_0/paper-button/paper-butt on.html"> |
| 10 <link rel="import" href="chrome://resources/polymer/v1_0/paper-checkbox/paper-ch eckbox.html"> | 9 <link rel="import" href="chrome://resources/polymer/v1_0/paper-checkbox/paper-ch eckbox.html"> |
| 11 <link rel="import" href="chrome://resources/polymer/v1_0/paper-input/paper-input -container.html"> | 10 <link rel="import" href="chrome://resources/polymer/v1_0/paper-input/paper-input -container.html"> |
| 12 <link rel="import" href="chrome://resources/polymer/v1_0/paper-input/paper-input .html"> | 11 <link rel="import" href="chrome://resources/polymer/v1_0/paper-input/paper-input .html"> |
| 12 <link rel="import" href="/controls/extension_controlled_indicator.html"> | |
| 13 <link rel="import" href="/controls/settings_checkbox.html"> | 13 <link rel="import" href="/controls/settings_checkbox.html"> |
| 14 <link rel="import" href="/i18n_setup.html"> | 14 <link rel="import" href="/i18n_setup.html"> |
| 15 <link rel="import" href="/prefs/prefs_behavior.html"> | 15 <link rel="import" href="/prefs/prefs_behavior.html"> |
| 16 <link rel="import" href="/settings_vars_css.html"> | 16 <link rel="import" href="/settings_vars_css.html"> |
| 17 <link rel="import" href="internet_shared_css.html"> | 17 <link rel="import" href="internet_shared_css.html"> |
| 18 <link rel="import" href="network_proxy_exclusions.html"> | 18 <link rel="import" href="network_proxy_exclusions.html"> |
| 19 <link rel="import" href="network_proxy_input.html"> | 19 <link rel="import" href="network_proxy_input.html"> |
| 20 | 20 |
| 21 <dom-module id="network-proxy"> | 21 <dom-module id="network-proxy"> |
| 22 <template> | 22 <template> |
| 23 <style include="internet-shared md-select"> | 23 <style include="internet-shared md-select"> |
| 24 cr-policy-network-indicator, | 24 cr-policy-network-indicator { |
| 25 cr-policy-pref-indicator { | |
| 26 -webkit-margin-end: 10px; | 25 -webkit-margin-end: 10px; |
| 27 } | 26 } |
| 28 | 27 |
| 28 extension-controlled-indicator { | |
| 29 -webkit-margin-start: 0; | |
| 30 width: 100%; | |
| 31 } | |
| 32 | |
| 29 network-proxy-input { | 33 network-proxy-input { |
| 30 margin-bottom: 10px; | 34 margin-bottom: 10px; |
| 31 } | 35 } |
| 32 | 36 |
| 33 /* Use .middle spacing but no flex. */ | 37 /* Use .middle spacing but no flex. */ |
| 34 .settings-box .middle { | 38 .settings-box .middle { |
| 35 flex: none; | 39 flex: none; |
| 36 } | 40 } |
| 37 | 41 |
| 38 .settings-box.indent { | |
| 39 @apply(--settings-list-frame-padding); | |
| 40 } | |
| 41 | |
| 42 #exceptionsDiv { | 42 #exceptionsDiv { |
| 43 padding: 10px 0; | 43 padding: 10px 0; |
| 44 } | 44 } |
| 45 | 45 |
| 46 #exceptionsDiv network-proxy-exclusions { | 46 #exceptionsDiv network-proxy-exclusions { |
| 47 margin: 10px 0; | 47 margin: 10px 0; |
| 48 } | 48 } |
| 49 | 49 |
| 50 #proxyDiv paper-checkbox { | 50 #proxyDiv paper-checkbox { |
| 51 padding: 10px 0; | 51 padding: 10px 0; |
| 52 } | 52 } |
| 53 </style> | 53 </style> |
| 54 | 54 |
| 55 <!-- Policy indicator --> | 55 <!-- Policy indicator --> |
| 56 <div class="settings-box first single-column" | 56 <div class="settings-box first single-column" |
| 57 hidden$="[[!isControlled(networkProperties.ProxySettings.Type)]]"> | 57 hidden$="[[!getShowNetworkPolicyIndicator_(networkProperties)]]"> |
| 58 <div class="layout horizontal center" | 58 <div class="layout horizontal center"> |
| 59 hidden$="[[!getShowNetworkPolicyIndicator_(networkProperties)]]"> | |
| 60 <cr-policy-network-indicator | 59 <cr-policy-network-indicator |
| 61 property="[[networkProperties.ProxySettings.Type]]"> | 60 property="[[networkProperties.ProxySettings.Type]]"> |
| 62 </cr-policy-network-indicator> | 61 </cr-policy-network-indicator> |
| 63 <div>$i18n{networkProxyEnforcedPolicy}</div> | 62 <div>$i18n{networkProxyEnforcedPolicy}</div> |
| 64 </div> | 63 </div> |
| 65 <div class="layout horizontal center" | 64 </div> |
| 66 hidden$="[[!getShowPrefPolicyIndicator_(networkProperties)]]"> | 65 <div class="settings-box first single-column" |
|
Dan Beam
2016/11/29 05:25:34
why does this go into a new settings-box? doesn't
stevenjb
2016/11/30 22:58:19
Only one or the other will be shown. Also, 'first'
| |
| 67 <cr-policy-pref-indicator pref="[[prefs.proxy]]"> | 66 hidden$="[[!getShowExtensionPolicyIndicator_(networkProperties)]]"> |
|
Dan Beam
2016/11/29 05:25:34
arguable nit: use dom-if instead of hidden binding
stevenjb
2016/11/30 22:58:19
Done.
| |
| 68 </cr-policy-pref-indicator> | 67 <extension-controlled-indicator |
| 69 <div>$i18n{networkProxyControlledExtension}</div> | 68 extension-id="[[prefs.proxy.extensionId]]" |
| 70 </div> | 69 extension-name="[[prefs.proxy.controlledByName]]" |
| 70 extension-can-be-disabled="[[prefs.proxy.extensionCanBeDisabled]]"> | |
| 71 </extension-controlled-indicator> | |
| 71 </div> | 72 </div> |
| 72 | 73 |
| 73 <!-- Allow shared proxies --> | 74 <!-- Allow shared proxies --> |
| 74 <div class="settings-box continuation" | 75 <div class="settings-box continuation" |
| 75 hidden$="[[!getShowAllowShared_( | 76 hidden$="[[!getShowAllowShared_( |
| 76 networkProperties.ProxySettings.Type)]]"> | 77 networkProperties.ProxySettings.Type)]]"> |
| 77 <settings-checkbox id="allowShared" | 78 <settings-checkbox id="allowShared" |
| 78 pref="{{prefs.settings.use_shared_proxies}}" | 79 pref="{{prefs.settings.use_shared_proxies}}" |
| 79 no-set-pref label="$i18n{networkProxyAllowShared}" | 80 no-set-pref label="$i18n{networkProxyAllowShared}" |
| 80 on-change="onAllowSharedProxiesChange_"> | 81 on-change="onAllowSharedProxiesChange_"> |
| (...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 198 </paper-button> | 199 </paper-button> |
| 199 <paper-button class="action-button" | 200 <paper-button class="action-button" |
| 200 on-tap="onAllowSharedDialogConfirm_"> | 201 on-tap="onAllowSharedDialogConfirm_"> |
| 201 $i18n{confirm} | 202 $i18n{confirm} |
| 202 </paper-button> | 203 </paper-button> |
| 203 </div> | 204 </div> |
| 204 </dialog> | 205 </dialog> |
| 205 </template> | 206 </template> |
| 206 <script src="network_proxy.js"></script> | 207 <script src="network_proxy.js"></script> |
| 207 </dom-module> | 208 </dom-module> |
| OLD | NEW |