1 <link rel=
"import" href=
"chrome://resources/polymer/v1_0/polymer/polymer.html">
2 <link rel=
"import" href=
"chrome://resources/polymer/v1_0/paper-styles/paper-styles.html">
3 <link rel=
"import" href=
"chrome://resources/cr_elements/v1_0/cr_checkbox/cr_checkbox.html">
4 <link rel=
"import" href=
"chrome://resources/cr_elements/v1_0/cr_input/cr_input.html">
5 <link rel=
"import" href=
"chrome://resources/cr_elements/v1_0/cr_onc/cr_onc_types.html">
6 <link rel=
"import" href=
"network_property_list.html">
7 <link rel=
"import" href=
"network_proxy_input.html">
8 <link rel=
"import" href=
"network_proxy_exclusions.html">
10 <dom-module id=
"network-proxy">
11 <link rel=
"import" type=
"css" href=
"network_proxy.css">
13 <div id=
"outer" class=
"layout vertical flex">
14 <!-- TODO(stevenjb): Use cr-dropdown-menu once available. -->
16 <select id=
"selectType" on-change=
"onTypeChange_">
17 <template is=
"dom-repeat" items=
"[[proxyTypes_]]">
18 <option value=
"[[item]]">[[proxyTypeDesc_(item)]]
</option>
23 <div hidden$=
"[[!matches_(proxy.Type, ProxySettingsType.PAC)]]"
24 class=
"layout horizontal">
25 <span>Autoconfiguration URL:
</span>
26 <cr-input no-label-float
class=
"flex" value=
"{{proxy.PAC}}"
27 on-blur=
"onProxyInputChange_">
31 <div hidden$=
"[[!matches_(proxy.Type, ProxySettingsType.WPAD)]]"
32 class=
"layout horizontal">
33 <span>Web Proxy Auto Discovery URL:
</span><span>[[WPAD]]
</span>
36 <div hidden$=
"[[!matches_(proxy.Type, ProxySettingsType.MANUAL)]]"
37 class=
"layout vertical">
38 <cr-checkbox id=
"useUrl" checked=
"{{useSameProxy}}">
39 Use the same proxy for all protocols
41 <div hidden$=
"[[!useSameProxy]]" class=
"layout vertical">
42 <network-proxy-input editable=
"[[editable]]"
43 value=
"{{proxy.Manual.HTTPProxy}}"
44 label=
"Proxy" on-proxy-change=
"onProxyInputChange_">
45 </network-proxy-input>
47 <div hidden$=
"[[useSameProxy]]" class=
"layout vertical">
48 <network-proxy-input editable=
"[[editable]]"
49 value=
"{{proxy.Manual.HTTPProxy}}"
50 label=
"HTTP Proxy" on-proxy-change=
"onProxyInputChange_">
51 </network-proxy-input>
52 <network-proxy-input editable=
"[[editable]]"
53 value=
"{{proxy.Manual.SecureHTTPProxy}}"
54 label=
"Secure HTTP Proxy" on-proxy-change=
"onProxyInputChange_">
55 </network-proxy-input>
56 <network-proxy-input editable=
"[[editable]]"
57 value=
"{{proxy.Manual.FTPProxy}}"
58 label=
"FTP Proxy" on-proxy-change=
"onProxyInputChange_">
59 </network-proxy-input>
60 <network-proxy-input editable=
"[[editable]]"
61 value=
"{{proxy.Manual.SOCKS}}"
62 label=
"SOCKS host" on-proxy-change=
"onProxyInputChange_">
63 </network-proxy-input>
66 <span>Do not use the proxy settings for these hosts and domains:
</span>
67 <network-proxy-exclusions exclusions=
"{{proxy.ExcludeDomains}}"
68 on-proxy-change=
"onProxyExclusionsChange_">
69 </network-proxy-exclusions>
70 <div class=
"layout horizontal baseline">
71 <cr-input id=
"proxyExclusion" class=
"flex" no-label-float
>
73 <cr-button on-click=
"onAddProxyExclusion_">
80 <script src=
"network_proxy.js"></script>