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

Side by Side Diff: ppapi/c/private/ppb_flash_drm.h

Issue 68773004: Pepper: Add MonitorIsExternal function to PPB_Flash_DRM. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix TODO, interface ordering.x Created 7 years 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 | Annotate | Revision Log
« no previous file with comments | « ppapi/api/private/ppb_flash_drm.idl ('k') | ppapi/cpp/private/flash_drm.h » ('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 (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_flash_drm.idl modified Sat Jun 8 16:45:26 2013. */ 6 /* From private/ppb_flash_drm.idl modified Mon Nov 11 14:49:53 2013. */
7 7
8 #ifndef PPAPI_C_PRIVATE_PPB_FLASH_DRM_H_ 8 #ifndef PPAPI_C_PRIVATE_PPB_FLASH_DRM_H_
9 #define PPAPI_C_PRIVATE_PPB_FLASH_DRM_H_ 9 #define PPAPI_C_PRIVATE_PPB_FLASH_DRM_H_
10 10
11 #include "ppapi/c/pp_bool.h" 11 #include "ppapi/c/pp_bool.h"
12 #include "ppapi/c/pp_completion_callback.h" 12 #include "ppapi/c/pp_completion_callback.h"
13 #include "ppapi/c/pp_instance.h" 13 #include "ppapi/c/pp_instance.h"
14 #include "ppapi/c/pp_macros.h" 14 #include "ppapi/c/pp_macros.h"
15 #include "ppapi/c/pp_resource.h" 15 #include "ppapi/c/pp_resource.h"
16 #include "ppapi/c/pp_stdint.h" 16 #include "ppapi/c/pp_stdint.h"
17 #include "ppapi/c/pp_var.h" 17 #include "ppapi/c/pp_var.h"
18 18
19 #define PPB_FLASH_DRM_INTERFACE_1_0 "PPB_Flash_DRM;1.0" 19 #define PPB_FLASH_DRM_INTERFACE_1_0 "PPB_Flash_DRM;1.0"
20 #define PPB_FLASH_DRM_INTERFACE PPB_FLASH_DRM_INTERFACE_1_0 20 #define PPB_FLASH_DRM_INTERFACE_1_1 "PPB_Flash_DRM;1.1"
21 #define PPB_FLASH_DRM_INTERFACE PPB_FLASH_DRM_INTERFACE_1_1
21 22
22 /** 23 /**
23 * @file 24 * @file
24 * This file contains the <code>PPB_Flash_DRM</code> interface. 25 * This file contains the <code>PPB_Flash_DRM</code> interface.
25 */ 26 */
26 27
27 28
28 /** 29 /**
29 * @addtogroup Interfaces 30 * @addtogroup Interfaces
30 * @{ 31 * @{
31 */ 32 */
32 /** 33 /**
33 * A resource for performing Flash DRM-related operations. 34 * A resource for performing Flash DRM-related operations.
34 */ 35 */
35 struct PPB_Flash_DRM_1_0 { 36 struct PPB_Flash_DRM_1_1 {
36 /** 37 /**
37 * Creates a PPB_Flash_DRM resource for performing DRM-related operations in 38 * Creates a PPB_Flash_DRM resource for performing DRM-related operations in
38 * Flash. 39 * Flash.
39 */ 40 */
40 PP_Resource (*Create)(PP_Instance instance); 41 PP_Resource (*Create)(PP_Instance instance);
41 /** 42 /**
42 * Asynchronously computes the device ID. When available, it will place the 43 * Asynchronously computes the device ID. When available, it will place the
43 * string in |*id| and will call the completion callback. On failure the 44 * string in |*id| and will call the completion callback. On failure the
44 * given var will be PP_VARTYPE_UNDEFINED. 45 * given var will be PP_VARTYPE_UNDEFINED.
45 */ 46 */
46 int32_t (*GetDeviceID)(PP_Resource drm, 47 int32_t (*GetDeviceID)(PP_Resource drm,
47 struct PP_Var* id, 48 struct PP_Var* id,
48 struct PP_CompletionCallback callback); 49 struct PP_CompletionCallback callback);
49 /** 50 /**
50 * Windows only. Synchronously outputs the HMONITOR corresponding to the 51 * Windows only. Synchronously outputs the HMONITOR corresponding to the
51 * monitor on which the plugin instance is displayed in |hmonitor|. PP_TRUE is 52 * monitor on which the plugin instance is displayed in |hmonitor|. PP_TRUE is
52 * returned on success. 53 * returned on success.
53 */ 54 */
54 PP_Bool (*GetHmonitor)(PP_Resource drm, int64_t* hmonitor); 55 PP_Bool (*GetHmonitor)(PP_Resource drm, int64_t* hmonitor);
55 /** 56 /**
56 * Asynchronously returns a PPB_FileRef resource in |file_ref| which points to 57 * Asynchronously returns a PPB_FileRef resource in |file_ref| which points to
57 * the Voucher file for performing DRM verification. |callback| will be called 58 * the Voucher file for performing DRM verification. |callback| will be called
58 * upon completion. 59 * upon completion.
59 */ 60 */
60 int32_t (*GetVoucherFile)(PP_Resource drm, 61 int32_t (*GetVoucherFile)(PP_Resource drm,
61 PP_Resource* file_ref, 62 PP_Resource* file_ref,
62 struct PP_CompletionCallback callback); 63 struct PP_CompletionCallback callback);
64 /**
65 * Asynchronously returns a value indicating whether the monitor on which the
66 * plugin instance is displayed is external. |callback| will be called upon
67 * completion.
68 */
69 int32_t (*MonitorIsExternal)(PP_Resource drm,
70 PP_Bool* is_external,
71 struct PP_CompletionCallback callback);
72 };
73
74 typedef struct PPB_Flash_DRM_1_1 PPB_Flash_DRM;
75
76 struct PPB_Flash_DRM_1_0 {
77 PP_Resource (*Create)(PP_Instance instance);
78 int32_t (*GetDeviceID)(PP_Resource drm,
79 struct PP_Var* id,
80 struct PP_CompletionCallback callback);
81 PP_Bool (*GetHmonitor)(PP_Resource drm, int64_t* hmonitor);
82 int32_t (*GetVoucherFile)(PP_Resource drm,
83 PP_Resource* file_ref,
84 struct PP_CompletionCallback callback);
63 }; 85 };
64
65 typedef struct PPB_Flash_DRM_1_0 PPB_Flash_DRM;
66 /** 86 /**
67 * @} 87 * @}
68 */ 88 */
69 89
70 #endif /* PPAPI_C_PRIVATE_PPB_FLASH_DRM_H_ */ 90 #endif /* PPAPI_C_PRIVATE_PPB_FLASH_DRM_H_ */
71 91
OLDNEW
« no previous file with comments | « ppapi/api/private/ppb_flash_drm.idl ('k') | ppapi/cpp/private/flash_drm.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698