OLD | NEW |
1 /* Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 /* Copyright (c) 2012 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 | 5 |
6 /** | 6 /** |
7 * This file contains the <code>PPB_Talk</code> interface. | 7 * This file contains the <code>PPB_Talk</code> interface. |
8 */ | 8 */ |
9 label Chrome { | 9 label Chrome { |
10 M19 = 1.0 | 10 M19 = 1.0 |
11 }; | 11 }; |
12 | 12 |
13 /** | 13 /** |
14 * Extra interface for Talk. | 14 * Extra interface for Talk. |
15 */ | 15 */ |
16 interface PPB_Talk_Private { | 16 interface PPB_Talk_Private { |
17 /** | 17 /** |
18 * Creates a Talk_Private resource. | 18 * Creates a Talk_Private resource. |
19 */ | 19 */ |
20 PP_Resource Create(PP_Instance instance); | 20 PP_Resource Create(PP_Instance instance); |
21 | 21 |
22 /** | 22 /** |
23 * Displays security UI. | 23 * Displays security UI. |
24 * | 24 * |
25 * The callback will be issued with PP_OK as the result of the user gave | 25 * The callback will be issued with 1 as the result if the user gave |
26 * permission, or PP_ERROR_NOACCESS if the user denied. | 26 * permission, or 0 if the user denied. |
27 * | 27 * |
28 * You can only have one call pending. It will return PP_OK_COMPLETIONPENDING | 28 * You can only have one call pending. It will return PP_OK_COMPLETIONPENDING |
29 * if the request is queued, or PP_ERROR_INPROGRESS if there is already a | 29 * if the request is queued, or PP_ERROR_INPROGRESS if there is already a |
30 * request in progress. | 30 * request in progress. |
31 */ | 31 */ |
32 int32_t GetPermission( | 32 int32_t GetPermission( |
33 [in] PP_Resource talk_resource, | 33 [in] PP_Resource talk_resource, |
34 [in] PP_CompletionCallback callback); | 34 [in] PP_CompletionCallback callback); |
35 }; | 35 }; |
OLD | NEW |