+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.
+}
+
+Toolkit::WebView::CacheModel::Type WebView::GetCacheModel() const
+{
+ return mWebEngine ? static_cast< Toolkit::WebView::CacheModel::Type >( mWebEngine.GetCacheModel() ) : Toolkit::WebView::CacheModel::DOCUMENT_VIEWER;
+}
+
+void WebView::SetCacheModel( Toolkit::WebView::CacheModel::Type cacheModel )
+{
+ if( mWebEngine )
+ {
+ mWebEngine.SetCacheModel( static_cast< WebEnginePlugin::CacheModel >( cacheModel ) );
+ }
+}
+
+Toolkit::WebView::CookieAcceptPolicy::Type WebView::GetCookieAcceptPolicy() const
+{
+ return mWebEngine ? static_cast< Toolkit::WebView::CookieAcceptPolicy::Type >( mWebEngine.GetCookieAcceptPolicy() ) : Toolkit::WebView::CookieAcceptPolicy::NO_THIRD_PARTY;
+}
+
+void WebView::SetCookieAcceptPolicy( Toolkit::WebView::CookieAcceptPolicy::Type policy )
+{
+ if( mWebEngine )
+ {
+ mWebEngine.SetCookieAcceptPolicy( static_cast< WebEnginePlugin::CookieAcceptPolicy >( policy ) );
+ }
+}
+
+const std::string& WebView::GetUserAgent() const
+{
+ return mWebEngine ? mWebEngine.GetUserAgent() : kEmptyString;
+}
+
+void WebView::SetUserAgent( const std::string& userAgent )
+{
+ if( mWebEngine )
+ {
+ mWebEngine.SetUserAgent( userAgent );
+ }
+}
+
+bool WebView::IsJavaScriptEnabled() const
+{
+ return mWebEngine ? mWebEngine.IsJavaScriptEnabled() : true;
+}
+
+void WebView::EnableJavaScript( bool enabled )
+{
+ if( mWebEngine )
+ {
+ mWebEngine.EnableJavaScript( enabled );
+ }
+}
+
+bool WebView::AreImagesAutomaticallyLoaded() const
+{
+ return mWebEngine ? mWebEngine.AreImagesAutomaticallyLoaded() : true;
+}
+
+void WebView::LoadImagesAutomatically( bool automatic )
+{
+ if( mWebEngine )
+ {
+ mWebEngine.LoadImagesAutomatically( automatic );
+ }
+}
+
+const std::string& WebView::GetDefaultTextEncodingName() const
+{
+ return mWebEngine ? mWebEngine.GetDefaultTextEncodingName() : kEmptyString;
+}
+
+void WebView::SetDefaultTextEncodingName( const std::string& defaultTextEncodingName )
+{
+ if( mWebEngine )
+ {
+ mWebEngine.SetDefaultTextEncodingName( defaultTextEncodingName );
+ }
+}
+
+int WebView::GetDefaultFontSize() const
+{
+ return mWebEngine ? mWebEngine.GetDefaultFontSize() : 0;
+}
+
+void WebView::SetDefaultFontSize( int defaultFontSize )
+{
+ if( mWebEngine )
+ {
+ mWebEngine.SetDefaultFontSize( defaultFontSize );
+ }
+}
+
+#undef GET_ENUM_STRING
+#undef GET_ENUM_VALUE
+