7#ifndef __HDI_CORE_WEBVIEW__
8#define __HDI_CORE_WEBVIEW__
28 typedef std::vector<std::string> StringVector;
111 virtual std::string
text()
const;
120 virtual void setText(
const std::string& text_);
156 virtual void loadURL(
const std::string& url_);
214 const std::string& func_,
215 const StringVector& args_,
254 virtual double estimatedProgress()
const;
258 typedef std::unique_ptr<WebView> WebViewUP;
259 typedef std::shared_ptr<WebView> WebViewSP;
260 typedef std::weak_ptr<WebView> WebViewWP;
Base class for templated __Callback class.
Definition: hdicoreCallback.h:68
Contains Point and Size objects to describe a rectangle that exists at a specific point of given dime...
Definition: hdicoreRect.h:34
WebView widget, for loading a website within a UI window.
Definition: hdicoreWebView.h:26
virtual void loadURL(const std::string &url_)
Loads the given HTTP(S) URL.
virtual std::string tooltip() const
Does nothing (web views do not have a tooltip)
virtual std::string text() const
Does nothing (web views do not have a text value)
virtual void callJavaScriptFunction(const std::string &func_, const StringVector &args_, const Callback &callback_)
Calls the provided JavaScript function, calling the callback when it has finished.
virtual bool goForward()
Goes forward one step in the browsing history.
virtual WebView * clone() const
Convenience method to clone a WebView object on the heap.
virtual void stopLoading()
Stops any page loading that might be occurring.
virtual ~WebView()
WebView destructor.
virtual bool javaScriptFunctionError(std::string &error_)
Returns the error state, if any, from a prior JavaScript function call via the callJavaScriptFunction...
WebView()
Constructs an empty WebView object.
virtual void reload()
Reloads the currently loaded page, if any.
virtual WebView * duplicate() const
Convenience method to duplicate a WebView object, creating a new and identical UI element to the targ...
WebView(const WebView &wv_)
Constructs a new WebView object from an existing WebView object (copy constructor)
virtual void setTooltip(const std::string &tip_)
Does nothing (web views do not have a tooltip)
WebView(const Rect &frame_)
Constructs a web view with a given frame.
virtual WebView & operator=(const WebView &rhs_)
Allows one WebView object to be assigned from another.
virtual bool goBack()
Goes back one step in the browsing history.
virtual std::string currentURL() const
Gets the currently loaded URL.
virtual bool isLoading() const
Gets whether the target web view is currently loading a page.
virtual void setText(const std::string &text_)
Does nothing (web views do not have a text value)
virtual std::string javaScriptFunctionResult()
Returns the result from a prior JavaScript function call via the callJavaScriptFunction() method.
Header file for a variety of plugin convenience macros.