OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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 // identityPrivate. | 5 // identityPrivate. |
6 namespace identityPrivate { | 6 namespace identityPrivate { |
7 | 7 |
8 callback GetResourcesCallback = void (object result); | 8 callback GetStringsCallback = void (object result); |
9 | 9 |
10 interface Functions { | 10 interface Functions { |
11 // Gets resources required to render the API. | 11 // Gets localized strings required to render the API. |
12 // | 12 // |
13 // |callback| : Called with a dictionary mapping names to resource strings. | 13 // |callback| : Called with a dictionary mapping names to resource strings. |
14 static void getResources(GetResourcesCallback callback); | 14 static void getStrings(GetStringsCallback callback); |
15 }; | 15 }; |
16 | 16 |
17 interface Events { | 17 interface Events { |
18 // Fired when a web flow dialog should be displayed. | 18 // Fired when a web flow dialog should be displayed. |
19 static void onWebFlowRequest(DOMString key, DOMString url, DOMString mode); | 19 static void onWebFlowRequest(DOMString key, DOMString url, DOMString mode); |
20 }; | 20 }; |
21 }; | 21 }; |
OLD | NEW |