OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 // resourcesPrivate. | 5 // resourcesPrivate. |
6 namespace resourcesPrivate { | 6 namespace resourcesPrivate { |
7 enum Component { identity }; | 7 enum Component { identity, pdf }; |
8 | 8 |
9 callback GetStringsCallback = void (object result); | 9 callback GetStringsCallback = void (object result); |
10 | 10 |
11 interface Functions { | 11 interface Functions { |
12 // Gets localized strings for a component extension. Includes default WebUI | 12 // Gets localized strings for a component extension. Includes default WebUI |
13 // loadTimeData values for text and language settings (fontsize, fontfamily, | 13 // loadTimeData values for text and language settings (fontsize, fontfamily, |
14 // language, textdirection). See | 14 // language, textdirection). See |
15 // chrome/browser/extensions/api/resources_private/resources_private_api.cc | 15 // chrome/browser/extensions/api/resources_private/resources_private_api.cc |
16 // for instructions on adding a new component to this API. | 16 // for instructions on adding a new component to this API. |
17 // | 17 // |
18 // |component| : Internal chrome component to get strings for. | 18 // |component| : Internal chrome component to get strings for. |
19 // |callback| : Called with a dictionary mapping names to strings. | 19 // |callback| : Called with a dictionary mapping names to strings. |
20 static void getStrings(Component component, | 20 static void getStrings(Component component, |
21 GetStringsCallback callback); | 21 GetStringsCallback callback); |
22 }; | 22 }; |
23 }; | 23 }; |
OLD | NEW |