Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / chrome / common / extensions / api / resources_private.idl
blob836b366d0e6b20aac055c9d8f3a597a4e7a2c9cd
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
3 // found in the LICENSE file.
5 // resourcesPrivate.
6 namespace resourcesPrivate {
7 enum Component { identity, pdf };
9 callback GetStringsCallback = void (object result);
11 interface Functions {
12 // Gets localized strings for a component extension. Includes default WebUI
13 // loadTimeData values for text and language settings (fontsize, fontfamily,
14 // language, textdirection). See
15 // chrome/browser/extensions/api/resources_private/resources_private_api.cc
16 // for instructions on adding a new component to this API.
18 // |component| : Internal chrome component to get strings for.
19 // |callback| : Called with a dictionary mapping names to strings.
20 static void getStrings(Component component,
21 GetStringsCallback callback);