| 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 }; | 15 }; |
| 16 | 16 |
| 17 [assert_size(4)] | 17 [assert_size(4)] |
| 18 enum PP_FlashSetting { | 18 enum PP_FlashSetting { |
| 19 /** | 19 /** |
| 20 * Specifies if the system likely supports 3D hardware acceleration. | 20 * Specifies if the system likely supports 3D hardware acceleration. |
| 21 * | 21 * |
| 22 * The result is an int where 1 corresponds to true and 0 corresponds to | 22 * The result is an int where 1 corresponds to true and 0 corresponds to |
| 23 * false, depending on the supported nature of 3D acceleration. If querying | 23 * false, depending on the supported nature of 3D acceleration. If querying |
| 24 * this function returns 1, the 3D system will normally use the native | 24 * this function returns 1, the 3D system will normally use the native |
| 25 * hardware for rendering which will be much faster. | 25 * hardware for rendering which will be much faster. |
| 26 * | 26 * |
| 27 * Having this set to 1 only means that 3D should be used to draw 2D and |
| 28 * video elements. PP_FLASHSETTING_STAGE3D_ENABLED should be checked to |
| 29 * determine if it's ok to use 3D for arbitrary content. |
| 30 * |
| 27 * In rare cases (depending on the platform) this value will be 1 but a | 31 * In rare cases (depending on the platform) this value will be 1 but a |
| 28 * created 3D context will use emulation because context initialization | 32 * created 3D context will use emulation because context initialization |
| 29 * failed. | 33 * failed. |
| 30 */ | 34 */ |
| 31 PP_FLASHSETTING_3DENABLED = 1, | 35 PP_FLASHSETTING_3DENABLED = 1, |
| 32 | 36 |
| 33 /** | 37 /** |
| 34 * Specifies if the given instance is in private/inconito/off-the-record mode | 38 * Specifies if the given instance is in private/inconito/off-the-record mode |
| 35 * (returns 1) or "regular" mode (returns 0). Returns -1 on invalid instance. | 39 * (returns 1) or "regular" mode (returns 0). Returns -1 on invalid instance. |
| 36 */ | 40 */ |
| 37 PP_FLASHSETTING_INCOGNITO = 2 | 41 PP_FLASHSETTING_INCOGNITO = 2, |
| 42 |
| 43 /** |
| 44 * Specifies if arbitrary 3d commands are supported (returns 1), or if 3d |
| 45 * should only be used for drawing 2d and video (returns 0). |
| 46 * |
| 47 * This should only be enabled if PP_FLASHSETTING_3DENABLED is 1. |
| 48 */ |
| 49 PP_FLASHSETTING_STAGE3DENABLED = 3 |
| 38 }; | 50 }; |
| 39 | 51 |
| 40 /** | 52 /** |
| 41 * The <code>PPB_Flash</code> interface contains pointers to various functions | 53 * The <code>PPB_Flash</code> interface contains pointers to various functions |
| 42 * that are only needed to support Pepper Flash. | 54 * that are only needed to support Pepper Flash. |
| 43 */ | 55 */ |
| 44 interface PPB_Flash { | 56 interface PPB_Flash { |
| 45 /** | 57 /** |
| 46 * Sets or clears the rendering hint that the given plugin instance is always | 58 * Sets or clears the rendering hint that the given plugin instance is always |
| 47 * on top of page content. Somewhat more optimized painting can be used in | 59 * on top of page content. Somewhat more optimized painting can be used in |
| (...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 190 struct PP_Var (*GetProxyForURL)(PP_Instance instance, const char* url); | 202 struct PP_Var (*GetProxyForURL)(PP_Instance instance, const char* url); |
| 191 int32_t (*Navigate)(PP_Resource request_info, | 203 int32_t (*Navigate)(PP_Resource request_info, |
| 192 const char* target, | 204 const char* target, |
| 193 bool from_user_action); | 205 bool from_user_action); |
| 194 void (*RunMessageLoop)(PP_Instance instance); | 206 void (*RunMessageLoop)(PP_Instance instance); |
| 195 void (*QuitMessageLoop)(PP_Instance instance); | 207 void (*QuitMessageLoop)(PP_Instance instance); |
| 196 double (*GetLocalTimeZoneOffset)(PP_Instance instance, PP_Time t); | 208 double (*GetLocalTimeZoneOffset)(PP_Instance instance, PP_Time t); |
| 197 struct PP_Var (*GetCommandLineArgs)(PP_Module module); | 209 struct PP_Var (*GetCommandLineArgs)(PP_Module module); |
| 198 }; | 210 }; |
| 199 #endinl | 211 #endinl |
| OLD | NEW |