| OLD | NEW |
| (Empty) | |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 /** @fileoverview Handles interprocess communcation for the system page. */ |
| 6 |
| 7 cr.define('settings', function() { |
| 8 /** @interface */ |
| 9 function SystemPageDelegate() {} |
| 10 |
| 11 SystemPageDelegate.prototype = { |
| 12 /** Allows the user to change native system proxy settings. */ |
| 13 changeProxySettings: assertNotReached, |
| 14 }; |
| 15 |
| 16 /** |
| 17 * @constructor |
| 18 * @implements {settings.SystemPageDelegate} |
| 19 */ |
| 20 function SystemPageDelegateImpl() {} |
| 21 |
| 22 SystemPageDelegateImpl.prototype = { |
| 23 /** @override */ |
| 24 changeProxySettings: function() { |
| 25 chrome.send('changeProxySettings'); |
| 26 }, |
| 27 }; |
| 28 |
| 29 return { |
| 30 SystemPageDelegate: SystemPageDelegate, |
| 31 SystemPageDelegateImpl: SystemPageDelegateImpl, |
| 32 }; |
| 33 }); |
| OLD | NEW |