Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(655)

Side by Side Diff: ppapi/c/dev/ppp_zoom_dev.h

Issue 7833031: Convert zoom and widget to IDL (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 9 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « ppapi/c/dev/ppp_widget_dev.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
6 /* From dev/ppp_zoom_dev.idl modified Fri Aug 26 15:42:06 2011. */
7
5 #ifndef PPAPI_C_DEV_PPP_ZOOM_DEV_H_ 8 #ifndef PPAPI_C_DEV_PPP_ZOOM_DEV_H_
6 #define PPAPI_C_DEV_PPP_ZOOM_DEV_H_ 9 #define PPAPI_C_DEV_PPP_ZOOM_DEV_H_
7 10
8 #include "ppapi/c/pp_bool.h" 11 #include "ppapi/c/pp_bool.h"
9 #include "ppapi/c/pp_instance.h" 12 #include "ppapi/c/pp_instance.h"
13 #include "ppapi/c/pp_macros.h"
14 #include "ppapi/c/pp_stdint.h"
10 15
11 // Zoom interface should only apply to those full-page "plugin-document". 16 #define PPP_ZOOM_DEV_INTERFACE_0_3 "PPP_Zoom(Dev);0.3"
12 #define PPP_ZOOM_DEV_INTERFACE "PPP_Zoom(Dev);0.3" 17 #define PPP_ZOOM_DEV_INTERFACE PPP_ZOOM_DEV_INTERFACE_0_3
13 18
19 /**
20 * @file
21 * Implementation of the Zoom interface.
22 */
23
24
25 /**
26 * @addtogroup Interfaces
27 * @{
28 */
29 /**
30 * Zoom interface should only apply to those full-page "plugin-document".
31 */
14 struct PPP_Zoom_Dev { 32 struct PPP_Zoom_Dev {
15 // Instruct plug-in to zoom according to the given factor and whether the zoom 33 /**
16 // only applies to text only. The scale factor is the percentage divided by 34 * Instruct plug-in to zoom according to the given factor and whether the zoom
17 // 100, i.e. 150% zoom is 1.5. 35 * only applies to text only. The scale factor is the percentage divided by
18 void (*Zoom)(PP_Instance instance, 36 * 100, i.e. 150% zoom is 1.5.
19 double factor, 37 */
20 PP_Bool text_only); 38 void (*Zoom)(PP_Instance instance, double factor, PP_Bool text_only);
21 }; 39 };
40 /**
41 * @}
42 */
22 43
23 #endif /* PPAPI_C_DEV_PPP_ZOOM_DEV_H_ */ 44 #endif /* PPAPI_C_DEV_PPP_ZOOM_DEV_H_ */
24 45
OLDNEW
« no previous file with comments | « ppapi/c/dev/ppp_widget_dev.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698