+bool WebView::OnWheelEvent(Actor actor, const Dali::WheelEvent& wheel)
+{
+ bool result = false;
+ if(mWebEngine)
+ {
+ result = mWebEngine.SendWheelEvent(wheel);
+ }
+ return result;
+}
+
+void WebView::OnKeyInputFocusGained()
+{
+ if(mWebEngine)
+ {
+ mWebEngine.SetFocus(true);
+ }
+
+ EmitKeyInputFocusSignal(true); // Calls back into the Control hence done last.
+}
+
+void WebView::OnKeyInputFocusLost()
+{
+ if(mWebEngine)
+ {
+ mWebEngine.SetFocus(false);
+ }
+
+ EmitKeyInputFocusSignal(false); // Calls back into the Control hence done last.
+}
+
+void WebView::SetScrollPosition(int x, int y)
+{
+ if(mWebEngine)
+ {
+ mWebEngine.SetScrollPosition(x, y);
+ }
+}
+
+Dali::Vector2 WebView::GetScrollPosition() const
+{
+ return mWebEngine ? mWebEngine.GetScrollPosition() : Dali::Vector2::ZERO;
+}
+
+Dali::Vector2 WebView::GetScrollSize() const
+{
+ return mWebEngine ? mWebEngine.GetScrollSize() : Dali::Vector2::ZERO;
+}
+
+Dali::Vector2 WebView::GetContentSize() const
+{
+ return mWebEngine ? mWebEngine.GetContentSize() : Dali::Vector2::ZERO;
+}
+
+std::string WebView::GetTitle() const
+{
+ return mWebEngine ? mWebEngine.GetTitle() : kEmptyString;
+}
+
+const std::string& WebView::GetUserAgent() const
+{
+ return mWebEngine ? mWebEngine.GetUserAgent() : kEmptyString;
+}
+
+void WebView::SetUserAgent(const std::string& userAgent)
+{
+ if(mWebEngine)
+ {
+ mWebEngine.SetUserAgent(userAgent);
+ }
+}
+
+void WebView::EnableMouseEvents(bool enabled)
+{
+ if(mWebEngine)
+ {
+ mMouseEventsEnabled = enabled;
+ mWebEngine.EnableMouseEvents(enabled);
+ }
+}
+
+void WebView::EnableKeyEvents(bool enabled)
+{
+ if(mWebEngine)
+ {
+ mKeyEventsEnabled = enabled;
+ mWebEngine.EnableKeyEvents(enabled);
+ }
+}
+
+#undef GET_ENUM_STRING
+#undef GET_ENUM_VALUE
+