| 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_flash.idl modified Mon Jun 25 12:46:59 2012. */ | 6 /* From private/ppb_flash.idl modified Mon Jul 30 22:15:54 2012. */ |
| 7 | 7 |
| 8 #ifndef PPAPI_C_PRIVATE_PPB_FLASH_H_ | 8 #ifndef PPAPI_C_PRIVATE_PPB_FLASH_H_ |
| 9 #define PPAPI_C_PRIVATE_PPB_FLASH_H_ | 9 #define PPAPI_C_PRIVATE_PPB_FLASH_H_ |
| 10 | 10 |
| 11 #include "ppapi/c/dev/ppb_font_dev.h" | 11 #include "ppapi/c/dev/ppb_font_dev.h" |
| 12 #include "ppapi/c/pp_bool.h" | 12 #include "ppapi/c/pp_bool.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_module.h" | 15 #include "ppapi/c/pp_module.h" |
| 16 #include "ppapi/c/pp_point.h" | 16 #include "ppapi/c/pp_point.h" |
| (...skipping 17 matching lines...) Expand all Loading... |
| 34 * This file contains the <code>PPB_Flash</code> interface. | 34 * This file contains the <code>PPB_Flash</code> interface. |
| 35 */ | 35 */ |
| 36 | 36 |
| 37 | 37 |
| 38 /** | 38 /** |
| 39 * @addtogroup Enums | 39 * @addtogroup Enums |
| 40 * @{ | 40 * @{ |
| 41 */ | 41 */ |
| 42 typedef enum { | 42 typedef enum { |
| 43 /** | 43 /** |
| 44 * No restrictions on Flash LSOs. |
| 45 */ |
| 46 PP_FLASHLSORESTRICTIONS_NONE = 1, |
| 47 /** |
| 48 * Don't allow access to Flash LSOs. |
| 49 */ |
| 50 PP_FLASHLSORESTRICTIONS_BLOCK = 2, |
| 51 /** |
| 52 * Store Flash LSOs in memory only. |
| 53 */ |
| 54 PP_FLASHLSORESTRICTIONS_IN_MEMORY = 3 |
| 55 } PP_FlashLSORestrictions; |
| 56 PP_COMPILE_ASSERT_SIZE_IN_BYTES(PP_FlashLSORestrictions, 4); |
| 57 |
| 58 typedef enum { |
| 59 /** |
| 44 * Specifies if the system likely supports 3D hardware acceleration. | 60 * Specifies if the system likely supports 3D hardware acceleration. |
| 45 * | 61 * |
| 46 * The result is a boolean PP_Var, depending on the supported nature of 3D | 62 * The result is a boolean PP_Var, depending on the supported nature of 3D |
| 47 * acceleration. If querying this function returns true, the 3D system will | 63 * acceleration. If querying this function returns true, the 3D system will |
| 48 * normally use the native hardware for rendering which will be much faster. | 64 * normally use the native hardware for rendering which will be much faster. |
| 49 * | 65 * |
| 50 * Having this set to true only means that 3D should be used to draw 2D and | 66 * Having this set to true only means that 3D should be used to draw 2D and |
| 51 * video elements. PP_FLASHSETTING_STAGE3D_ENABLED should be checked to | 67 * video elements. PP_FLASHSETTING_STAGE3D_ENABLED should be checked to |
| 52 * determine if it's ok to use 3D for arbitrary content. | 68 * determine if it's ok to use 3D for arbitrary content. |
| 53 * | 69 * |
| (...skipping 19 matching lines...) Expand all Loading... |
| 73 * Specifies the string for the language code of the UI of the browser. | 89 * Specifies the string for the language code of the UI of the browser. |
| 74 * | 90 * |
| 75 * For example: "en-US" or "de". | 91 * For example: "en-US" or "de". |
| 76 * | 92 * |
| 77 * Returns an undefined PP_Var on invalid instance. | 93 * Returns an undefined PP_Var on invalid instance. |
| 78 */ | 94 */ |
| 79 PP_FLASHSETTING_LANGUAGE = 4, | 95 PP_FLASHSETTING_LANGUAGE = 4, |
| 80 /** | 96 /** |
| 81 * Specifies the number of CPU cores that are present on the system. | 97 * Specifies the number of CPU cores that are present on the system. |
| 82 */ | 98 */ |
| 83 PP_FLASHSETTING_NUMCORES = 5 | 99 PP_FLASHSETTING_NUMCORES = 5, |
| 100 /** |
| 101 * Specifies restrictions on how flash should handle LSOs. The result is an |
| 102 * int from <code>PP_FlashLSORestrictions</code>. |
| 103 */ |
| 104 PP_FLASHSETTING_LSORESTRICTIONS = 6 |
| 84 } PP_FlashSetting; | 105 } PP_FlashSetting; |
| 85 PP_COMPILE_ASSERT_SIZE_IN_BYTES(PP_FlashSetting, 4); | 106 PP_COMPILE_ASSERT_SIZE_IN_BYTES(PP_FlashSetting, 4); |
| 86 | 107 |
| 87 /** | 108 /** |
| 88 * This enum provides keys for setting breakpad crash report data. | 109 * This enum provides keys for setting breakpad crash report data. |
| 89 */ | 110 */ |
| 90 typedef enum { | 111 typedef enum { |
| 91 /** | 112 /** |
| 92 * Specifies the document URL which contains the flash instance. | 113 * Specifies the document URL which contains the flash instance. |
| 93 */ | 114 */ |
| (...skipping 256 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 350 struct PP_Var (*GetDeviceID)(PP_Instance instance); | 371 struct PP_Var (*GetDeviceID)(PP_Instance instance); |
| 351 int32_t (*GetSettingInt)(PP_Instance instance, PP_FlashSetting setting); | 372 int32_t (*GetSettingInt)(PP_Instance instance, PP_FlashSetting setting); |
| 352 struct PP_Var (*GetSetting)(PP_Instance instance, PP_FlashSetting setting); | 373 struct PP_Var (*GetSetting)(PP_Instance instance, PP_FlashSetting setting); |
| 353 }; | 374 }; |
| 354 /** | 375 /** |
| 355 * @} | 376 * @} |
| 356 */ | 377 */ |
| 357 | 378 |
| 358 #endif /* PPAPI_C_PRIVATE_PPB_FLASH_H_ */ | 379 #endif /* PPAPI_C_PRIVATE_PPB_FLASH_H_ */ |
| 359 | 380 |
| OLD | NEW |