tizen 2.4 release
[framework/web/wrt-plugins-common.git] / src / xwalk-module / xwalk_v8tools_module.h
1 // Copyright 2015 Samsung Electronics Co, Ltd. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef WRT_XWALK_V8TOOLS_MODULE_H_
6 #define WRT_XWALK_V8TOOLS_MODULE_H_
7
8 #include <JavaScriptCore/JavaScript.h>
9
10 #include "xwalk_module_system.h"
11
12 namespace wrt {
13
14 // This module provides extra JS functions that help writing JS API code for
15 // extensions, for example: allowing setting a read-only property of an object.
16 class XWalkV8ToolsModule : public NativeModule {
17  public:
18   XWalkV8ToolsModule();
19   ~XWalkV8ToolsModule();
20
21  private:
22   JSObjectRef NewInstance(JSContextRef context);
23 };
24
25 }  // namespace wrt
26
27 #endif  // WRT_XWALK_V8TOOLS_MODULE_H_
28