| 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_PPP_ZOOM_DEV_H_ | 5 #ifndef PPAPI_C_DEV_PPP_ZOOM_DEV_H_ |
| 6 #define PPAPI_C_DEV_PPP_ZOOM_DEV_H_ | 6 #define PPAPI_C_DEV_PPP_ZOOM_DEV_H_ |
| 7 | 7 |
| 8 #include "ppapi/c/pp_bool.h" | 8 #include "ppapi/c/pp_bool.h" |
| 9 #include "ppapi/c/pp_instance.h" | 9 #include "ppapi/c/pp_instance.h" |
| 10 | 10 |
| 11 // Zoom interface should only apply to those full-page "plugin-document". | 11 // Zoom interface should only apply to those full-page "plugin-document". |
| 12 #define PPP_ZOOM_DEV_INTERFACE "PPP_Zoom(Dev);0.2" | 12 #define PPP_ZOOM_DEV_INTERFACE "PPP_Zoom(Dev);0.3" |
| 13 | 13 |
| 14 struct PPP_Zoom_Dev { | 14 struct PPP_Zoom_Dev { |
| 15 // Instruct plug-in to zoom according to the given factor and whether the zoom | 15 // Instruct plug-in to zoom according to the given factor and whether the zoom |
| 16 // only applies to text only. The scale factor is the percentage divided by | 16 // only applies to text only. The scale factor is the percentage divided by |
| 17 // 100, i.e. 150% zoom is 1.5. | 17 // 100, i.e. 150% zoom is 1.5. |
| 18 void (*Zoom)(PP_Instance instance, | 18 void (*Zoom)(PP_Instance instance, |
| 19 double factor, | 19 double factor, |
| 20 PP_Bool text_only); | 20 PP_Bool text_only); |
| 21 }; | 21 }; |
| 22 | 22 |
| 23 #endif /* PPAPI_C_DEV_PPP_ZOOM_DEV_H_ */ | 23 #endif /* PPAPI_C_DEV_PPP_ZOOM_DEV_H_ */ |
| 24 | 24 |
| OLD | NEW |