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_selection_dev.idl modified Fri Nov  9 12:50:33 2012. */
      7 
      8 #ifndef PPAPI_C_DEV_PPP_SELECTION_DEV_H_
      9 #define PPAPI_C_DEV_PPP_SELECTION_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 #include "ppapi/c/pp_var.h"
     16 
     17 #define PPP_SELECTION_DEV_INTERFACE_0_3 "PPP_Selection(Dev);0.3"
     18 #define PPP_SELECTION_DEV_INTERFACE PPP_SELECTION_DEV_INTERFACE_0_3
     19 
     20 /**
     21  * @file
     22  * This file defines the PPP_Selection_Dev interface.
     23  */
     24 
     25 
     26 /**
     27  * @addtogroup Interfaces
     28  * @{
     29  */
     30 struct PPP_Selection_Dev_0_3 {
     31   /**
     32    * Returns the selection, either as plain text or as html depending on "html".
     33    * If nothing is selected, or if the given format is unavailable, return a
     34    * void string.
     35    */
     36   struct PP_Var (*GetSelectedText)(PP_Instance instance, PP_Bool html);
     37 };
     38 
     39 typedef struct PPP_Selection_Dev_0_3 PPP_Selection_Dev;
     40 /**
     41  * @}
     42  */
     43 
     44 #endif  /* PPAPI_C_DEV_PPP_SELECTION_DEV_H_ */
     45 
     46