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.

Browser.h 1.1KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. #ifndef BROWSER_H
  2. #define BROWSER_H
  3. #include "../app.h"
  4. //#include "interfaces/graphical/renderers/glfw/Window.h"
  5. //#include "interfaces/components/Component.h"
  6. #include "../../interfaces/components/DocumentComponent.h"
  7. //#include "interfaces/components/ComponentBuilder.h"
  8. //#include "parsers/markup/Node.h"
  9. //#include <GL/glew.h>
  10. //#include <GLFW/glfw3.h>
  11. //#include <memory>
  12. //#include <vector>
  13. //#include <algorithm>
  14. //#include "networking/HTTPResponse.h"
  15. //#include "URL.h"
  16. //#include "interfaces/graphical/renderers/glfw/Window.h"
  17. // separate window functions from browser functions
  18. class Browser : public App {
  19. private:
  20. public:
  21. Browser();
  22. //void addWindow();
  23. // does not sound very browser specific, I could see other apps needing this
  24. // but not all apps would use a doc component
  25. std::shared_ptr<DocumentComponent> getActiveDocumentComponent();
  26. std::shared_ptr<Component> tabComponent = nullptr;
  27. std::shared_ptr<Component> addressComponent = nullptr;
  28. //URL currentURL;
  29. };
  30. //bool setWindowContent(URL const& url);
  31. //void handleRequest(const HTTPResponse &response);
  32. #endif