#include <text_input_controller.h>
This class can be used for giving hints to the browser about the text input status of plugins. 
Definition at line 24 of file text_input_controller.h.
 
  
  
      
        
          | pp::TextInputController::TextInputController  | 
          ( | 
          const InstanceHandle &  | 
          instance | ) | 
           | 
         
       
   | 
  
explicit   | 
  
 
A constructor for creating a TextInputController.
- Parameters
 - 
  
    | [in] | instance | The instance with which this resource will be associated.  | 
  
   
 
 
      
        
          | pp::TextInputController::~TextInputController  | 
          ( | 
           | ) | 
           | 
        
      
 
 
      
        
          | void pp::TextInputController::CancelCompositionText  | 
          ( | 
           | ) | 
           | 
        
      
 
 
      
        
          | void pp::TextInputController::SetTextInputType  | 
          ( | 
          PP_TextInput_Type  | 
          type | ) | 
           | 
        
      
 
SetTextInputType() informs the browser about the current text input mode of the plugin.
- Parameters
 - 
  
    | [in] | type | The type of text input type.  | 
  
   
 
 
      
        
          | void pp::TextInputController::UpdateCaretPosition  | 
          ( | 
          const Rect &  | 
          caret | ) | 
           | 
        
      
 
UpdateCaretPosition() informs the browser about the coordinates of the text input caret area.
- Parameters
 - 
  
    | [in] | caret | A rectangle indicating the caret area.  | 
  
   
 
 
      
        
          | void pp::TextInputController::UpdateSurroundingText  | 
          ( | 
          const Var &  | 
          text,  | 
        
        
           | 
           | 
          uint32_t  | 
          caret,  | 
        
        
           | 
           | 
          uint32_t  | 
          anchor  | 
        
        
           | 
          ) | 
           |  | 
        
      
 
UpdateSurroundingText() informs the browser about the current text selection and surrounding text.
- Parameters
 - 
  
    | [in] | text | A UTF-8 sting indicating string buffer of current input context. | 
    | [in] | caret | A integer indicating the byte index of caret location in text. | 
    | [in] | caret | A integer indicating the byte index of anchor location in text. If there is no selection, this value should be equal to caret.  | 
  
   
 
 
The documentation for this class was generated from the following file: