Pepper_56_C_interfaces
Pepper_56_C_interfaces
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Groups
PPB_Find_Private_0_3 Struct Reference

#include <ppb_find_private.h>

Public Attributes

void(* SetPluginToHandleFindRequests )(PP_Instance instance)
 
void(* NumberOfFindResultsChanged )(PP_Instance instance, int32_t total, PP_Bool final_result)
 
void(* SelectedFindResultChanged )(PP_Instance instance, int32_t index)
 
void(* SetTickmarks )(PP_Instance instance, const struct PP_Rect tickmarks[], uint32_t count)
 

Detailed Description

This is a private interface for doing browser Find in the PDF plugin.

Member Data Documentation

void(* PPB_Find_Private_0_3::NumberOfFindResultsChanged)(PP_Instance instance, int32_t total, PP_Bool final_result)

Updates the number of find results for the current search term. If there are no matches 0 should be passed in. Only when the plugin has finished searching should it pass in the final count with final_result set to PP_TRUE.

void(* PPB_Find_Private_0_3::SelectedFindResultChanged)(PP_Instance instance, int32_t index)

Updates the index of the currently selected search item.

void(* PPB_Find_Private_0_3::SetPluginToHandleFindRequests)(PP_Instance instance)

Sets the instance of this plugin as the mechanism that will be used to handle find requests in the renderer. This will only succeed if the plugin is embedded within the content of the top level frame. Note that this will result in the renderer handing over all responsibility for doing find to the plugin and content from the rest of the page will not be searched.

In the case that the plugin is loaded directly as the top level document, this function does not need to be called. In that case the plugin is assumed to handle find requests.

There can only be one plugin which handles find requests. If a plugin calls this while an existing plugin is registered, the existing plugin will be de-registered and will no longer receive any requests.

void(* PPB_Find_Private_0_3::SetTickmarks)(PP_Instance instance, const struct PP_Rect tickmarks[], uint32_t count)

Updates the tickmarks on the scrollbar for the find request. |tickmarks| contains |count| PP_Rects indicating the tickmark ranges.


The documentation for this struct was generated from the following file: