| 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 /* From private/ppb_talk_private.idl modified Fri Mar 9 11:03:31 2012. */ | 6 /* From private/ppb_talk_private.idl modified Fri Nov 9 14:42:36 2012. */ |
| 7 | 7 |
| 8 #ifndef PPAPI_C_PRIVATE_PPB_TALK_PRIVATE_H_ | 8 #ifndef PPAPI_C_PRIVATE_PPB_TALK_PRIVATE_H_ |
| 9 #define PPAPI_C_PRIVATE_PPB_TALK_PRIVATE_H_ | 9 #define PPAPI_C_PRIVATE_PPB_TALK_PRIVATE_H_ |
| 10 | 10 |
| 11 #include "ppapi/c/pp_completion_callback.h" | 11 #include "ppapi/c/pp_completion_callback.h" |
| 12 #include "ppapi/c/pp_instance.h" | 12 #include "ppapi/c/pp_instance.h" |
| 13 #include "ppapi/c/pp_macros.h" | 13 #include "ppapi/c/pp_macros.h" |
| 14 #include "ppapi/c/pp_resource.h" | 14 #include "ppapi/c/pp_resource.h" |
| 15 #include "ppapi/c/pp_stdint.h" | 15 #include "ppapi/c/pp_stdint.h" |
| 16 | 16 |
| (...skipping 14 matching lines...) Expand all Loading... |
| 31 * Extra interface for Talk. | 31 * Extra interface for Talk. |
| 32 */ | 32 */ |
| 33 struct PPB_Talk_Private_1_0 { | 33 struct PPB_Talk_Private_1_0 { |
| 34 /** | 34 /** |
| 35 * Creates a Talk_Private resource. | 35 * Creates a Talk_Private resource. |
| 36 */ | 36 */ |
| 37 PP_Resource (*Create)(PP_Instance instance); | 37 PP_Resource (*Create)(PP_Instance instance); |
| 38 /** | 38 /** |
| 39 * Displays security UI. | 39 * Displays security UI. |
| 40 * | 40 * |
| 41 * The callback will be issued with PP_OK as the result of the user gave | 41 * The callback will be issued with 1 as the result if the user gave |
| 42 * permission, or PP_ERROR_NOACCESS if the user denied. | 42 * permission, or 0 if the user denied. |
| 43 * | 43 * |
| 44 * You can only have one call pending. It will return PP_OK_COMPLETIONPENDING | 44 * You can only have one call pending. It will return PP_OK_COMPLETIONPENDING |
| 45 * if the request is queued, or PP_ERROR_INPROGRESS if there is already a | 45 * if the request is queued, or PP_ERROR_INPROGRESS if there is already a |
| 46 * request in progress. | 46 * request in progress. |
| 47 */ | 47 */ |
| 48 int32_t (*GetPermission)(PP_Resource talk_resource, | 48 int32_t (*GetPermission)(PP_Resource talk_resource, |
| 49 struct PP_CompletionCallback callback); | 49 struct PP_CompletionCallback callback); |
| 50 }; | 50 }; |
| 51 | 51 |
| 52 typedef struct PPB_Talk_Private_1_0 PPB_Talk_Private; | 52 typedef struct PPB_Talk_Private_1_0 PPB_Talk_Private; |
| 53 /** | 53 /** |
| 54 * @} | 54 * @} |
| 55 */ | 55 */ |
| 56 | 56 |
| 57 #endif /* PPAPI_C_PRIVATE_PPB_TALK_PRIVATE_H_ */ | 57 #endif /* PPAPI_C_PRIVATE_PPB_TALK_PRIVATE_H_ */ |
| 58 | 58 |
| OLD | NEW |