Chromium Code Reviews| 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 | |
|
stevenjb
2016/03/08 23:13:31
nit: @fileoverview for newcomers to the code.
Dan Beam
2016/03/09 02:31:31
Done.
| |
| 5 cr.define('settings', function() { | |
| 6 /** @interface */ | |
| 7 function SystemPageDelegate() {} | |
| 8 | |
| 9 SystemPageDelegate.prototype = { | |
| 10 /** Allows the user to change native system proxy settings. */ | |
| 11 changeProxySettings: assertNotReached, | |
| 12 }; | |
| 13 | |
| 14 /** | |
| 15 * @constructor | |
| 16 * @implements {settings.SystemPageDelegate} | |
| 17 */ | |
| 18 function SystemPageDelegateImpl() {} | |
| 19 | |
| 20 SystemPageDelegateImpl.prototype = { | |
| 21 /** @override */ | |
| 22 changeProxySettings: function() { | |
| 23 chrome.send('changeProxySettings'); | |
| 24 }, | |
| 25 }; | |
| 26 | |
| 27 return { | |
| 28 SystemPageDelegate: SystemPageDelegate, | |
| 29 SystemPageDelegateImpl: SystemPageDelegateImpl, | |
| 30 }; | |
| 31 }); | |
| OLD | NEW |