You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

BrowserJS.h 702B

12345678910111213141516171819202122232425
  1. #ifndef BROWSERJS_H
  2. #define BROWSERJS_H
  3. #include "JSParser.h"
  4. #include "../../../interfaces/components/DocumentComponent.h"
  5. #include "../../../interfaces/graphical/renderers/glfw/Window.h"
  6. #include <vector>
  7. std::vector<std::string> getConstructs();
  8. bool isConstruct(std::string construct);
  9. js_internal_storage *executeConstruct(std::string functionName, std::string params, js_function &scope);
  10. js_internal_storage *jsConstruct_querySelector(std::string params, js_function &scope);
  11. class BrowserJavaScript : public JavaScript {
  12. public:
  13. BrowserJavaScript() {
  14. this->setUpRoot();
  15. // we can modify rootScope...
  16. }
  17. DocumentComponent *document;
  18. Window *window;
  19. };
  20. #endif