summaryrefslogtreecommitdiffstats
path: root/ppapi/thunk/ppb_text_input_thunk.cc
diff options
context:
space:
mode:
Diffstat (limited to 'ppapi/thunk/ppb_text_input_thunk.cc')
-rw-r--r--ppapi/thunk/ppb_text_input_thunk.cc12
1 files changed, 6 insertions, 6 deletions
diff --git a/ppapi/thunk/ppb_text_input_thunk.cc b/ppapi/thunk/ppb_text_input_thunk.cc
index b5b1753..7d35e2a 100644
--- a/ppapi/thunk/ppb_text_input_thunk.cc
+++ b/ppapi/thunk/ppb_text_input_thunk.cc
@@ -4,7 +4,7 @@
#include "ppapi/thunk/enter.h"
#include "ppapi/thunk/thunk.h"
-#include "ppapi/thunk/ppb_text_input_api.h"
+#include "ppapi/thunk/ppb_instance_api.h"
namespace ppapi {
namespace thunk {
@@ -12,7 +12,7 @@ namespace thunk {
namespace {
void SetTextInputType(PP_Instance instance, PP_TextInput_Type type) {
- EnterFunction<PPB_TextInput_FunctionAPI> enter(instance, true);
+ EnterInstance enter(instance);
if (enter.succeeded())
enter.functions()->SetTextInputType(instance, type);
}
@@ -20,26 +20,26 @@ void SetTextInputType(PP_Instance instance, PP_TextInput_Type type) {
void UpdateCaretPosition(PP_Instance instance,
const PP_Rect* caret,
const PP_Rect* bounding_box) {
- EnterFunction<PPB_TextInput_FunctionAPI> enter(instance, true);
+ EnterInstance enter(instance);
if (enter.succeeded() && caret && bounding_box)
enter.functions()->UpdateCaretPosition(instance, *caret, *bounding_box);
}
void CancelCompositionText(PP_Instance instance) {
- EnterFunction<PPB_TextInput_FunctionAPI> enter(instance, true);
+ EnterInstance enter(instance);
if (enter.succeeded())
enter.functions()->CancelCompositionText(instance);
}
void UpdateSurroundingText(PP_Instance instance, const char* text,
uint32_t caret, uint32_t anchor) {
- EnterFunction<PPB_TextInput_FunctionAPI> enter(instance, true);
+ EnterInstance enter(instance);
if (enter.succeeded())
enter.functions()->UpdateSurroundingText(instance, text, caret, anchor);
}
void SelectionChanged(PP_Instance instance) {
- EnterFunction<PPB_TextInput_FunctionAPI> enter(instance, true);
+ EnterInstance enter(instance);
if (enter.succeeded())
enter.functions()->SelectionChanged(instance);
}