OLD | NEW |
1 /* Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 /* Copyright (c) 2010 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 #ifndef PPAPI_C_DEV_PPB_ZOOM_DEV_H_ | 5 #ifndef PPAPI_C_DEV_PPB_ZOOM_DEV_H_ |
6 #define PPAPI_C_DEV_PPB_ZOOM_DEV_H_ | 6 #define PPAPI_C_DEV_PPB_ZOOM_DEV_H_ |
7 | 7 |
8 #include "ppapi/c/pp_instance.h" | 8 #include "ppapi/c/pp_instance.h" |
9 | 9 |
10 // Zoom interface should only apply to those full-page "plugin-document". | 10 // Zoom interface should only apply to those full-page "plugin-document". |
11 #define PPB_ZOOM_DEV_INTERFACE "PPB_Zoom(Dev);0.2" | 11 #define PPB_ZOOM_DEV_INTERFACE_0_2 "PPB_Zoom(Dev);0.2" |
| 12 #define PPB_ZOOM_DEV_INTERFACE PPB_ZOOM_DEV_INTERFACE_0_2 |
12 | 13 |
13 struct PPB_Zoom_Dev { | 14 struct PPB_Zoom_Dev { |
14 // Informs the browser about the new zoom factor for the plugin (see | 15 // Informs the browser about the new zoom factor for the plugin (see |
15 // ppp_zoom_dev.h for a description of zoom factor). The plugin should only | 16 // ppp_zoom_dev.h for a description of zoom factor). The plugin should only |
16 // call this function if the zoom change was triggered by the browser, it's | 17 // call this function if the zoom change was triggered by the browser, it's |
17 // only needed in case a plugin can update its own zoom, say because of its | 18 // only needed in case a plugin can update its own zoom, say because of its |
18 // own UI. | 19 // own UI. |
19 void (*ZoomChanged)(PP_Instance instance, | 20 void (*ZoomChanged)(PP_Instance instance, |
20 double factor); | 21 double factor); |
21 | 22 |
22 // Sets the mininum and maximium zoom factors. | 23 // Sets the mininum and maximium zoom factors. |
23 void (*ZoomLimitsChanged)(PP_Instance instance, | 24 void (*ZoomLimitsChanged)(PP_Instance instance, |
24 double minimum_factor, | 25 double minimum_factor, |
25 double maximium_factor); | 26 double maximium_factor); |
26 }; | 27 }; |
27 | 28 |
28 #endif /* PPAPI_C_DEV_PPB_ZOOM_DEV_H_ */ | 29 #endif /* PPAPI_C_DEV_PPB_ZOOM_DEV_H_ */ |
29 | 30 |
OLD | NEW |