15 #include <Ultralight/Defines.h> 26 kMessageSource_XML = 0,
28 kMessageSource_Network,
29 kMessageSource_ConsoleAPI,
30 kMessageSource_Storage,
31 kMessageSource_AppCache,
32 kMessageSource_Rendering,
34 kMessageSource_Security,
35 kMessageSource_ContentBlocker,
43 kMessageLevel_Log = 1,
44 kMessageLevel_Warning = 2,
45 kMessageLevel_Error = 3,
46 kMessageLevel_Debug = 4,
47 kMessageLevel_Info = 5,
62 kCursor_NorthEastResize,
63 kCursor_NorthWestResize,
65 kCursor_SouthEastResize,
66 kCursor_SouthWestResize,
68 kCursor_NorthSouthResize,
69 kCursor_EastWestResize,
70 kCursor_NorthEastSouthWestResize,
71 kCursor_NorthWestSouthEastResize,
74 kCursor_MiddlePanning,
77 kCursor_NorthEastPanning,
78 kCursor_NorthWestPanning,
80 kCursor_SouthEastPanning,
81 kCursor_SouthWestPanning,
140 uint32_t line_number,
141 uint32_t column_number,
142 const String& source_id) {}
virtual void OnChangeTitle(ultralight::View *caller, const String &title)
Called when the page title changes.
This is a set of common JavaScriptCore Helper functions to simplify sample code.
MessageSource
MessageSource types,.
virtual void OnChangeURL(ultralight::View *caller, const String &url)
Called when the page URL changes.
UTF-16 String container with conversions for UTF-8 and UTF-32.
virtual void OnAddConsoleMessage(ultralight::View *caller, MessageSource source, MessageLevel level, const String &message, uint32_t line_number, uint32_t column_number, const String &source_id)
Called when a message is added to the console (useful for errors / debug)
virtual void OnBeginLoading(ultralight::View *caller)
Called when the page begins loading new URL into main frame.
virtual void OnUpdateHistory(ultralight::View *caller)
Called when the history (back/forward state) is modified.
virtual void OnDOMReady(ultralight::View *caller)
Called when all JavaScript has been parsed and the document is ready.
virtual void OnFinishLoading(ultralight::View *caller)
Called when the page finishes loading URL into main frame.
Interface for Load-related events.
virtual void OnChangeCursor(ultralight::View *caller, Cursor cursor)
Called when the mouse cursor changes.
The header for the String class.
virtual void OnChangeTooltip(ultralight::View *caller, const String &tooltip)
Called when the tooltip changes (usually as result of a mouse hover)
MessageLevel
MessageLevel types,.
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.