| OLD | NEW |
| (Empty) | |
| 1 // Copyright 2017 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 cr.define('settings', function() { |
| 6 /** @interface */ |
| 7 function DownloadsBrowserProxy() {} |
| 8 |
| 9 DownloadsBrowserProxy.prototype = { |
| 10 initializeDownloads: assertNotReached, |
| 11 |
| 12 selectDownloadLocation: assertNotReached, |
| 13 |
| 14 resetAutoOpenFileTypes: assertNotReached, |
| 15 }; |
| 16 |
| 17 /** |
| 18 * @implements {settings.DownloadsBrowserProxy} |
| 19 * @constructor |
| 20 */ |
| 21 function DownloadsBrowserProxyImpl() {} |
| 22 |
| 23 cr.addSingletonGetter(DownloadsBrowserProxyImpl); |
| 24 |
| 25 DownloadsBrowserProxyImpl.prototype = { |
| 26 /** @override */ |
| 27 initializeDownloads: function() { |
| 28 chrome.send('initializeDownloads'); |
| 29 }, |
| 30 |
| 31 /** @override */ |
| 32 selectDownloadLocation: function() { |
| 33 chrome.send('selectDownloadLocation'); |
| 34 }, |
| 35 |
| 36 /** @override */ |
| 37 resetAutoOpenFileTypes: function() { |
| 38 chrome.send('resetAutoOpenFileTypes'); |
| 39 }, |
| 40 }; |
| 41 |
| 42 return { |
| 43 DownloadsBrowserProxy: DownloadsBrowserProxy, |
| 44 DownloadsBrowserProxyImpl: DownloadsBrowserProxyImpl, |
| 45 }; |
| 46 }); |
| OLD | NEW |