Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(699)

Side by Side Diff: chrome/browser/resources/settings/downloads_page/downloads_browser_proxy.js

Issue 2713343003: MD Settings: Add "Auto Open" setting to Downloads page UI. (Closed)
Patch Set: format Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(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 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698