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

Side by Side Diff: chrome/common/extensions/api/resources_private.idl

Issue 1329213002: PDF: Use chrome.resourcesPrivate instead of Pepper to display translated strings (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@i18n_api
Patch Set: Remove test cases Created 5 years, 3 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
« no previous file with comments | « chrome/common/extensions/api/OWNERS ('k') | components/pdf/renderer/DEPS » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 };
OLDNEW
« no previous file with comments | « chrome/common/extensions/api/OWNERS ('k') | components/pdf/renderer/DEPS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698