Lines Matching refs:instance
34 #include "ppapi/cpp/instance.h"
49 Instance* instance = module_singleton->InstanceForPPInstance(pp_instance);
50 if (!instance)
53 return PP_FromBool(instance->HandleInputEvent(InputEvent(resource)));
70 Instance* instance = module_singleton->CreateInstance(pp_instance);
71 if (!instance)
73 module_singleton->current_instances_[pp_instance] = instance;
74 return PP_FromBool(instance->Init(argc, argn, argv));
77 void Instance_DidDestroy(PP_Instance instance) {
82 module_singleton->current_instances_.find(instance);
87 Instance* obj = found->second;
97 Instance* instance = module_singleton->InstanceForPPInstance(pp_instance);
98 if (!instance)
100 instance->DidChangeView(View(view_resource));
107 Instance* instance = module_singleton->InstanceForPPInstance(pp_instance);
108 if (!instance)
110 instance->DidChangeFocus(PP_ToBool(has_focus));
118 Instance* instance = module_singleton->InstanceForPPInstance(pp_instance);
119 if (!instance)
121 return PP_FromBool(instance->HandleDocumentLoad(URLLoader(pp_url_loader)));
138 Instance* instance = module_singleton->InstanceForPPInstance(pp_instance);
139 if (!instance)
141 instance->HandleMessage(Var(PASS_REF, var));
183 Instance* Module::InstanceForPPInstance(PP_Instance instance) {
184 InstanceMap::iterator found = current_instances_.find(instance);