Rendering API clean-up
[platform/core/uifw/dali-toolkit.git] / plugins / dali-script-v8 / src / dali-script-v8.h
1 #ifndef __DALI_V8PLUGIN_SCRIPT_H__
2 #define __DALI_V8PLUGIN_SCRIPT_H__
3
4 /*
5  * Copyright (c) 2015 Samsung Electronics Co., Ltd.
6  *
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
10  *
11  * http://www.apache.org/licenses/LICENSE-2.0
12  *
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.
18  *
19  */
20
21 // EXTERNAL INCLUDES
22 #include <dali-toolkit/devel-api/scripting/script-plugin.h>
23 #include <dali/public-api/common/dali-common.h>
24
25 namespace Dali DALI_IMPORT_API
26 {
27
28 namespace V8Plugin
29 {
30
31 /**
32  * Executes JavaScript V8 scripts
33  */
34 class  DaliScriptV8 : public Dali::Toolkit::ScriptPlugin
35 {
36 public: // Construction & Destruction
37
38   /**
39    * Constructor
40    */
41   DaliScriptV8();
42
43   /**
44    * Destructor
45    */
46   virtual ~DaliScriptV8();
47
48 public: // ScriptV8Plugin overrides
49
50   /**
51    * @copydoc Dali::Toolkit::ScriptPlugin::SetFlags()
52    */
53   virtual void SetFlags(const std::string& s);
54
55   /**
56    * @copydoc Dali::Toolkit::ScriptPlugin::ExecuteBuffer()
57    */
58   virtual bool ExecuteBuffer(const std::string& buffer, const std::string& filename);
59
60   /**
61    * @copydoc Dali::Toolkit::ScriptPlugin::ExecuteFile()
62    */
63   virtual bool ExecuteFile(const std::string& fileName);
64
65
66 };
67
68 }  // namespace V8Plugin
69
70 }  // namespace Dali
71
72 #endif // __FEEDBACK_PLUGIN_H__