MCPcopy Create free account
hub / github.com/9miao/CrossApp / executeCustomTouchEvent

Method executeCustomTouchEvent

scripting/javascript/bindings/ScriptingCore.cpp:976–991  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

974
975
976int ScriptingCore::executeCustomTouchEvent(int eventType,
977 CATouch *pTouch, JSObject *obj) {
978 jsval retval;
979 std::string funcName;
980 getTouchFuncName(eventType, funcName);
981
982 jsval jsTouch;
983 getJSTouchObject(this->cx_, pTouch, jsTouch);
984
985 executeFunctionWithOwner(OBJECT_TO_JSVAL(obj), funcName.c_str(), 1, &jsTouch, &retval);
986
987 // Remove touch object from global hash table and unroot it.
988 removeJSTouchObject(this->cx_, pTouch, jsTouch);
989 return 1;
990
991}
992
993
994int ScriptingCore::executeCustomTouchEvent(int eventType,

Callers

nothing calls this directly

Calls 5

getTouchFuncNameFunction · 0.85
getJSTouchObjectFunction · 0.85
removeJSTouchObjectFunction · 0.85
OBJECT_TO_JSVALFunction · 0.50
c_strMethod · 0.45

Tested by

no test coverage detected