- add sources.
[platform/framework/web/crosswalk.git] / src / chrome / common / extensions / docs / examples / extensions / proxy_configuration / popup.html
1 <!doctype html>
2 <html>
3 <head>
4   <title>Popup for Proxy API Test</title>
5   <link href="./popup.css" type="text/css" rel="stylesheet">
6 </head>
7 <body>
8   <h1>Proxy Configuration</h1>
9   <div role="main">
10     <form id="proxyForm">
11       <fieldset id="system">
12         <legend>System Settings</legend>
13         <input type="radio" name="proxyType" id="proxyTypeSystem" value="system">
14         <label for="proxyTypeSystem">Use the <em>system's proxy settings</em>.</label>
15       </fieldset>
16       <fieldset id="direct">
17         <legend>Direct Connection</legend>
18         <input type="radio" name="proxyType" id="proxyTypeDirect" value="direct">
19         <label for="proxyTypeDirect">Your computer is <em>directly connected</em> to the internet; no need for a proxy.</label>
20       </fieldset>
21       <fieldset id="pac_script">
22         <legend>Automatic Configuration</legend>
23         <input type="radio" name="proxyType" id="proxyTypeAutoconfig" value="autoconfig">
24         <label for="proxyTypeAutoconfig">Your proxy supports <em>automatic configuration</em>.</label>
25
26         <section>
27           <label for="autoconfigURL">Autoconfiguration URL (PAC file)</label>
28           <input type="url" name="autoconfigURL" id="autoconfigURL">
29           <input type="hidden" name="autoconfigData" id="autoconfigData">
30         </section>
31       </fieldset>
32       <fieldset id="fixed_servers">
33         <legend>Manual Proxy</legend>
34         <input type="radio" name="proxyType" id="proxyTypeManual" value="manual">
35         <label for="proxyTypeManual">Configure your proxy settings <em>manually</em>.</label>
36         <section>
37           <fieldset>
38             <legend>HTTP</legend>
39             <label for="proxyHostHttp">Host</label>
40             <select id="proxySchemeHttp" name="proxySchemeHttp">
41               <option selected value="http">http://</option>
42               <option value="https">https://</option>
43               <option value="socks4">socks4://</option>
44               <option value="socks5">socks5://</option>
45             </select>
46             <input type="text" name="proxyHostHttp" id="proxyHostHttp">
47
48             <label for="proxyPortHttp">Port</label>
49             <input type="text" name="proxyPortHttp" id="proxyPortHttp" class="port">
50
51             <input type="checkbox" name="singleProxyForEverything" id="singleProxyForEverything">
52             <label for="singleProxyForEverything">Use the same proxy server for all protocols</label>
53           </fieldset>
54           <fieldset>
55             <legend>HTTPS</legend>
56             <label for="proxyHostHttps">Host</label>
57             <select id="proxySchemeHttps" name="proxySchemeHttps">
58               <option selected value="http">http://</option>
59               <option value="https">https://</option>
60               <option value="socks4">socks4://</option>
61               <option value="socks5">socks5://</option>
62             </select>
63             <input type="text" name="proxyHostHttps" id="proxyHostHttps">
64
65             <label for="proxyPortHttps">Port</label>
66             <input type="text" name="proxyPortHttps" id="proxyPortHttps" class="port">
67           </fieldset>
68           <fieldset>
69             <legend>FTP</legend>
70             <label for="proxyHostFtp">Host</label>
71             <select id="proxySchemeFtp" name="proxySchemeFtp">
72               <option selected value="http">http://</option>
73               <option value="https">https://</option>
74               <option value="socks4">socks4://</option>
75               <option value="socks5">socks5://</option>
76             </select>
77             <input type="text" name="proxyHostFtp" id="proxyHostFtp">
78
79             <label for="proxyPortFtp">Port</label>
80             <input type="text" name="proxyPortFtp" id="proxyPortFtp" class="port">
81           </fieldset>
82           <fieldset>
83             <legend>Fallback</legend>
84             <label for="proxyHostFallback">Host</label>
85             <select id="proxySchemeFallback" name="proxySchemeFallback">
86               <option selected value="http">http://</option>
87               <option value="https">https://</option>
88               <option value="socks4">socks4://</option>
89               <option value="socks5">socks5://</option>
90             </select>
91             <input type="text" name="proxyHostFallback" id="proxyHostFallback">
92
93             <label for="proxyPortFallback">Port</label>
94             <input type="text" name="proxyPortFallback" id="proxyPortFallback" class="port">
95           </fieldset>
96           <fieldset>
97             <label for="bypassList">Bypass proxy for these hosts:</label>
98             <textarea id="bypassList" name="bypassList" placeholder="<local>,192.168.1.1/16, .example.com"></textarea>
99           </fieldset>
100         </section>
101       </fieldset>
102       <input type="submit" value="Save proxy settings">
103       <button value="incognito">Configure incognito window settings.</button>
104     </form>
105   </div>
106   <script src="./proxy_form_controller.js"></script>
107   <script src="./popup.js"></script>
108 </body>
109 </html>