X-Git-Url: http://review.tizen.org/git/?p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git;a=blobdiff_plain;f=plugins%2Fdali-script-v8%2Fsrc%2Fobject%2Fhandle-wrapper.h;h=98f9c2287af07c4f4dac3a4fd0d0f6eaec9a708c;hp=e0b185919be8faf21fe92485528d6cf6385eb54c;hb=b694e7e2ae624e206e1548b1a863c554eb9cd4d7;hpb=e8efa9549ccedae5b8377c9eb331aa8392895879 diff --git a/plugins/dali-script-v8/src/object/handle-wrapper.h b/plugins/dali-script-v8/src/object/handle-wrapper.h index e0b1859..98f9c22 100644 --- a/plugins/dali-script-v8/src/object/handle-wrapper.h +++ b/plugins/dali-script-v8/src/object/handle-wrapper.h @@ -1,8 +1,8 @@ -#ifndef __DALI_V8PLUGIN_HANDLE_WRAPPER_H__ -#define __DALI_V8PLUGIN_HANDLE_WRAPPER_H__ +#ifndef DALI_V8PLUGIN_HANDLE_WRAPPER_H +#define DALI_V8PLUGIN_HANDLE_WRAPPER_H /* - * Copyright (c) 2015 Samsung Electronics Co., Ltd. + * Copyright (c) 2019 Samsung Electronics Co., Ltd. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -74,6 +74,19 @@ public: */ static void AddInterceptsToTemplate( v8::Isolate* isolate, v8::Local& objTemplate ); + /** + * @brief Register an animatable property for a JavaScript object that + * contains a Dali Handle. + * @param[in] args v8 function call arguments interpreted + */ + static void RegisterAnimatableProperty( const v8::FunctionCallbackInfo< v8::Value >& args ); + + /** + * @brief Register a custom property for a JavaScript object that + * contains a Dali Handle. + * @param[in] args v8 function call arguments interpreted + */ + static void RegisterCustomProperty( const v8::FunctionCallbackInfo< v8::Value >& args ); Handle GetHandle() { return mHandle; } Handle mHandle; @@ -88,9 +101,8 @@ private: }; - } // namespace V8Plugin } // namespace Dali -#endif // header +#endif // DALI_V8PLUGIN_HANDLE_WRAPPER_H