X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=plugins%2Fdali-script-v8%2Fsrc%2Factors%2Factor-wrapper.h;h=e84559fbc24cd59920ff916042abed03b02fa17c;hb=e00c70e122b8a9aee92aa012dc3485395b1254c8;hp=ab6999b1c46230136b7e68a1950a06e5dfc3bbde;hpb=43810310547ea62237f91305e8b9724fd017492a;p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git diff --git a/plugins/dali-script-v8/src/actors/actor-wrapper.h b/plugins/dali-script-v8/src/actors/actor-wrapper.h index ab6999b..e84559f 100644 --- a/plugins/dali-script-v8/src/actors/actor-wrapper.h +++ b/plugins/dali-script-v8/src/actors/actor-wrapper.h @@ -41,18 +41,16 @@ class ActorWrapper : public HandleWrapper public: /** - * Actor type used an index + * Actor type used an index. + * These enums are used to index the ActorApiLookup table in actor-wrapper.cpp. + * Any changes made must be reflected in the ActorApiLookup otherwise it may segfault when creating an actor */ enum ActorType { UNKNOWN_ACTOR = -1, - ACTOR = 0, - IMAGE_ACTOR =1, - MESH_ACTOR =2, - LAYER_ACTOR =3, - CAMERA_ACTOR =4, - LIGHT_ACTOR =5, - TEXT_LABEL =6 + ACTOR = 0, + LAYER_ACTOR = 1, + CAMERA_ACTOR = 2 }; /** @@ -72,7 +70,7 @@ public: /** * @brief Creates a new Actor wrapped inside a Javascript Object. - * @note: the actor type ie 'ImageActor' is expected to be the name of the callee function. + * @note: the actor type ie 'CameraActor' is expected to be the name of the callee function. * @param[in] args v8 function call arguments interpreted */ static void NewActor( const v8::FunctionCallbackInfo< v8::Value >& args); @@ -89,11 +87,8 @@ public: // The Actor ObjectTemplates. static v8::Persistent mActorTemplate; - static v8::Persistent mImageActorTemplate; - static v8::Persistent mMeshActorTemplate; static v8::Persistent mCameraActorTemplate; static v8::Persistent mLayerActorTemplate; - static v8::Persistent mTextLabelTemplate; /** * @return the wrapped actor @@ -105,14 +100,16 @@ public: */ static ActorWrapper::ActorType GetActorType( const std::string& name ); -private: +protected: /** - * Helper to make the actor template + * @brief Helper to make the actor template * */ static v8::Handle MakeDaliActorTemplate( v8::Isolate* isolate, ActorType actorType ); +private: + /** * Helper, get an actor template given an actor type */