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_instance.h" | 9 #include "ppapi/c/pp_instance.h" |
9 | 10 |
10 // Zoom interface should only apply to those full-page "plugin-document". | 11 // Zoom interface should only apply to those full-page "plugin-document". |
11 #define PPP_ZOOM_DEV_INTERFACE "PPP_Zoom(Dev);0.1" | 12 #define PPP_ZOOM_DEV_INTERFACE "PPP_Zoom(Dev);0.2" |
12 | 13 |
13 struct PPP_Zoom_Dev { | 14 struct PPP_Zoom_Dev { |
14 // 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 |
15 // 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 |
16 // 100, i.e. 150% zoom is 1.5. | 17 // 100, i.e. 150% zoom is 1.5. |
17 void (*Zoom)(PP_Instance instance, | 18 void (*Zoom)(PP_Instance instance, |
18 double factor, | 19 double factor, |
19 bool text_only); | 20 PP_Bool text_only); |
20 }; | 21 }; |
21 | 22 |
22 #endif // PPAPI_C_DEV_PPP_ZOOM_DEV_H_ | 23 #endif // PPAPI_C_DEV_PPP_ZOOM_DEV_H_ |
OLD | NEW |