| 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 dev/ppb_zoom_dev.idl modified Fri Aug 26 15:06:04 2011. */ | 6 /* From dev/ppb_zoom_dev.idl modified Wed Oct 5 14:06:02 2011. */ |
| 7 | 7 |
| 8 #ifndef PPAPI_C_DEV_PPB_ZOOM_DEV_H_ | 8 #ifndef PPAPI_C_DEV_PPB_ZOOM_DEV_H_ |
| 9 #define PPAPI_C_DEV_PPB_ZOOM_DEV_H_ | 9 #define PPAPI_C_DEV_PPB_ZOOM_DEV_H_ |
| 10 | 10 |
| 11 #include "ppapi/c/pp_instance.h" | 11 #include "ppapi/c/pp_instance.h" |
| 12 #include "ppapi/c/pp_macros.h" | 12 #include "ppapi/c/pp_macros.h" |
| 13 #include "ppapi/c/pp_stdint.h" | 13 #include "ppapi/c/pp_stdint.h" |
| 14 | 14 |
| 15 #define PPB_ZOOM_DEV_INTERFACE_0_2 "PPB_Zoom(Dev);0.2" | 15 #define PPB_ZOOM_DEV_INTERFACE_0_2 "PPB_Zoom(Dev);0.2" |
| 16 #define PPB_ZOOM_DEV_INTERFACE PPB_ZOOM_DEV_INTERFACE_0_2 | 16 #define PPB_ZOOM_DEV_INTERFACE PPB_ZOOM_DEV_INTERFACE_0_2 |
| 17 | 17 |
| 18 /** | 18 /** |
| 19 * @file | 19 * @file |
| 20 * Implementation of the Zoom interface. | 20 * Implementation of the Zoom interface. |
| 21 */ | 21 */ |
| 22 | 22 |
| 23 | 23 |
| 24 /** | 24 /** |
| 25 * @addtogroup Interfaces | 25 * @addtogroup Interfaces |
| 26 * @{ | 26 * @{ |
| 27 */ | 27 */ |
| 28 /** | 28 /** |
| 29 * Zoom interface should only apply to those full-page "plugin-document". | 29 * Zoom interface should only apply to those full-page "plugin-document". |
| 30 */ | 30 */ |
| 31 struct PPB_Zoom_Dev { | 31 struct PPB_Zoom_Dev_0_2 { |
| 32 /** | 32 /** |
| 33 * Informs the browser about the new zoom factor for the plugin (see | 33 * Informs the browser about the new zoom factor for the plugin (see |
| 34 * ppp_zoom_dev.h for a description of zoom factor). The plugin should only | 34 * ppp_zoom_dev.h for a description of zoom factor). The plugin should only |
| 35 * call this function if the zoom change was triggered by the browser, it's | 35 * call this function if the zoom change was triggered by the browser, it's |
| 36 * only needed in case a plugin can update its own zoom, say because of its | 36 * only needed in case a plugin can update its own zoom, say because of its |
| 37 * own UI. | 37 * own UI. |
| 38 */ | 38 */ |
| 39 void (*ZoomChanged)(PP_Instance instance, double factor); | 39 void (*ZoomChanged)(PP_Instance instance, double factor); |
| 40 /** | 40 /** |
| 41 * Sets the mininum and maximium zoom factors. | 41 * Sets the mininum and maximium zoom factors. |
| 42 */ | 42 */ |
| 43 void (*ZoomLimitsChanged)(PP_Instance instance, | 43 void (*ZoomLimitsChanged)(PP_Instance instance, |
| 44 double minimum_factor, | 44 double minimum_factor, |
| 45 double maximium_factor); | 45 double maximium_factor); |
| 46 }; | 46 }; |
| 47 |
| 48 typedef struct PPB_Zoom_Dev_0_2 PPB_Zoom_Dev; |
| 47 /** | 49 /** |
| 48 * @} | 50 * @} |
| 49 */ | 51 */ |
| 50 | 52 |
| 51 #endif /* PPAPI_C_DEV_PPB_ZOOM_DEV_H_ */ | 53 #endif /* PPAPI_C_DEV_PPB_ZOOM_DEV_H_ */ |
| 52 | 54 |
| OLD | NEW |