浏览代码

flush out browserjs

master
Odilitime 3 年前
父节点
当前提交
d2178c3c16
共有 1 个文件被更改,包括 23 次插入2 次删除
  1. 23
    2
      src/parsers/scripting/javascript/BrowserJS.h

+ 23
- 2
src/parsers/scripting/javascript/BrowserJS.h 查看文件

@@ -1,4 +1,25 @@
#ifndef JSPARSER_H
#define JSPARSER_H
#ifndef BROWSERJS_H
#define BROWSERJS_H

#include "JSParser.h"
#include "../../../interfaces/components/DocumentComponent.h"
#include "../../../interfaces/graphical/renderers/glfw/Window.h"

#include <vector>

std::vector<std::string> getConstructs();
bool isConstruct(std::string construct);
js_internal_storage *executeConstruct(std::string functionName, std::string params, js_function &scope);
js_internal_storage *jsConstruct_querySelector(std::string params, js_function &scope);

class BrowserJavaScript : public JavaScript {
public:
BrowserJavaScript() {
this->setUpRoot();
// we can modify rootScope...
}
DocumentComponent *document;
Window *window;
};

#endif

正在加载...
取消
保存