| 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_Flash</code> interface. | 7 * This file contains the <code>PPB_Flash</code> interface. |
| 8 */ | 8 */ |
| 9 | 9 |
| 10 label Chrome { | 10 label Chrome { |
| 11 M17 = 12.0, | 11 M17 = 12.0, |
| 12 M19 = 12.1, | 12 M19 = 12.1, |
| 13 M20_0 = 12.2, | 13 M20_0 = 12.2, |
| 14 M20_1 = 12.3, | 14 M20_1 = 12.3, |
| 15 M21 = 12.4 | 15 M21 = 12.4, |
| 16 M22 = 12.5 |
| 16 }; | 17 }; |
| 17 | 18 |
| 18 [assert_size(4)] | 19 [assert_size(4)] |
| 19 enum PP_FlashSetting { | 20 enum PP_FlashSetting { |
| 20 /** | 21 /** |
| 21 * Specifies if the system likely supports 3D hardware acceleration. | 22 * Specifies if the system likely supports 3D hardware acceleration. |
| 22 * | 23 * |
| 23 * The result is a boolean PP_Var, depending on the supported nature of 3D | 24 * The result is a boolean PP_Var, depending on the supported nature of 3D |
| 24 * acceleration. If querying this function returns true, the 3D system will | 25 * acceleration. If querying this function returns true, the 3D system will |
| 25 * normally use the native hardware for rendering which will be much faster. | 26 * normally use the native hardware for rendering which will be much faster. |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 58 */ | 59 */ |
| 59 PP_FLASHSETTING_LANGUAGE = 4, | 60 PP_FLASHSETTING_LANGUAGE = 4, |
| 60 | 61 |
| 61 /** | 62 /** |
| 62 * Specifies the number of CPU cores that are present on the system. | 63 * Specifies the number of CPU cores that are present on the system. |
| 63 */ | 64 */ |
| 64 PP_FLASHSETTING_NUMCORES = 5 | 65 PP_FLASHSETTING_NUMCORES = 5 |
| 65 }; | 66 }; |
| 66 | 67 |
| 67 /** | 68 /** |
| 69 * This enum provides keys for setting breakpad crash report data. |
| 70 */ |
| 71 [assert_size(4)] |
| 72 enum PP_FlashCrashKey { |
| 73 /** |
| 74 * Specifies the document URL which contains the flash instance. |
| 75 */ |
| 76 PP_FLASHCRASHKEY_URL = 1 |
| 77 }; |
| 78 |
| 79 /** |
| 68 * The <code>PPB_Flash</code> interface contains pointers to various functions | 80 * The <code>PPB_Flash</code> interface contains pointers to various functions |
| 69 * that are only needed to support Pepper Flash. | 81 * that are only needed to support Pepper Flash. |
| 70 */ | 82 */ |
| 71 interface PPB_Flash { | 83 interface PPB_Flash { |
| 72 /** | 84 /** |
| 73 * Sets or clears the rendering hint that the given plugin instance is always | 85 * Sets or clears the rendering hint that the given plugin instance is always |
| 74 * on top of page content. Somewhat more optimized painting can be used in | 86 * on top of page content. Somewhat more optimized painting can be used in |
| 75 * this case. | 87 * this case. |
| 76 */ | 88 */ |
| 77 void SetInstanceAlwaysOnTop( | 89 void SetInstanceAlwaysOnTop( |
| (...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 195 [version=12.3] | 207 [version=12.3] |
| 196 int32_t GetSettingInt([in] PP_Instance instance, | 208 int32_t GetSettingInt([in] PP_Instance instance, |
| 197 [in] PP_FlashSetting setting); | 209 [in] PP_FlashSetting setting); |
| 198 | 210 |
| 199 /** | 211 /** |
| 200 * Returns the value associated with the given setting. Invalid enums will | 212 * Returns the value associated with the given setting. Invalid enums will |
| 201 * result in an undefined PP_Var return value. | 213 * result in an undefined PP_Var return value. |
| 202 */ | 214 */ |
| 203 [version=12.4] | 215 [version=12.4] |
| 204 PP_Var GetSetting(PP_Instance instance, PP_FlashSetting setting); | 216 PP_Var GetSetting(PP_Instance instance, PP_FlashSetting setting); |
| 217 |
| 218 /** |
| 219 * Allows setting breakpad crash data which will be included in plugin crash |
| 220 * reports. Returns PP_FALSE if crash data could not be set. |
| 221 */ |
| 222 [version=12.5] |
| 223 PP_Bool SetCrashData([in] PP_Instance instance, |
| 224 [in] PP_FlashCrashKey key, |
| 225 [in] PP_Var value); |
| 205 }; | 226 }; |
| OLD | NEW |