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

Side by Side Diff: chrome/browser/resources/settings/appearance_page/fonts_browser_proxy.js

Issue 1877923002: [MD settings] advanced font settings extension link (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: review changes Created 4 years, 8 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
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 * @typedef {{ 6 * @typedef {{
7 * fontList: Array<{0: string, 1: (string|undefined), 2: (string|undefined)}>, 7 * fontList: Array<{0: string, 1: (string|undefined), 2: (string|undefined)}>,
8 * encodingList: Array<{0: string, 1: string}>, 8 * encodingList: Array<{0: string, 1: string}>,
9 * extensionUrl: string
9 * }} 10 * }}
10 */ 11 */
11 var FontsData; 12 var FontsData;
12 13
13 cr.define('settings', function() { 14 cr.define('settings', function() {
14 /** @interface */ 15 /** @interface */
15 function FontsBrowserProxy() {} 16 function FontsBrowserProxy() {}
16 17
17 FontsBrowserProxy.prototype = { 18 FontsBrowserProxy.prototype = {
18 /** 19 /**
19 * @return {!Promise<!FontsData>} Fonts and encodings. 20 * @return {!Promise<!FontsData>} Fonts, encodings and the advanced font
21 * settings extension URL.
20 */ 22 */
21 fetchFontsData: assertNotReached, 23 fetchFontsData: assertNotReached,
24
25 observeAdvancedFontExtensionAvailable: assertNotReached,
26
27 openAdvancedFontSettings: assertNotReached,
22 }; 28 };
23 29
24 /** 30 /**
25 * @implements {settings.FontsBrowserProxy} 31 * @implements {settings.FontsBrowserProxy}
26 * @constructor 32 * @constructor
27 */ 33 */
28 function FontsBrowserProxyImpl() {} 34 function FontsBrowserProxyImpl() {}
29 35
30 cr.addSingletonGetter(FontsBrowserProxyImpl); 36 cr.addSingletonGetter(FontsBrowserProxyImpl);
31 37
32 FontsBrowserProxyImpl.prototype = { 38 FontsBrowserProxyImpl.prototype = {
33 /** @override */ 39 /** @override */
34 fetchFontsData: function() { 40 fetchFontsData: function() {
35 return cr.sendWithPromise('fetchFontsData'); 41 return cr.sendWithPromise('fetchFontsData');
36 }, 42 },
43
44 /** @override */
45 observeAdvancedFontExtensionAvailable: function() {
46 chrome.send('observeAdvancedFontExtensionAvailable');
47 },
48
49 /** @override */
50 openAdvancedFontSettings: function() {
51 chrome.send('openAdvancedFontSettings');
52 }
37 }; 53 };
38 54
39 return { 55 return {
40 FontsBrowserProxy: FontsBrowserProxy, 56 FontsBrowserProxy: FontsBrowserProxy,
41 FontsBrowserProxyImpl: FontsBrowserProxyImpl, 57 FontsBrowserProxyImpl: FontsBrowserProxyImpl,
42 }; 58 };
43 }); 59 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698