X-Git-Url: http://review.tizen.org/git/?p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git;a=blobdiff_plain;f=plugins%2Fdali-script-v8%2Fsrc%2Fdali-wrapper.cpp;h=09205d76f6ab5a2144d24672de9eea2a1b61a63b;hp=55df4825b70c7fa60d3157944cdd224167ee1659;hb=a505bf603895074e638b374097e6d5c649e2292e;hpb=928136dbb9e23970f3894eabc7c8b224003b77be diff --git a/plugins/dali-script-v8/src/dali-wrapper.cpp b/plugins/dali-script-v8/src/dali-wrapper.cpp index 55df482..09205d7 100644 --- a/plugins/dali-script-v8/src/dali-wrapper.cpp +++ b/plugins/dali-script-v8/src/dali-wrapper.cpp @@ -24,9 +24,9 @@ #include #include #include -#include #include -#include +#include +#include #include #include #include @@ -59,8 +59,9 @@ const ApiFunction ConstructorFunctionTable[]= { { "Rotation", PropertyValueWrapper::NewRotation}, { "Matrix", PropertyValueWrapper::NewMatrix}, - { "Font", FontWrapper::NewFont }, { "Path", PathWrapper::NewPath }, + { "PathConstrainer", PathConstrainerWrapper::NewPathConstrainer}, + { "LinearConstrainer", LinearConstrainerWrapper::NewLinearConstrainer}, { "Actor", ActorWrapper::NewActor }, { "TextActor", ActorWrapper::NewActor }, { "ImageActor", ActorWrapper::NewActor }, @@ -72,7 +73,6 @@ const ApiFunction ConstructorFunctionTable[]= { "BufferImage", ImageWrapper::NewImage }, { "NinePatchImage", ImageWrapper::NewImage }, { "FrameBufferImage", ImageWrapper::NewImage }, - { "ImageAttributes", ImageAttributesWrapper::NewImageAttributes }, { "Animation", AnimationWrapper::NewAnimation}, { "ShaderEffect", ShaderEffectWrapper::NewShaderEffect}, { "Builder", BuilderWrapper::NewBuilder}, @@ -183,7 +183,7 @@ void DaliWrapper::CreateContext( ) // Context = multiple contexts can exist in a given Isolate, and share data between contexts v8::Handle context = v8::Context::New( mIsolate, NULL, global); - mGlobalObjectTemplate.Reset( mIsolate, global); + mGlobalObjectTemplate.Reset( mIsolate, global); mContext.Reset( mIsolate, context); } @@ -192,10 +192,16 @@ void DaliWrapper::Initialize() { if( !mIsolate ) { - v8::V8::Initialize(); v8::V8::InitializeICU(); + + v8::V8::Initialize(); + + // default isolate removed from V8 version 3.27.1 and beyond. + mIsolate = v8::Isolate::New(); + mIsolate->Enter(); + v8::V8::SetFatalErrorHandler( FatalErrorCallback ); - mIsolate = v8::Isolate::GetCurrent(); + } // if context is null, create it and add dali object to the global object. if( mContext.IsEmpty()) @@ -214,10 +220,6 @@ void DaliWrapper::Initialize() v8::Local stageObject = StageWrapper::WrapStage( mIsolate, Stage::GetCurrent() ); daliObject->Set( v8::String::NewFromUtf8( mIsolate, "stage") , stageObject ); - // fontObject provides static font functionality like GetFontList... - v8::Local fontObject = FontWrapper::GetStaticFontObject( mIsolate ); - daliObject->Set( v8::String::NewFromUtf8( mIsolate, "font") , fontObject ); - // keyboard focus manager is a singleton v8::Local keyboardObject = KeyboardFocusManagerWrapper::WrapKeyboardFocusManager( mIsolate,Toolkit::KeyboardFocusManager::Get() ); daliObject->Set( v8::String::NewFromUtf8( mIsolate, "keyboardFocusManager") , keyboardObject );