| 974 | |
| 975 | |
| 976 | int 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 | |
| 994 | int ScriptingCore::executeCustomTouchEvent(int eventType, |
nothing calls this directly
no test coverage detected