Rev 1647 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | SVN | RSS feed
| Rev 1647 | Rev 1656 | ||
|---|---|---|---|
| Line 49... | Line 49... | ||
| 49 | static Pointer Instance(); |
49 | static Pointer Instance(); |
| 50 | static void Create(); |
50 | static void Create(); |
| 51 | static void Delete(); |
51 | static void Delete(); |
| 52 | 52 | ||
| 53 | void AddPlugin(Plugin::Pointer plugin); |
53 | void AddPlugin(Plugin::Pointer plugin); |
| 54 | void Start(std::string |
54 | void Start(std::string script_path, std::string user_script_path); |
| 55 | 55 | ||
| 56 | void Call(std::string plugin_name, unsigned int request_id, std::string name, ArgumentListPointer arguments); |
56 | void Call(std::string plugin_name, unsigned int request_id, std::string name, ArgumentListPointer arguments); |
| 57 | void Execute(std::string plugin_name, unsigned int request_id, std::string code); |
57 | void Execute(std::string plugin_name, unsigned int request_id, std::string code); |
| 58 | 58 | ||
| 59 | bool CallHandler(std::string plugin_name, unsigned int request_id, std::string name, ArgumentListPointer arguments); |
59 | bool CallHandler(std::string plugin_name, unsigned int request_id, std::string name, ArgumentListPointer arguments); |
| Line 68... | Line 68... | ||
| 68 | typedef std::vector<Plugin::Pointer> PluginList; |
68 | typedef std::vector<Plugin::Pointer> PluginList; |
| 69 | 69 | ||
| 70 | static Pointer instance_; |
70 | static Pointer instance_; |
| 71 | 71 | ||
| 72 | std::string script_path_; |
72 | std::string script_path_; |
| - | 73 | std::string user_script_path_; |
|
| 73 | 74 | ||
| 74 | v8::Persistent<v8::Context> context_; |
75 | v8::Persistent<v8::Context> context_; |
| 75 | v8::HandleScope handle_scope_; |
76 | v8::HandleScope handle_scope_; |
| 76 | v8::Persistent<v8::ObjectTemplate> object_template_; |
77 | v8::Persistent<v8::ObjectTemplate> object_template_; |
| 77 | 78 | ||