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

Side by Side Diff: chrome/browser/resources/settings/site_settings/site_settings_prefs_browser_proxy.js

Issue 2235233002: Site Settings Desktop: Add Closure coverage for Protocol Handlers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 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
« no previous file with comments | « chrome/browser/resources/settings/site_settings/protocol_handlers.js ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 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 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 * @fileoverview A helper object used from the "Site Settings" section to 6 * @fileoverview A helper object used from the "Site Settings" section to
7 * interact with the content settings prefs. 7 * interact with the content settings prefs.
8 */ 8 */
9 9
10 /** 10 /**
(...skipping 22 matching lines...) Expand all
33 * exceptions: ExceptionListPref}} 33 * exceptions: ExceptionListPref}}
34 */ 34 */
35 var SiteSettingsPref; 35 var SiteSettingsPref;
36 36
37 /** 37 /**
38 * @typedef {{name: string, 38 * @typedef {{name: string,
39 * id: string}} 39 * id: string}}
40 */ 40 */
41 var MediaPickerEntry; 41 var MediaPickerEntry;
42 42
43 /**
44 * @typedef {{protocol: string,
45 * spec: string}}
46 */
47 var ProtocolHandlerEntry;
48
43 cr.define('settings', function() { 49 cr.define('settings', function() {
44 /** @interface */ 50 /** @interface */
45 function SiteSettingsPrefsBrowserProxy() {} 51 function SiteSettingsPrefsBrowserProxy() {}
46 52
47 SiteSettingsPrefsBrowserProxy.prototype = { 53 SiteSettingsPrefsBrowserProxy.prototype = {
48 /** 54 /**
49 * Sets the default value for a site settings category. 55 * Sets the default value for a site settings category.
50 * @param {string} contentType The name of the category to change. 56 * @param {string} contentType The name of the category to change.
51 * @param {string} defaultValue The name of the value to set as default. 57 * @param {string} defaultValue The name of the value to set as default.
52 */ 58 */
(...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after
244 removeProtocolHandler: function(protocol, url) { 250 removeProtocolHandler: function(protocol, url) {
245 chrome.send('removeHandler', [[protocol, url]]); 251 chrome.send('removeHandler', [[protocol, url]]);
246 }, 252 },
247 }; 253 };
248 254
249 return { 255 return {
250 SiteSettingsPrefsBrowserProxy: SiteSettingsPrefsBrowserProxy, 256 SiteSettingsPrefsBrowserProxy: SiteSettingsPrefsBrowserProxy,
251 SiteSettingsPrefsBrowserProxyImpl: SiteSettingsPrefsBrowserProxyImpl, 257 SiteSettingsPrefsBrowserProxyImpl: SiteSettingsPrefsBrowserProxyImpl,
252 }; 258 };
253 }); 259 });
OLDNEW
« no previous file with comments | « chrome/browser/resources/settings/site_settings/protocol_handlers.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698