1 #ifndef DALI_V8PLUGIN_BUILDER_WRAPPER_H
2 #define DALI_V8PLUGIN_BUILDER_WRAPPER_H
5 * Copyright (c) 2019 Samsung Electronics Co., Ltd.
7 * Licensed under the Apache License, Version 2.0 (the "License");
8 * you may not use this file except in compliance with the License.
9 * You may obtain a copy of the License at
11 * http://www.apache.org/licenses/LICENSE-2.0
13 * Unless required by applicable law or agreed to in writing, software
14 * distributed under the License is distributed on an "AS IS" BASIS,
15 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 * See the License for the specific language governing permissions and
17 * limitations under the License.
23 #include <dali-toolkit/devel-api/builder/builder.h>
26 #include <shared/base-wrapped-object.h>
37 * Provides access to Builder specific functionality
39 class BuilderWrapper : public BaseWrappedObject
44 BuilderWrapper( const Dali::Toolkit::Builder& builder,
45 GarbageCollectorInterface& gc );
47 virtual ~BuilderWrapper();
50 * @brief Creates a new Builder wrapped inside a Javascript Object.
51 * @param[in] args v8 function call arguments interpreted
53 static void NewBuilder( const v8::FunctionCallbackInfo< v8::Value >& args);
58 static v8::Handle<v8::Object> WrapBuilder(v8::Isolate* isolate, const Dali::Toolkit::Builder& );
61 Dali::Toolkit::Builder GetBuilder();
66 static v8::Local<v8::ObjectTemplate> GetBuilderTemplate( v8::Isolate* isolate );
67 Dali::Toolkit::Builder mBuilder;
70 } // namespace V8Plugin
74 #endif // DALI_V8PLUGIN_BUILDER_WRAPPER_H