1 #ifndef __DALI_V8PLUGIN_SCRIPT_H__
2 #define __DALI_V8PLUGIN_SCRIPT_H__
5 * Copyright (c) 2015 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.
22 #include <dali-toolkit/devel-api/scripting/script-plugin.h>
23 #include <dali/public-api/common/dali-common.h>
25 namespace Dali DALI_IMPORT_API
32 * Executes JavaScript V8 scripts
34 class DaliScriptV8 : public Dali::Toolkit::ScriptPlugin
36 public: // Construction & Destruction
46 virtual ~DaliScriptV8();
48 public: // ScriptV8Plugin overrides
51 * @copydoc Dali::Toolkit::ScriptPlugin::SetFlags()
53 virtual void SetFlags(const std::string& s);
56 * @copydoc Dali::Toolkit::ScriptPlugin::ExecuteBuffer()
58 virtual bool ExecuteBuffer(const std::string& buffer, const std::string& filename);
61 * @copydoc Dali::Toolkit::ScriptPlugin::ExecuteFile()
63 virtual bool ExecuteFile(const std::string& fileName);
68 } // namespace V8Plugin
72 #endif // __FEEDBACK_PLUGIN_H__