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=2e612c798284acde40d2204fce47f80858948469;hb=b694e7e2ae624e206e1548b1a863c554eb9cd4d7;hpb=8c31a5ca493d17693e53f9909a4453b1fa058ab3 diff --git a/plugins/dali-script-v8/src/object/handle-wrapper.h b/plugins/dali-script-v8/src/object/handle-wrapper.h index 2e612c7..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. @@ -81,6 +81,13 @@ public: */ 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; ConnectionTracker mConnectionTracker; @@ -94,9 +101,8 @@ private: }; - } // namespace V8Plugin } // namespace Dali -#endif // header +#endif // DALI_V8PLUGIN_HANDLE_WRAPPER_H