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. 4 5// resourcesPrivate. 6namespace resourcesPrivate { 7 enum Component { identity, pdf }; 8 9 callback GetStringsCallback = void (object result); 10 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. 17 // 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); 22 }; 23}; 24