X-Git-Url: http://review.tizen.org/git/?p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git;a=blobdiff_plain;f=plugins%2Fdali-script-v8%2Fsrc%2Futils%2Fv8-utils.h;h=1551868323162846ac9a685447426cbc25922045;hp=534c5472f14270936b8e1ebfd6cf34b95c4baf5d;hb=f3da11c2818c6d17706fbb2417f21b602b3190f5;hpb=2ec164cd618f93ccafe17b1d0b8ff16401ed4aef diff --git a/plugins/dali-script-v8/src/utils/v8-utils.h b/plugins/dali-script-v8/src/utils/v8-utils.h index 534c547..1551868 100644 --- a/plugins/dali-script-v8/src/utils/v8-utils.h +++ b/plugins/dali-script-v8/src/utils/v8-utils.h @@ -133,14 +133,6 @@ std::string GetJavaScriptFunctionName( const char* functionName ); std::string PropertyNameToJavaScriptName(const std::string& hyphenatedName); /** - * Convert camelCase to hyphenated to (Wrapper property name to Dali property) - * E.g. anchorPoint to "anchor-point" - * @param[in] camelCase a std::string camelCase - * @return a hyphenated std::string conversion - */ - std::string JavaScriptNameToPropertyName(const std::string& camelCase); - -/** * Script error, throws an exception */ void ScriptError( const char* function, v8::Isolate* isolate, std::string errorString ); @@ -195,7 +187,7 @@ Property::Value GetPropertyValueFromObject( bool& found, v8::Isolate* isolate, c /** * Given a JavaScript object with * @param [in] object JavaScrript object - * @return DALi ProperyMap from the JavaScript object + * @return DALi ProperyMap from the JavaScript object */ Property::Map GetPropertyMapFromObject( v8::Isolate* isolate, const v8::Local& object); @@ -252,6 +244,13 @@ bool GetBooleanParameter( unsigned int index, bool& found, v8::Isolate* isolate, /** * @param [in] index parameter index, e.g. callMyFunc( index0, index1, index2). * @param[out] found whether the parameter was found + * @return ArrayBufferView from the JavaScript function arguments + */ +void* GetArrayBufferViewParameter( unsigned int index, bool& found, v8::Isolate* isolate, const v8::FunctionCallbackInfo< v8::Value >& args ); + +/** + * @param [in] index parameter index, e.g. callMyFunc( index0, index1, index2). + * @param[out] found whether the parameter was found * @return DALi Handle value from the JavaScript function arguments */ Handle GetHandleParameter( unsigned int index, bool& found, v8::Isolate* isolate, const v8::FunctionCallbackInfo< v8::Value >& args );