OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 /** | 5 /** |
6 * This view displays information on the proxy setup: | 6 * This view displays information on the proxy setup: |
7 * | 7 * |
8 * - Shows the current proxy settings. | 8 * - Shows the current proxy settings. |
9 * - Has a button to reload these settings. | 9 * - Has a button to reload these settings. |
10 * - Shows the log entries for the most recent INIT_PROXY_RESOLVER source | 10 * - Shows the log entries for the most recent INIT_PROXY_RESOLVER source |
(...skipping 19 matching lines...) Expand all Loading... |
30 | 30 |
31 // Hook up the UI components. | 31 // Hook up the UI components. |
32 $(ProxyView.RELOAD_SETTINGS_BUTTON_ID).onclick = | 32 $(ProxyView.RELOAD_SETTINGS_BUTTON_ID).onclick = |
33 g_browser.sendReloadProxySettings.bind(g_browser); | 33 g_browser.sendReloadProxySettings.bind(g_browser); |
34 $(ProxyView.CLEAR_BAD_PROXIES_BUTTON_ID).onclick = | 34 $(ProxyView.CLEAR_BAD_PROXIES_BUTTON_ID).onclick = |
35 g_browser.sendClearBadProxies.bind(g_browser); | 35 g_browser.sendClearBadProxies.bind(g_browser); |
36 | 36 |
37 // Register to receive proxy information as it changes. | 37 // Register to receive proxy information as it changes. |
38 g_browser.addProxySettingsObserver(this, true); | 38 g_browser.addProxySettingsObserver(this, true); |
39 g_browser.addBadProxiesObserver(this, true); | 39 g_browser.addBadProxiesObserver(this, true); |
40 g_browser.sourceTracker.addObserver(this); | 40 g_browser.sourceTracker.addSourceEntryObserver(this); |
41 } | 41 } |
42 | 42 |
43 // ID for special HTML element in category_tabs.html | 43 // ID for special HTML element in category_tabs.html |
44 ProxyView.TAB_HANDLE_ID = 'tab-handle-proxy'; | 44 ProxyView.TAB_HANDLE_ID = 'tab-handle-proxy'; |
45 | 45 |
46 // IDs for special HTML elements in proxy_view.html | 46 // IDs for special HTML elements in proxy_view.html |
47 ProxyView.MAIN_BOX_ID = 'proxy-view-tab-content'; | 47 ProxyView.MAIN_BOX_ID = 'proxy-view-tab-content'; |
48 ProxyView.ORIGINAL_SETTINGS_DIV_ID = 'proxy-view-original-settings'; | 48 ProxyView.ORIGINAL_SETTINGS_DIV_ID = 'proxy-view-original-settings'; |
49 ProxyView.EFFECTIVE_SETTINGS_DIV_ID = 'proxy-view-effective-settings'; | 49 ProxyView.EFFECTIVE_SETTINGS_DIV_ID = 'proxy-view-effective-settings'; |
50 ProxyView.RELOAD_SETTINGS_BUTTON_ID = 'proxy-view-reload-settings'; | 50 ProxyView.RELOAD_SETTINGS_BUTTON_ID = 'proxy-view-reload-settings'; |
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
162 this.clearLog_(); | 162 this.clearLog_(); |
163 }, | 163 }, |
164 | 164 |
165 onAllSourceEntriesDeleted: function() { | 165 onAllSourceEntriesDeleted: function() { |
166 this.clearLog_(); | 166 this.clearLog_(); |
167 } | 167 } |
168 }; | 168 }; |
169 | 169 |
170 return ProxyView; | 170 return ProxyView; |
171 })(); | 171 })(); |
OLD | NEW |