15 #include <JavaScriptCore/JavaScript.h> 16 #include <Ultralight/Defines.h> 44 virtual String title() = 0;
49 virtual bool is_loading() = 0;
72 virtual bool is_bitmap_dirty() = 0;
84 virtual void LoadHTML(
const String& html) = 0;
92 virtual void LoadURL(
const String& url) = 0;
105 virtual void Resize(uint32_t width, uint32_t height) = 0;
116 virtual JSContextRef js_context() = 0;
124 virtual JSValueRef EvaluateScript(
const String& script) = 0;
129 virtual bool CanGoBack() = 0;
134 virtual bool CanGoForward() = 0;
139 virtual void GoBack() = 0;
144 virtual void GoForward() = 0;
149 virtual void GoToHistoryOffset(
int offset) = 0;
154 virtual void Reload() = 0;
159 virtual void Stop() = 0;
166 virtual void FireKeyEvent(
const KeyEvent& evt) = 0;
171 virtual void FireMouseEvent(
const MouseEvent& evt) = 0;
176 virtual void FireScrollEvent(
const ScrollEvent& evt) = 0;
183 virtual void set_view_listener(
ViewListener* listener) = 0;
195 virtual void set_load_listener(
LoadListener* listener) = 0;
209 virtual void set_needs_paint(
bool needs_paint) = 0;
215 virtual bool needs_paint()
const = 0;
The header for the Bitmap class.
The header for the RenderTarget struct.
The header for View listener interfaces.
The header for the MouseEvent class.
A nullable smart pointer.
This is a set of common JavaScriptCore Helper functions to simplify sample code.
The header for all ref-counting utilities.
Interface for all ref-counted objects that will be managed using the Ref<> and RefPtr<> smart pointer...
UTF-16 String container with conversions for UTF-8 and UTF-32.
Interface for Load-related events.
A generic keyboard event that can be created from a platform event or synthesized from scratch.
Rendering details for a View, to be used with your own GPUDriver.
A View is similar to a tab in a browser– you load web content into it and display it however you want...
Interface for View-related events.
The header for the KeyEvent class.