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 M22 = 12.5 |
17 }; | 17 }; |
18 | 18 |
19 [assert_size(4)] | 19 [assert_size(4)] |
| 20 enum PP_FlashLSORestrictions { |
| 21 /** |
| 22 * No restrictions on Flash LSOs. |
| 23 */ |
| 24 PP_FLASHLSORESTRICTIONS_NONE = 1, |
| 25 |
| 26 /** |
| 27 * Don't allow access to Flash LSOs. |
| 28 */ |
| 29 PP_FLASHLSORESTRICTIONS_BLOCK = 2, |
| 30 |
| 31 /** |
| 32 * Store Flash LSOs in memory only. |
| 33 */ |
| 34 PP_FLASHLSORESTRICTIONS_IN_MEMORY = 3 |
| 35 }; |
| 36 |
| 37 [assert_size(4)] |
20 enum PP_FlashSetting { | 38 enum PP_FlashSetting { |
21 /** | 39 /** |
22 * Specifies if the system likely supports 3D hardware acceleration. | 40 * Specifies if the system likely supports 3D hardware acceleration. |
23 * | 41 * |
24 * The result is a boolean PP_Var, depending on the supported nature of 3D | 42 * The result is a boolean PP_Var, depending on the supported nature of 3D |
25 * acceleration. If querying this function returns true, the 3D system will | 43 * acceleration. If querying this function returns true, the 3D system will |
26 * normally use the native hardware for rendering which will be much faster. | 44 * normally use the native hardware for rendering which will be much faster. |
27 * | 45 * |
28 * Having this set to true only means that 3D should be used to draw 2D and | 46 * Having this set to true only means that 3D should be used to draw 2D and |
29 * video elements. PP_FLASHSETTING_STAGE3D_ENABLED should be checked to | 47 * video elements. PP_FLASHSETTING_STAGE3D_ENABLED should be checked to |
(...skipping 25 matching lines...) Expand all Loading... |
55 * | 73 * |
56 * For example: "en-US" or "de". | 74 * For example: "en-US" or "de". |
57 * | 75 * |
58 * Returns an undefined PP_Var on invalid instance. | 76 * Returns an undefined PP_Var on invalid instance. |
59 */ | 77 */ |
60 PP_FLASHSETTING_LANGUAGE = 4, | 78 PP_FLASHSETTING_LANGUAGE = 4, |
61 | 79 |
62 /** | 80 /** |
63 * Specifies the number of CPU cores that are present on the system. | 81 * Specifies the number of CPU cores that are present on the system. |
64 */ | 82 */ |
65 PP_FLASHSETTING_NUMCORES = 5 | 83 PP_FLASHSETTING_NUMCORES = 5, |
| 84 |
| 85 /** |
| 86 * Specifies restrictions on how flash should handle LSOs. The result is an |
| 87 * int from <code>PP_FlashLSORestrictions</code>. |
| 88 */ |
| 89 PP_FLASHSETTING_LSORESTRICTIONS = 6 |
66 }; | 90 }; |
67 | 91 |
68 /** | 92 /** |
69 * This enum provides keys for setting breakpad crash report data. | 93 * This enum provides keys for setting breakpad crash report data. |
70 */ | 94 */ |
71 [assert_size(4)] | 95 [assert_size(4)] |
72 enum PP_FlashCrashKey { | 96 enum PP_FlashCrashKey { |
73 /** | 97 /** |
74 * Specifies the document URL which contains the flash instance. | 98 * Specifies the document URL which contains the flash instance. |
75 */ | 99 */ |
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
217 | 241 |
218 /** | 242 /** |
219 * Allows setting breakpad crash data which will be included in plugin crash | 243 * Allows setting breakpad crash data which will be included in plugin crash |
220 * reports. Returns PP_FALSE if crash data could not be set. | 244 * reports. Returns PP_FALSE if crash data could not be set. |
221 */ | 245 */ |
222 [version=12.5] | 246 [version=12.5] |
223 PP_Bool SetCrashData([in] PP_Instance instance, | 247 PP_Bool SetCrashData([in] PP_Instance instance, |
224 [in] PP_FlashCrashKey key, | 248 [in] PP_FlashCrashKey key, |
225 [in] PP_Var value); | 249 [in] PP_Var value); |
226 }; | 250 }; |
OLD | NEW |