Browse Source

flush out browserjs

master
Odilitime 2 years ago
parent
commit
d2178c3c16
1 changed files with 23 additions and 2 deletions
  1. 23
    2
      src/parsers/scripting/javascript/BrowserJS.h

+ 23
- 2
src/parsers/scripting/javascript/BrowserJS.h View File

@@ -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

Loading…
Cancel
Save