| OLD | NEW |
| 1 /* Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 /* Copyright (c) 2011 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 Thu Dec 15 10:30:29 2011. */ | 6 /* From private/ppb_flash.idl modified Mon Dec 19 19:43:03 2011. */ |
| 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 14 matching lines...) Expand all Loading... |
| 31 | 31 |
| 32 | 32 |
| 33 /** | 33 /** |
| 34 * @addtogroup Interfaces | 34 * @addtogroup Interfaces |
| 35 * @{ | 35 * @{ |
| 36 */ | 36 */ |
| 37 /** | 37 /** |
| 38 * The <code>PPB_Flash</code> interface contains pointers to various functions | 38 * The <code>PPB_Flash</code> interface contains pointers to various functions |
| 39 * that are only needed to support Pepper Flash. | 39 * that are only needed to support Pepper Flash. |
| 40 */ | 40 */ |
| 41 struct PPB_Flash { | 41 struct PPB_Flash_12_0 { |
| 42 /** | 42 /** |
| 43 * Sets or clears the rendering hint that the given plugin instance is always | 43 * Sets or clears the rendering hint that the given plugin instance is always |
| 44 * on top of page content. Somewhat more optimized painting can be used in | 44 * on top of page content. Somewhat more optimized painting can be used in |
| 45 * this case. | 45 * this case. |
| 46 */ | 46 */ |
| 47 void (*SetInstanceAlwaysOnTop)(PP_Instance instance, PP_Bool on_top); | 47 void (*SetInstanceAlwaysOnTop)(PP_Instance instance, PP_Bool on_top); |
| 48 /** | 48 /** |
| 49 * Draws the given pre-laid-out text. It is almost equivalent to Windows' | 49 * Draws the given pre-laid-out text. It is almost equivalent to Windows' |
| 50 * ExtTextOut with the addition of the transformation (a 3x3 matrix given the | 50 * ExtTextOut with the addition of the transformation (a 3x3 matrix given the |
| 51 * transform to apply before drawing). It also adds the allow_subpixel_aa | 51 * transform to apply before drawing). It also adds the allow_subpixel_aa |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 101 * Loads the given font in a more priviledged process on Windows. Call this if | 101 * Loads the given font in a more priviledged process on Windows. Call this if |
| 102 * Windows is giving errors for font calls. See | 102 * Windows is giving errors for font calls. See |
| 103 * content/renderer/font_cache_dispatcher_win.cc | 103 * content/renderer/font_cache_dispatcher_win.cc |
| 104 * | 104 * |
| 105 * The parameter is a pointer to a LOGFONTW structure. | 105 * The parameter is a pointer to a LOGFONTW structure. |
| 106 * | 106 * |
| 107 * On non-Windows platforms, this function does nothing. | 107 * On non-Windows platforms, this function does nothing. |
| 108 */ | 108 */ |
| 109 void (*PreloadFontWin)(const void* logfontw); | 109 void (*PreloadFontWin)(const void* logfontw); |
| 110 }; | 110 }; |
| 111 |
| 112 typedef struct PPB_Flash_12_0 PPB_Flash; |
| 111 /** | 113 /** |
| 112 * @} | 114 * @} |
| 113 */ | 115 */ |
| 114 | 116 |
| 115 /** | 117 /** |
| 116 * The old version of the interface, which cannot be generated from IDL. | 118 * The old version of the interface, which cannot be generated from IDL. |
| 117 * TODO(viettrungluu): Remove this when enough time has passed. crbug.com/104184 | 119 * TODO(viettrungluu): Remove this when enough time has passed. crbug.com/104184 |
| 118 */ | 120 */ |
| 119 #define PPB_FLASH_INTERFACE_11_0 "PPB_Flash;11" | 121 #define PPB_FLASH_INTERFACE_11_0 "PPB_Flash;11" |
| 120 struct PPB_Flash_11 { | 122 struct PPB_Flash_11 { |
| (...skipping 12 matching lines...) Expand all Loading... |
| 133 int32_t (*Navigate)(PP_Resource request_info, | 135 int32_t (*Navigate)(PP_Resource request_info, |
| 134 const char* target, | 136 const char* target, |
| 135 bool from_user_action); | 137 bool from_user_action); |
| 136 void (*RunMessageLoop)(PP_Instance instance); | 138 void (*RunMessageLoop)(PP_Instance instance); |
| 137 void (*QuitMessageLoop)(PP_Instance instance); | 139 void (*QuitMessageLoop)(PP_Instance instance); |
| 138 double (*GetLocalTimeZoneOffset)(PP_Instance instance, PP_Time t); | 140 double (*GetLocalTimeZoneOffset)(PP_Instance instance, PP_Time t); |
| 139 struct PP_Var (*GetCommandLineArgs)(PP_Module module); | 141 struct PP_Var (*GetCommandLineArgs)(PP_Module module); |
| 140 }; | 142 }; |
| 141 #endif /* PPAPI_C_PRIVATE_PPB_FLASH_H_ */ | 143 #endif /* PPAPI_C_PRIVATE_PPB_FLASH_H_ */ |
| 142 | 144 |
| OLD | NEW |