133 const String& target_url,
bool is_popup,
146 const String& inspected_url);
214 const String& error_domain,
int error_code) { }
302 const String& filename, int64_t expected_content_length) = 0;
#define UExport
Definition Exports.h:25
Interface for console messages.
Definition ConsoleMessage.h:69
User-defined interface to handle download-related events for a View.
Definition Listener.h:276
virtual void OnFailDownload(ultralight::View *caller, DownloadId id)=0
Called when the View fails downloading a resource from the network.
virtual DownloadId NextDownloadId(ultralight::View *caller)=0
Called when the View wants to generate a unique download id.
virtual void OnFinishDownload(ultralight::View *caller, DownloadId id)=0
Called when the View finishes downloading a resource from the network.
virtual void OnBeginDownload(ultralight::View *caller, DownloadId id, const String &url, const String &filename, int64_t expected_content_length)=0
Called when the View begins downloading a resource from the network.
virtual bool OnRequestDownload(ultralight::View *caller, DownloadId id, const String &url)=0
Called when the View wants to start downloading a resource from the network.
virtual ~DownloadListener()
Definition Listener.h:278
virtual void OnReceiveDataForDownload(ultralight::View *caller, DownloadId id, RefPtr< Buffer > data)=0
Called when the View receives data for a certain download from the network.
User-defined interface to handle load-related events for a View.
Definition Listener.h:160
virtual void OnUpdateHistory(ultralight::View *caller)
Called when the session history (back/forward state) is modified.
Definition Listener.h:261
virtual ~LoadListener()
Definition Listener.h:162
virtual void OnDOMReady(ultralight::View *caller, uint64_t frame_id, bool is_main_frame, const String &url)
Called when all JavaScript has been parsed and the document is ready.
Definition Listener.h:255
virtual void OnFinishLoading(ultralight::View *caller, uint64_t frame_id, bool is_main_frame, const String &url)
Called when the page finishes loading a URL into a frame.
Definition Listener.h:191
virtual void OnFailLoading(ultralight::View *caller, uint64_t frame_id, bool is_main_frame, const String &url, const String &description, const String &error_domain, int error_code)
Called when an error occurs while loading a URL into a frame.
Definition Listener.h:212
virtual void OnBeginLoading(ultralight::View *caller, uint64_t frame_id, bool is_main_frame, const String &url)
Called when the page begins loading a new URL into a frame.
Definition Listener.h:176
virtual void OnWindowObjectReady(ultralight::View *caller, uint64_t frame_id, bool is_main_frame, const String &url)
Called when the JavaScript window object is reset for a new page load.
Definition Listener.h:237
User-defined interface to handle network-related events for a View.
Definition Listener.h:334
virtual ~NetworkListener()
Definition Listener.h:336
virtual bool OnNetworkRequest(ultralight::View *caller, NetworkRequest &request)=0
Called when the View is about to begin a network request.
Interface for Network requests.
Definition NetworkRequest.h:16
A nullable smart pointer.
Definition RefPtr.h:79
Unicode string container with conversions for UTF-8, UTF-16, and UTF-32.
Definition String.h:34
Web-page container rendered to an offscreen surface.
Definition View.h:202
User-defined interface to handle general events for a View.
Definition Listener.h:77
virtual void OnChangeTitle(ultralight::View *caller, const String &title)
Called when the page title changes.
Definition Listener.h:84
virtual void OnChangeURL(ultralight::View *caller, const String &url)
Called when the page URL changes.
Definition Listener.h:89
virtual RefPtr< View > OnCreateInspectorView(ultralight::View *caller, bool is_local, const String &inspected_url)
Called when the page wants to create a new View to display the local inspector in.
virtual void OnAddConsoleMessage(ultralight::View *caller, const ultralight::ConsoleMessage &message)
Called when a message is added to the console (useful for errors / debug)
Definition Listener.h:104
virtual RefPtr< View > OnCreateChildView(ultralight::View *caller, const String &opener_url, const String &target_url, bool is_popup, const IntRect &popup_rect)
Called when the page wants to create a new child View.
virtual void OnChangeTooltip(ultralight::View *caller, const String &tooltip)
Called when the tooltip changes (usually as result of a mouse hover)
Definition Listener.h:94
virtual void OnRequestClose(ultralight::View *caller)
Called when the page requests to be closed.
Definition Listener.h:151
virtual void OnChangeCursor(ultralight::View *caller, Cursor cursor)
Called when the mouse cursor changes.
Definition Listener.h:99
virtual ~ViewListener()
Definition Listener.h:79
uint32_t DownloadId
A unique identifier representing an active download.
Definition Listener.h:267
Cursor
Cursor types,.
Definition Listener.h:25
@ kCursor_NorthEastSouthWestResize
Definition Listener.h:42
@ kCursor_NorthWestSouthEastResize
Definition Listener.h:43
@ kCursor_Cell
Definition Listener.h:57
@ kCursor_SouthWestPanning
Definition Listener.h:53
@ kCursor_Cross
Definition Listener.h:27
@ kCursor_Progress
Definition Listener.h:60
@ kCursor_Copy
Definition Listener.h:62
@ kCursor_SouthEastPanning
Definition Listener.h:52
@ kCursor_ZoomIn
Definition Listener.h:65
@ kCursor_SouthWestResize
Definition Listener.h:38
@ kCursor_NorthWestResize
Definition Listener.h:35
@ kCursor_MiddlePanning
Definition Listener.h:46
@ kCursor_ContextMenu
Definition Listener.h:58
@ kCursor_Hand
Definition Listener.h:28
@ kCursor_ZoomOut
Definition Listener.h:66
@ kCursor_Wait
Definition Listener.h:30
@ kCursor_Grabbing
Definition Listener.h:68
@ kCursor_NoDrop
Definition Listener.h:61
@ kCursor_SouthPanning
Definition Listener.h:51
@ kCursor_Grab
Definition Listener.h:67
@ kCursor_VerticalText
Definition Listener.h:56
@ kCursor_Move
Definition Listener.h:55
@ kCursor_WestPanning
Definition Listener.h:54
@ kCursor_SouthEastResize
Definition Listener.h:37
@ kCursor_EastResize
Definition Listener.h:32
@ kCursor_EastPanning
Definition Listener.h:47
@ kCursor_None
Definition Listener.h:63
@ kCursor_EastWestResize
Definition Listener.h:41
@ kCursor_RowResize
Definition Listener.h:45
@ kCursor_NorthEastPanning
Definition Listener.h:49
@ kCursor_SouthResize
Definition Listener.h:36
@ kCursor_ColumnResize
Definition Listener.h:44
@ kCursor_NorthResize
Definition Listener.h:33
@ kCursor_IBeam
Definition Listener.h:29
@ kCursor_NorthEastResize
Definition Listener.h:34
@ kCursor_WestResize
Definition Listener.h:39
@ kCursor_NorthSouthResize
Definition Listener.h:40
@ kCursor_Pointer
Definition Listener.h:26
@ kCursor_NorthWestPanning
Definition Listener.h:50
@ kCursor_Custom
Definition Listener.h:69
@ kCursor_NotAllowed
Definition Listener.h:64
@ kCursor_Alias
Definition Listener.h:59
@ kCursor_NorthPanning
Definition Listener.h:48
@ kCursor_Help
Definition Listener.h:31
Integer Rectangle Helper.
Definition Geometry.h:529