From: JIYUN YANG Date: Thu, 11 Mar 2021 05:25:43 +0000 (+0000) Subject: Merge "Add APIs of webview settings." into devel/master X-Git-Tag: dali_2.0.17~1 X-Git-Url: http://review.tizen.org/git/?p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git;a=commitdiff_plain;h=b0115c8f21708cab60e853767d353e35c8b59ebd;hp=c4ab3a9f3d6ee3b0149feccc78169fc5cb5da2ed Merge "Add APIs of webview settings." into devel/master --- diff --git a/automated-tests/src/dali-toolkit/dali-toolkit-test-utils/toolkit-web-engine.cpp b/automated-tests/src/dali-toolkit/dali-toolkit-test-utils/toolkit-web-engine.cpp index 863a3b0..01b5ae5 100755 --- a/automated-tests/src/dali-toolkit/dali-toolkit-test-utils/toolkit-web-engine.cpp +++ b/automated-tests/src/dali-toolkit/dali-toolkit-test-utils/toolkit-web-engine.cpp @@ -221,6 +221,18 @@ public: MockWebEngineSettings() : mockDefaultFontSize( 16 ), mockJavaScriptEnabled( true ), + mockAutoFittingEnabled ( true ), + mockPluginsEnabled ( true ), + mockPrivateBrowsingEnabled( true ), + mockLinkMagnifierEnabled( true ), + mockKeypadWithoutUserActionUsed( true ), + mockAutofillPasswordFormEnabled( true ), + mockFormCandidateDataEnabled( true ), + mockTextSelectionEnabled( true ), + mockTextAutosizingEnable( true ), + mockArrowScrollEnable( true ), + mockClipboardEnabled( true ), + mockImePanelEnabled( true ), mockImageLoadedAutomatically( true ), mockDefaultTextEncodingName() { @@ -246,6 +258,126 @@ public: mockJavaScriptEnabled = enabled; } + bool IsAutoFittingEnabled() const override + { + return mockAutoFittingEnabled; + } + + void EnableAutoFitting( bool enabled ) override + { + mockAutoFittingEnabled = enabled; + } + + bool ArePluginsEnabled() const override + { + return mockPluginsEnabled; + } + + void EnablePlugins( bool enabled ) override + { + mockPluginsEnabled = enabled; + } + + bool IsPrivateBrowsingEnabled() const override + { + return mockPrivateBrowsingEnabled; + } + + void EnablePrivateBrowsing( bool enabled ) override + { + mockPrivateBrowsingEnabled = enabled; + } + + bool IsLinkMagnifierEnabled() const override + { + return mockLinkMagnifierEnabled; + } + + void EnableLinkMagnifier( bool enabled ) override + { + mockLinkMagnifierEnabled = enabled; + } + + bool IsKeypadWithoutUserActionUsed() const override + { + return mockKeypadWithoutUserActionUsed; + } + + void UseKeypadWithoutUserAction( bool used ) override + { + mockKeypadWithoutUserActionUsed = used; + } + + bool IsAutofillPasswordFormEnabled() const override + { + return mockAutofillPasswordFormEnabled; + } + + void EnableAutofillPasswordForm( bool enabled ) override + { + mockAutofillPasswordFormEnabled = enabled; + } + + bool IsFormCandidateDataEnabled() const override + { + return mockFormCandidateDataEnabled; + } + + void EnableFormCandidateData( bool enabled ) override + { + mockFormCandidateDataEnabled = enabled; + } + + bool IsTextSelectionEnabled() const override + { + return mockTextSelectionEnabled; + } + + void EnableTextSelection( bool enabled ) override + { + mockTextSelectionEnabled = enabled; + } + + bool IsTextAutosizingEnabled() const override + { + return mockTextAutosizingEnable; + } + + void EnableTextAutosizing( bool enabled ) override + { + mockTextAutosizingEnable = enabled; + } + + bool IsArrowScrollEnabled() const override + { + return mockArrowScrollEnable; + } + + void EnableArrowScroll( bool enabled ) override + { + mockArrowScrollEnable = enabled; + } + + bool IsClipboardEnabled() const override + { + return mockClipboardEnabled; + } + + void EnableClipboard( bool enabled ) override + { + mockClipboardEnabled = enabled; + } + + bool IsImePanelEnabled() const override + { + return mockImePanelEnabled; + } + + void EnableImePanel( bool enabled ) override + { + mockImePanelEnabled = enabled; + } + bool AreImagesLoadedAutomatically() const override { return mockImageLoadedAutomatically; @@ -278,6 +410,18 @@ public: { } + void EnableCacheBuilder( bool enabled ) override + { + } + + void UseScrollbarThumbFocusNotifications( bool used ) override + { + } + + void EnableDoNotTrack( bool enabled ) override + { + } + void AllowFileAccessFromExternalUrl( bool allowed ) override { } @@ -289,6 +433,18 @@ public: private: int mockDefaultFontSize; bool mockJavaScriptEnabled; + bool mockAutoFittingEnabled; + bool mockPluginsEnabled; + bool mockPrivateBrowsingEnabled; + bool mockLinkMagnifierEnabled; + bool mockKeypadWithoutUserActionUsed; + bool mockAutofillPasswordFormEnabled; + bool mockFormCandidateDataEnabled; + bool mockTextSelectionEnabled; + bool mockTextAutosizingEnable; + bool mockArrowScrollEnable; + bool mockClipboardEnabled; + bool mockImePanelEnabled; bool mockImageLoadedAutomatically; std::string mockDefaultTextEncodingName; }; diff --git a/automated-tests/src/dali-toolkit/utc-Dali-WebView.cpp b/automated-tests/src/dali-toolkit/utc-Dali-WebView.cpp old mode 100644 new mode 100755 index b92cea6..7b7e397 --- a/automated-tests/src/dali-toolkit/utc-Dali-WebView.cpp +++ b/automated-tests/src/dali-toolkit/utc-Dali-WebView.cpp @@ -750,6 +750,9 @@ int UtcDaliWebSettingsGetSetDefaultFontSize(void) settings->AllowMixedContents( false ); settings->EnableSpatialNavigation( false ); settings->EnableWebSecurity( false ); + settings->EnableCacheBuilder( false ); + settings->EnableDoNotTrack( false ); + settings->UseScrollbarThumbFocusNotifications( false ); settings->AllowFileAccessFromExternalUrl( false ); settings->AllowScriptsOpenWindows( false ); @@ -779,6 +782,9 @@ int UtcDaliWebSettingsCheckEnableJavaScript(void) settings->AllowMixedContents( false ); settings->EnableSpatialNavigation( false ); settings->EnableWebSecurity( false ); + settings->EnableCacheBuilder( false ); + settings->EnableDoNotTrack( false ); + settings->UseScrollbarThumbFocusNotifications( false ); settings->AllowFileAccessFromExternalUrl( false ); settings->AllowScriptsOpenWindows( false ); @@ -794,6 +800,384 @@ int UtcDaliWebSettingsCheckEnableJavaScript(void) END_TEST; } +int UtcDaliWebSettingsCheckEnableAutoFitting(void) +{ + ToolkitTestApplication application; + + WebView view = WebView::New(); + DALI_TEST_CHECK( view ); + + Dali::Toolkit::WebSettings* settings = view.GetSettings(); + DALI_TEST_CHECK( settings != 0 ) + + // Reset something + settings->AllowMixedContents( false ); + settings->EnableSpatialNavigation( false ); + settings->EnableWebSecurity( false ); + settings->EnableCacheBuilder( false ); + settings->EnableDoNotTrack( false ); + settings->UseScrollbarThumbFocusNotifications( false ); + settings->AllowFileAccessFromExternalUrl( false ); + settings->AllowScriptsOpenWindows( false ); + + // Check default value is true or not + bool value = settings->IsAutoFittingEnabled(); + DALI_TEST_CHECK( value ); + + // Check Set/GetProperty + settings->EnableAutoFitting( false ); + value = settings->IsAutoFittingEnabled(); + DALI_TEST_CHECK( !value ); + + END_TEST; +} + +int UtcDaliWebSettingsCheckEnablePlugins(void) +{ + ToolkitTestApplication application; + + WebView view = WebView::New(); + DALI_TEST_CHECK( view ); + + Dali::Toolkit::WebSettings* settings = view.GetSettings(); + DALI_TEST_CHECK( settings != 0 ) + + // Reset something + settings->AllowMixedContents( false ); + settings->EnableSpatialNavigation( false ); + settings->EnableWebSecurity( false ); + settings->EnableCacheBuilder( false ); + settings->EnableDoNotTrack( false ); + settings->UseScrollbarThumbFocusNotifications( false ); + settings->AllowFileAccessFromExternalUrl( false ); + settings->AllowScriptsOpenWindows( false ); + + // Check default value is true or not + bool value = settings->ArePluginsEnabled(); + DALI_TEST_CHECK( value ); + + // Check Set/GetProperty + settings->EnablePlugins( false ); + value = settings->ArePluginsEnabled(); + DALI_TEST_CHECK( !value ); + + END_TEST; +} + +int UtcDaliWebSettingsCheckEnablePrivateBrowsing(void) +{ + ToolkitTestApplication application; + + WebView view = WebView::New(); + DALI_TEST_CHECK( view ); + + Dali::Toolkit::WebSettings* settings = view.GetSettings(); + DALI_TEST_CHECK( settings != 0 ) + + // Reset something + settings->AllowMixedContents( false ); + settings->EnableSpatialNavigation( false ); + settings->EnableWebSecurity( false ); + settings->EnableCacheBuilder( false ); + settings->EnableDoNotTrack( false ); + settings->UseScrollbarThumbFocusNotifications( false ); + settings->AllowFileAccessFromExternalUrl( false ); + settings->AllowScriptsOpenWindows( false ); + + // Check default value is true or not + bool value = settings->IsPrivateBrowsingEnabled(); + DALI_TEST_CHECK( value ); + + // Check Set/GetProperty + settings->EnablePrivateBrowsing( false ); + value = settings->IsPrivateBrowsingEnabled(); + DALI_TEST_CHECK( !value ); + + END_TEST; +} + +int UtcDaliWebSettingsCheckEnableLinkMagnifier(void) +{ + ToolkitTestApplication application; + + WebView view = WebView::New(); + DALI_TEST_CHECK( view ); + + Dali::Toolkit::WebSettings* settings = view.GetSettings(); + DALI_TEST_CHECK( settings != 0 ) + + // Reset something + settings->AllowMixedContents( false ); + settings->EnableSpatialNavigation( false ); + settings->EnableWebSecurity( false ); + settings->EnableCacheBuilder( false ); + settings->EnableDoNotTrack( false ); + settings->UseScrollbarThumbFocusNotifications( false ); + settings->AllowFileAccessFromExternalUrl( false ); + settings->AllowScriptsOpenWindows( false ); + + // Check default value is true or not + bool value = settings->IsLinkMagnifierEnabled(); + DALI_TEST_CHECK( value ); + + // Check Set/GetProperty + settings->EnableLinkMagnifier( false ); + value = settings->IsLinkMagnifierEnabled(); + DALI_TEST_CHECK( !value ); + + END_TEST; +} + +int UtcDaliWebSettingsCheckUseKeypadWithoutUserAction(void) +{ + ToolkitTestApplication application; + + WebView view = WebView::New(); + DALI_TEST_CHECK( view ); + + Dali::Toolkit::WebSettings* settings = view.GetSettings(); + DALI_TEST_CHECK( settings != 0 ) + + // Reset something + settings->AllowMixedContents( false ); + settings->EnableSpatialNavigation( false ); + settings->EnableWebSecurity( false ); + settings->EnableCacheBuilder( false ); + settings->EnableDoNotTrack( false ); + settings->UseScrollbarThumbFocusNotifications( false ); + settings->AllowFileAccessFromExternalUrl( false ); + settings->AllowScriptsOpenWindows( false ); + + // Check default value is true or not + bool value = settings->IsKeypadWithoutUserActionUsed(); + DALI_TEST_CHECK( value ); + + // Check Set/GetProperty + settings->UseKeypadWithoutUserAction( false ); + value = settings->IsKeypadWithoutUserActionUsed(); + DALI_TEST_CHECK( !value ); + + END_TEST; +} + +int UtcDaliWebSettingsCheckEnableAutofillPasswordForm(void) +{ + ToolkitTestApplication application; + + WebView view = WebView::New(); + DALI_TEST_CHECK( view ); + + Dali::Toolkit::WebSettings* settings = view.GetSettings(); + DALI_TEST_CHECK( settings != 0 ) + + // Reset something + settings->AllowMixedContents( false ); + settings->EnableSpatialNavigation( false ); + settings->EnableWebSecurity( false ); + settings->EnableCacheBuilder( false ); + settings->EnableDoNotTrack( false ); + settings->UseScrollbarThumbFocusNotifications( false ); + settings->AllowFileAccessFromExternalUrl( false ); + settings->AllowScriptsOpenWindows( false ); + + // Check default value is true or not + bool value = settings->IsAutofillPasswordFormEnabled(); + DALI_TEST_CHECK( value ); + settings->EnableAutofillPasswordForm( false ); + value = settings->IsAutofillPasswordFormEnabled(); + DALI_TEST_CHECK( !value ); + END_TEST; +} + +int UtcDaliWebSettingsCheckEnableFormCandidateData(void) +{ + ToolkitTestApplication application; + + WebView view = WebView::New(); + DALI_TEST_CHECK( view ); + + Dali::Toolkit::WebSettings* settings = view.GetSettings(); + DALI_TEST_CHECK( settings != 0 ); + + // Reset something + settings->AllowMixedContents( false ); + settings->EnableSpatialNavigation( false ); + settings->EnableWebSecurity( false ); + settings->EnableCacheBuilder( false ); + settings->EnableDoNotTrack( false ); + settings->UseScrollbarThumbFocusNotifications( false ); + settings->AllowFileAccessFromExternalUrl( false ); + settings->AllowScriptsOpenWindows( false ); + + // Check default value is true or not + bool value = settings->IsFormCandidateDataEnabled(); + DALI_TEST_CHECK( value ); + + // Check Set/GetProperty + settings->EnableFormCandidateData( false ); + value = settings->IsFormCandidateDataEnabled(); + DALI_TEST_CHECK( !value ); + + END_TEST; +} + +int UtcDaliWebSettingsCheckEnableTextSelection(void) +{ + ToolkitTestApplication application; + + WebView view = WebView::New(); + DALI_TEST_CHECK( view ); + + Dali::Toolkit::WebSettings* settings = view.GetSettings(); + DALI_TEST_CHECK( settings != 0 ); + + // Reset something + settings->AllowMixedContents( false ); + settings->EnableSpatialNavigation( false ); + settings->EnableWebSecurity( false ); + settings->EnableCacheBuilder( false ); + settings->EnableDoNotTrack( false ); + settings->UseScrollbarThumbFocusNotifications( false ); + settings->AllowFileAccessFromExternalUrl( false ); + settings->AllowScriptsOpenWindows( false ); + + // Check default value is true or not + bool value = settings->IsTextSelectionEnabled(); + DALI_TEST_CHECK( value ); + + //Check Set/GetProperty + settings->EnableTextSelection(false); + value = settings->IsTextSelectionEnabled(); + DALI_TEST_CHECK( !value ); + + END_TEST; +} + +int UtcDaliWebSettingsCheckEnableTextAutosizing(void) +{ + ToolkitTestApplication application; + + WebView view = WebView::New(); + DALI_TEST_CHECK( view ); + + Dali::Toolkit::WebSettings* settings = view.GetSettings(); + DALI_TEST_CHECK( settings != 0 ); + + // Reset something + settings->AllowMixedContents( false ); + settings->EnableSpatialNavigation( false ); + settings->EnableWebSecurity( false ); + settings->EnableCacheBuilder( false ); + settings->EnableDoNotTrack( false ); + settings->UseScrollbarThumbFocusNotifications( false ); + settings->AllowFileAccessFromExternalUrl( false ); + settings->AllowScriptsOpenWindows( false ); + + // Check default value is true or not + bool value = settings->IsTextAutosizingEnabled(); + DALI_TEST_CHECK( value ); + + // Check Set/GetProperty + settings->EnableTextAutosizing(false); + value = settings->IsTextAutosizingEnabled(); + DALI_TEST_CHECK( !value ); + + END_TEST; +} + +int UtcDaliWebSettingsCheckEnableArrowScroll(void) +{ + ToolkitTestApplication application; + + WebView view = WebView::New(); + DALI_TEST_CHECK( view ); + + Dali::Toolkit::WebSettings* settings = view.GetSettings(); + DALI_TEST_CHECK( settings != 0 ); + + // Reset something + settings->AllowMixedContents( false ); + settings->EnableSpatialNavigation( false ); + settings->EnableWebSecurity( false ); + settings->EnableCacheBuilder( false ); + settings->EnableDoNotTrack( false ); + settings->UseScrollbarThumbFocusNotifications( false ); + settings->AllowFileAccessFromExternalUrl( false ); + settings->AllowScriptsOpenWindows( false ); + + // Check default value is true or not + bool value = settings->IsArrowScrollEnabled(); + DALI_TEST_CHECK( value ); + + // Check Set/GetProperty + settings->EnableArrowScroll(false); + value = settings->IsArrowScrollEnabled(); + DALI_TEST_CHECK( !value ); + + END_TEST; +} + +int UtcDaliWebSettingsCheckEnableClipboard(void) +{ + ToolkitTestApplication application; + + WebView view = WebView::New(); + DALI_TEST_CHECK( view ); + + Dali::Toolkit::WebSettings* settings = view.GetSettings(); + DALI_TEST_CHECK( settings != 0 ); + + // Reset something + settings->AllowMixedContents( false ); + settings->EnableSpatialNavigation( false ); + settings->EnableWebSecurity( false ); + settings->EnableCacheBuilder( false ); + settings->EnableDoNotTrack( false ); + settings->UseScrollbarThumbFocusNotifications( false ); + settings->AllowFileAccessFromExternalUrl( false ); + settings->AllowScriptsOpenWindows( false ); + + // Check default value is true or not + bool value = settings->IsClipboardEnabled(); + DALI_TEST_CHECK( value ); + settings->EnableClipboard(false); + value = settings->IsClipboardEnabled(); + DALI_TEST_CHECK( !value ); + END_TEST; +} + +int UtcDaliWebSettingsCheckEnableImePanel(void) +{ + ToolkitTestApplication application; + + WebView view = WebView::New(); + DALI_TEST_CHECK( view ); + + Dali::Toolkit::WebSettings* settings = view.GetSettings(); + DALI_TEST_CHECK( settings != 0 ); + + // Reset something + settings->AllowMixedContents( false ); + settings->EnableSpatialNavigation( false ); + settings->EnableWebSecurity( false ); + settings->EnableCacheBuilder( false ); + settings->EnableDoNotTrack( false ); + settings->UseScrollbarThumbFocusNotifications( false ); + settings->AllowFileAccessFromExternalUrl( false ); + settings->AllowScriptsOpenWindows( false ); + + // Check default value is true or not + bool value = settings->IsImePanelEnabled(); + DALI_TEST_CHECK( value ); + + // Check Set/GetProperty + settings->EnableImePanel(false); + value = settings->IsImePanelEnabled(); + DALI_TEST_CHECK( !value ); + + END_TEST; +} + int UtcDaliWebSettingsCheckAllowImagesLoadAutomatically(void) { ToolkitTestApplication application; @@ -808,6 +1192,9 @@ int UtcDaliWebSettingsCheckAllowImagesLoadAutomatically(void) settings->AllowMixedContents( false ); settings->EnableSpatialNavigation( false ); settings->EnableWebSecurity( false ); + settings->EnableCacheBuilder( false ); + settings->EnableDoNotTrack( false ); + settings->UseScrollbarThumbFocusNotifications( false ); settings->AllowFileAccessFromExternalUrl( false ); settings->AllowScriptsOpenWindows( false ); @@ -840,6 +1227,9 @@ int UtcDaliWebSettingsGetSetDefaultTextEncodingName(void) settings->AllowMixedContents( false ); settings->EnableSpatialNavigation( false ); settings->EnableWebSecurity( false ); + settings->EnableCacheBuilder( false ); + settings->EnableDoNotTrack( false ); + settings->UseScrollbarThumbFocusNotifications( false ); settings->AllowFileAccessFromExternalUrl( false ); settings->AllowScriptsOpenWindows( false ); diff --git a/dali-toolkit/devel-api/controls/web-view/web-settings.cpp b/dali-toolkit/devel-api/controls/web-view/web-settings.cpp old mode 100644 new mode 100755 index bdd191a..d39a93e --- a/dali-toolkit/devel-api/controls/web-view/web-settings.cpp +++ b/dali-toolkit/devel-api/controls/web-view/web-settings.cpp @@ -59,6 +59,21 @@ void WebSettings::EnableWebSecurity(bool enabled) mWebEngineSettings.EnableWebSecurity(enabled); } +void WebSettings::EnableCacheBuilder(bool enabled) +{ + mWebEngineSettings.EnableCacheBuilder(enabled); +} + +void WebSettings::UseScrollbarThumbFocusNotifications(bool used) +{ + mWebEngineSettings.UseScrollbarThumbFocusNotifications(used); +} + +void WebSettings::EnableDoNotTrack( bool enabled ) +{ + mWebEngineSettings.EnableDoNotTrack(enabled); +} + void WebSettings::AllowFileAccessFromExternalUrl(bool allowed) { mWebEngineSettings.AllowFileAccessFromExternalUrl(allowed); @@ -74,6 +89,126 @@ void WebSettings::EnableJavaScript(bool enabled) mWebEngineSettings.EnableJavaScript(enabled); } +bool WebSettings::IsAutoFittingEnabled() const +{ + return mWebEngineSettings.IsAutoFittingEnabled(); +} + +void WebSettings::EnableAutoFitting(bool enabled) +{ + mWebEngineSettings.EnableAutoFitting(enabled); +} + +bool WebSettings::ArePluginsEnabled() const +{ + return mWebEngineSettings.ArePluginsEnabled(); +} + +void WebSettings::EnablePlugins(bool enabled) +{ + mWebEngineSettings.EnablePlugins(enabled); +} + +bool WebSettings::IsPrivateBrowsingEnabled() const +{ + return mWebEngineSettings.IsPrivateBrowsingEnabled(); +} + +void WebSettings::EnablePrivateBrowsing(bool enabled) +{ + mWebEngineSettings.EnablePrivateBrowsing(enabled); +} + +bool WebSettings::IsLinkMagnifierEnabled() const +{ + return mWebEngineSettings.IsLinkMagnifierEnabled(); +} + +void WebSettings::EnableLinkMagnifier(bool enabled) +{ + mWebEngineSettings.EnableLinkMagnifier(enabled); +} + +bool WebSettings::IsKeypadWithoutUserActionUsed() const +{ + return mWebEngineSettings.IsKeypadWithoutUserActionUsed(); +} + +void WebSettings::UseKeypadWithoutUserAction(bool used) +{ + mWebEngineSettings.UseKeypadWithoutUserAction(used); +} + +bool WebSettings::IsAutofillPasswordFormEnabled() const +{ + return mWebEngineSettings.IsAutofillPasswordFormEnabled(); +} + +void WebSettings::EnableAutofillPasswordForm(bool enabled) +{ + mWebEngineSettings.EnableAutofillPasswordForm(enabled); +} + +bool WebSettings::IsFormCandidateDataEnabled() const +{ + return mWebEngineSettings.IsFormCandidateDataEnabled(); +} + +void WebSettings::EnableFormCandidateData( bool enabled ) +{ + mWebEngineSettings.EnableFormCandidateData(enabled); +} + +bool WebSettings::IsTextSelectionEnabled() const +{ + return mWebEngineSettings.IsTextSelectionEnabled(); +} + +void WebSettings::EnableTextSelection( bool enabled ) +{ + return mWebEngineSettings.EnableTextSelection(enabled); +} + +bool WebSettings::IsTextAutosizingEnabled() const +{ + return mWebEngineSettings.IsTextAutosizingEnabled(); +} + +void WebSettings::EnableTextAutosizing( bool enabled ) +{ + return mWebEngineSettings.EnableTextAutosizing(enabled); +} + +bool WebSettings::IsArrowScrollEnabled() const +{ + return mWebEngineSettings.IsArrowScrollEnabled(); +} + +void WebSettings::EnableArrowScroll( bool enabled ) +{ + return mWebEngineSettings.EnableArrowScroll(enabled); +} + +bool WebSettings::IsClipboardEnabled() const +{ + return mWebEngineSettings.IsClipboardEnabled(); +} + +void WebSettings::EnableClipboard( bool enabled ) +{ + return mWebEngineSettings.EnableClipboard(enabled); +} + +bool WebSettings::IsImePanelEnabled() const +{ + return mWebEngineSettings.IsImePanelEnabled(); +} + +void WebSettings::EnableImePanel( bool enabled ) +{ + return mWebEngineSettings.EnableImePanel(enabled); +} + void WebSettings::AllowScriptsOpenWindows(bool allowed) { mWebEngineSettings.AllowScriptsOpenWindows(allowed); diff --git a/dali-toolkit/devel-api/controls/web-view/web-settings.h b/dali-toolkit/devel-api/controls/web-view/web-settings.h old mode 100644 new mode 100755 index 4d24b58..ba8b1fa --- a/dali-toolkit/devel-api/controls/web-view/web-settings.h +++ b/dali-toolkit/devel-api/controls/web-view/web-settings.h @@ -96,6 +96,29 @@ public: void EnableWebSecurity(bool enabled); /** + * @brief Enables/disables cache builder. + * + * @param[in] enabled if true, to enable the cache builder + * otherwise to disable + */ + void EnableCacheBuilder( bool enabled ); + + /** + * @brief Used/Unused uses scrollbar thumb focus notifications. The default is used. + * + * @param[in] used True if uses scrollbar thumb focus notifications, false otherwise + */ + void UseScrollbarThumbFocusNotifications ( bool used ); + + /** + * @brief Enable/disables do not track executing. + * + * @param[in] enabled if true, to enable do not track + * otherwise to disable + */ + void EnableDoNotTrack( bool enabled ); + + /** * @brief Allow/Disallow file access from external url * * @param[in] allowed if true, to allow file access from external url @@ -118,6 +141,174 @@ public: void EnableJavaScript(bool enabled); /** + * @brief Returns whether auto fitting can be executable. The default is true. + * + * @return true if auto fitting executing is enabled, false otherwise + */ + bool IsAutoFittingEnabled() const; + + /** + * @brief Enables/disables auto fitting executing. The default is enabled. + * + * @param[in] enabled True if auto fitting executing is enabled, false otherwise + */ + void EnableAutoFitting( bool enabled ); + + /** + * @brief Returns whether plugins can be executable. The default is true. + * + * @return true if plugins executing is enabled, false otherwise + */ + bool ArePluginsEnabled() const; + + /** + * @brief Enables/disables Plugins executing. The default is enabled. + * + * @param[in] enabled True if Plugins executing is enabled, false otherwise + */ + void EnablePlugins( bool enabled ); + + /** + * @brief Returns whether private browsing can be executable. The default is true. + * + * @return true if private browsing executing is enabled, false otherwise + */ + bool IsPrivateBrowsingEnabled() const; + + /** + * @brief Enables/disables private browsing executing. The default is enabled. + * + * @param[in] enabled True if private browsing executing is enabled, false otherwise + */ + void EnablePrivateBrowsing( bool enabled ); + + /** + * @brief Returns whether link magnifier can be executable. The default is true. + * + * @return true if link magnifier executing is enabled, false otherwise + */ + bool IsLinkMagnifierEnabled() const; + + /** + * @brief Enables/disables link magnifier executing. The default is enabled. + * + * @param[in] enabled True if link magnifier executing is enabled, false otherwise + */ + void EnableLinkMagnifier( bool enabled ); + + /** + * @brief Returns whether uses keypad without user action can be executable. The default is true. + * + * @return true if keypad without user action executing is used, false otherwise + */ + bool IsKeypadWithoutUserActionUsed() const; + + /** + * @brief Uses/Unused keypad without user action executing. The default is used. + * + * @param[in] used True if keypad without user action executing is used, false otherwise + */ + void UseKeypadWithoutUserAction( bool used ); + + /** + * @brief Returns whether autofill password form can be executable. The default is true. + * + * @return true if autofill password form executing is enabled, false otherwise + */ + bool IsAutofillPasswordFormEnabled() const; + + /** + * @brief Enables/disables autofill password form executing. The default is enabled. + * + * @param[in] enabled True if autofill password form executing is enabled, false otherwise + */ + void EnableAutofillPasswordForm( bool enabled ); + + /** + * @brief Returns whether form candidate data can be executable. The default is true. + * + * @return true if form candidate data executing is enabled, false otherwise + */ + bool IsFormCandidateDataEnabled() const; + + /** + * @brief Enables/disables form candidate data executing. The default is enabled. + * + * @param[in] enabled True if form candidate data executing is enabled, false otherwise + */ + void EnableFormCandidateData( bool enabled ); + + /** + * @brief Returns whether text selection can be executable. The default is true. + * + * @return true if text selection executing is enabled, false otherwise + */ + bool IsTextSelectionEnabled() const; + + /** + * brief Enables/disables text selection executing. The default is enabled. + * + * @param[in] enabled True if text selection executing is enabled, false otherwise + */ + void EnableTextSelection( bool enabled ); + + /** + * @brief Returns whether text autosizing can be executable. The default is true. + * + * @return true if text autosizing executing is enabled, false otherwise + */ + bool IsTextAutosizingEnabled() const; + + /** + * @brief Enables/disables text autosizing executing. The default is enabled. + * + * @param[in] enabled True if text autosizing executing is enabled, false otherwise + */ + void EnableTextAutosizing( bool enabled ); + + /** + * @brief Returns whether arrow scroll can be executable. The default is true. + * + * @return true if arrow scroll executing is enabled, false otherwise + */ + bool IsArrowScrollEnabled() const; + + /** + * @brief Enables/disables arrow scroll executing. The default is enabled. + * + * @param[in] enabled True if arrow scroll executing is enabled, false otherwise + */ + void EnableArrowScroll( bool enabled ); + + /** + * @brief Returns whether clipboard can be executable. The default is true. + * + * @return true if clipboard executing is enabled, false otherwise + */ + bool IsClipboardEnabled() const; + + /** + * @brief Enables/disables clipboard executing. The default is enabled. + * + * @param[in] enabled True if clipboard is enabled, false otherwise + */ + void EnableClipboard( bool enabled ); + + /** + * @brief Returns whether ime panel can be executable. The default is true. + * + * @return true if ime panel executing is enabled, false otherwise + */ + bool IsImePanelEnabled() const; + + /** + * @brief Enables/disables ime panel executing. The default is enabled. + * + * @param[in] enabled True if ime panel executing is enabled, false otherwise + */ + void EnableImePanel( bool enabled ); + + /** * @brief Allow if the scripts can open new windows. * * @param[in] allowed if true, the scripts can open new windows,