Przeglądaj źródła

flush out browserjs

master
Odilitime 4 lat temu
rodzic
commit
d2178c3c16
  1. 25
      src/parsers/scripting/javascript/BrowserJS.h

25
src/parsers/scripting/javascript/BrowserJS.h

@ -1,4 +1,25 @@ @@ -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

Ładowanie…
Anuluj
Zapisz