Home | History | Annotate | Download | only in dev
      1 /* Copyright (c) 2012 The Chromium Authors. All rights reserved.
      2  * Use of this source code is governed by a BSD-style license that can be
      3  * found in the LICENSE file.
      4  */
      5 
      6 /* From dev/ppp_zoom_dev.idl modified Wed Oct  5 14:06:02 2011. */
      7 
      8 #ifndef PPAPI_C_DEV_PPP_ZOOM_DEV_H_
      9 #define PPAPI_C_DEV_PPP_ZOOM_DEV_H_
     10 
     11 #include "ppapi/c/pp_bool.h"
     12 #include "ppapi/c/pp_instance.h"
     13 #include "ppapi/c/pp_macros.h"
     14 #include "ppapi/c/pp_stdint.h"
     15 
     16 #define PPP_ZOOM_DEV_INTERFACE_0_3 "PPP_Zoom(Dev);0.3"
     17 #define PPP_ZOOM_DEV_INTERFACE PPP_ZOOM_DEV_INTERFACE_0_3
     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  */
     32 struct PPP_Zoom_Dev_0_3 {
     33   /**
     34    * Instruct plug-in to zoom according to the given factor and whether the zoom
     35    * only applies to text only.  The scale factor is the percentage divided by
     36    * 100, i.e. 150% zoom is 1.5.
     37    */
     38   void (*Zoom)(PP_Instance instance, double factor, PP_Bool text_only);
     39 };
     40 
     41 typedef struct PPP_Zoom_Dev_0_3 PPP_Zoom_Dev;
     42 /**
     43  * @}
     44  */
     45 
     46 #endif  /* PPAPI_C_DEV_PPP_ZOOM_DEV_H_ */
     47 
     48