| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748 |
- #include <Atomic/Core/Object.h>
- #include "WebRenderHandler.h"
- #pragma once
- class CefClient;
- namespace Atomic
- {
- class WebClientPrivate;
- class ATOMIC_API WebClient : public Object
- {
- friend class WebBrowserHost;
- friend class WebClientPrivate;
- OBJECT(WebClient)
- public:
- /// Construct.
- WebClient(Context* context);
- /// Destruct.
- virtual ~WebClient();
- // call once initialized with handlers
- bool CreateBrowser();
- void SetWebRenderHandler(WebRenderHandler* handler);
- CefClient* GetCefClient();
- void WasResized();
- void SendMouseClickEvent(int x, int y, unsigned button, bool mouseUp, unsigned modifier) const;
- void SendMouseMoveEvent(int x, int y, unsigned modifier, bool mouseLeave = false) const;
- private:
- SharedPtr<WebRenderHandler> renderHandler_;
- WebClientPrivate* d_;
- };
- }
|