Browse Source

remove browser specfic stuff

master
Odilitime 5 years ago
parent
commit
6f3d3bb068
  1. 37
      src/app.h

37
src/app.h

@ -1,22 +1,19 @@ @@ -1,22 +1,19 @@
#ifndef BROWSER_H
#define BROWSER_H
#ifndef APP_H
#define APP_H
#include "interfaces/graphical/renderers/glfw/Window.h"
#include "interfaces/components/Component.h"
#include "interfaces/components/DocumentComponent.h"
#include "interfaces/components/ComponentBuilder.h"
#include "parsers/markup/Node.h"
#include <GL/glew.h>
#include <GLFW/glfw3.h>
#include <memory>
//#include <GL/glew.h>
//#include <GLFW/glfw3.h>
//#include <memory>
#include <vector>
#include <algorithm>
#include "networking/HTTPResponse.h"
#include "URL.h"
#include "interfaces/graphical/renderers/glfw/Window.h"
//#include <algorithm>
void doOnClick(std::string type, Component *component, Window *win);
// this is the actually application that
// contains a list of windows
class App {
public:
std::shared_ptr<Node> loadTheme(std::string filename);
@ -42,22 +39,4 @@ public: @@ -42,22 +39,4 @@ public:
size_t windowCounter = 0;
};
// this is the actually application that
// contains a list of windows
// separate window functions from browser functions
class Browser : public App {
private:
public:
Browser();
std::shared_ptr<DocumentComponent> getActiveDocumentComponent();
std::shared_ptr<Component> tabComponent = nullptr;
std::shared_ptr<Component> addressComponent = nullptr;
//URL currentURL;
};
//bool setWindowContent(URL const& url);
//void handleRequest(const HTTPResponse &response);
#endif

Loading…
Cancel
Save