OLD | NEW |
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}>, | |
9 * extensionUrl: string | 8 * extensionUrl: string |
10 * }} | 9 * }} |
11 */ | 10 */ |
12 var FontsData; | 11 var FontsData; |
13 | 12 |
14 cr.define('settings', function() { | 13 cr.define('settings', function() { |
15 /** @interface */ | 14 /** @interface */ |
16 function FontsBrowserProxy() {} | 15 function FontsBrowserProxy() {} |
17 | 16 |
18 FontsBrowserProxy.prototype = { | 17 FontsBrowserProxy.prototype = { |
19 /** | 18 /** |
20 * @return {!Promise<!FontsData>} Fonts, encodings and the advanced font | 19 * @return {!Promise<!FontsData>} Fonts and the advanced font settings |
21 * settings extension URL. | 20 * extension URL. |
22 */ | 21 */ |
23 fetchFontsData: assertNotReached, | 22 fetchFontsData: assertNotReached, |
24 | 23 |
25 observeAdvancedFontExtensionAvailable: assertNotReached, | 24 observeAdvancedFontExtensionAvailable: assertNotReached, |
26 | 25 |
27 openAdvancedFontSettings: assertNotReached, | 26 openAdvancedFontSettings: assertNotReached, |
28 }; | 27 }; |
29 | 28 |
30 /** | 29 /** |
31 * @implements {settings.FontsBrowserProxy} | 30 * @implements {settings.FontsBrowserProxy} |
(...skipping 18 matching lines...) Expand all Loading... |
50 openAdvancedFontSettings: function() { | 49 openAdvancedFontSettings: function() { |
51 chrome.send('openAdvancedFontSettings'); | 50 chrome.send('openAdvancedFontSettings'); |
52 } | 51 } |
53 }; | 52 }; |
54 | 53 |
55 return { | 54 return { |
56 FontsBrowserProxy: FontsBrowserProxy, | 55 FontsBrowserProxy: FontsBrowserProxy, |
57 FontsBrowserProxyImpl: FontsBrowserProxyImpl, | 56 FontsBrowserProxyImpl: FontsBrowserProxyImpl, |
58 }; | 57 }; |
59 }); | 58 }); |
OLD | NEW |