Title: [115449] trunk/Source/WebKit/efl
- Revision
- 115449
- Author
- [email protected]
- Date
- 2012-04-27 11:01:13 -0700 (Fri, 27 Apr 2012)
Log Message
[EFL] tabsToLinks ewk_view setting
https://bugs.webkit.org/show_bug.cgi?id=84340
Exporting new ewk_view setting: tabsToLinks - enbles/disables tab key focusing of page elements.
Patch by Mikhail Pozdnyakov <[email protected]> on 2012-04-27
Reviewed by Antonio Gomes.
* WebCoreSupport/ChromeClientEfl.cpp:
(WebCore::ChromeClientEfl::keyboardUIMode):
* ewk/ewk_view.cpp:
(_Ewk_View_Private_Data):
(_ewk_view_priv_new):
(ewk_view_setting_include_links_in_focus_chain_get):
(ewk_view_setting_include_links_in_focus_chain_set):
* ewk/ewk_view.h:
Modified Paths
Diff
Modified: trunk/Source/WebKit/efl/ChangeLog (115448 => 115449)
--- trunk/Source/WebKit/efl/ChangeLog 2012-04-27 17:37:02 UTC (rev 115448)
+++ trunk/Source/WebKit/efl/ChangeLog 2012-04-27 18:01:13 UTC (rev 115449)
@@ -1,3 +1,21 @@
+2012-04-27 Mikhail Pozdnyakov <[email protected]>
+
+ [EFL] tabsToLinks ewk_view setting
+ https://bugs.webkit.org/show_bug.cgi?id=84340
+
+ Exporting new ewk_view setting: tabsToLinks - enbles/disables tab key focusing of page elements.
+
+ Reviewed by Antonio Gomes.
+
+ * WebCoreSupport/ChromeClientEfl.cpp:
+ (WebCore::ChromeClientEfl::keyboardUIMode):
+ * ewk/ewk_view.cpp:
+ (_Ewk_View_Private_Data):
+ (_ewk_view_priv_new):
+ (ewk_view_setting_include_links_in_focus_chain_get):
+ (ewk_view_setting_include_links_in_focus_chain_set):
+ * ewk/ewk_view.h:
+
2012-04-27 Christophe Dumez <[email protected]>
[EFL] DRT should support LayoutTestController's dumpResourceLoadCallbacks()
Modified: trunk/Source/WebKit/efl/WebCoreSupport/ChromeClientEfl.cpp (115448 => 115449)
--- trunk/Source/WebKit/efl/WebCoreSupport/ChromeClientEfl.cpp 2012-04-27 17:37:02 UTC (rev 115448)
+++ trunk/Source/WebKit/efl/WebCoreSupport/ChromeClientEfl.cpp 2012-04-27 18:01:13 UTC (rev 115449)
@@ -306,7 +306,7 @@
KeyboardUIMode ChromeClientEfl::keyboardUIMode()
{
- return KeyboardAccessTabsToLinks;
+ return ewk_view_setting_include_links_in_focus_chain_get(m_view) ? KeyboardAccessTabsToLinks : KeyboardAccessDefault;
}
IntRect ChromeClientEfl::windowResizerRect() const
Modified: trunk/Source/WebKit/efl/ewk/ewk_view.cpp (115448 => 115449)
--- trunk/Source/WebKit/efl/ewk/ewk_view.cpp 2012-04-27 17:37:02 UTC (rev 115448)
+++ trunk/Source/WebKit/efl/ewk/ewk_view.cpp 2012-04-27 18:01:13 UTC (rev 115449)
@@ -225,6 +225,7 @@
bool pageCache : 1;
bool enableXSSAuditor : 1;
bool webGLEnabled : 1;
+ bool tabsToLinks : 1;
struct {
float minScale;
float maxScale;
@@ -737,6 +738,7 @@
priv->settings.pageCache = priv->pageSettings->usesPageCache();
priv->settings.encodingDetector = priv->pageSettings->usesEncodingDetector();
priv->settings.webGLEnabled = priv->pageSettings->webGLEnabled();
+ priv->settings.tabsToLinks = true;
priv->settings.userAgent = ewk_settings_default_user_agent_get();
@@ -2490,6 +2492,22 @@
return true;
}
+Eina_Bool ewk_view_setting_include_links_in_focus_chain_get(const Evas_Object* ewkView)
+{
+ EWK_VIEW_SD_GET_OR_RETURN(ewkView, smartData, false);
+ EWK_VIEW_PRIV_GET_OR_RETURN(smartData, priv, false);
+ return priv->settings.tabsToLinks;
+}
+
+Eina_Bool ewk_view_setting_include_links_in_focus_chain_set(Evas_Object* ewkView, Eina_Bool enable)
+{
+ EWK_VIEW_SD_GET_OR_RETURN(ewkView, smartData, false);
+ EWK_VIEW_PRIV_GET_OR_RETURN(smartData, priv, false);
+ enable = !!enable;
+ priv->settings.tabsToLinks = enable;
+ return true;
+}
+
Ewk_View_Smart_Data* ewk_view_smart_data_get(const Evas_Object* ewkView)
{
EWK_VIEW_SD_GET_OR_RETURN(ewkView, smartData, 0);
Modified: trunk/Source/WebKit/efl/ewk/ewk_view.h (115448 => 115449)
--- trunk/Source/WebKit/efl/ewk/ewk_view.h 2012-04-27 17:37:02 UTC (rev 115448)
+++ trunk/Source/WebKit/efl/ewk/ewk_view.h 2012-04-27 18:01:13 UTC (rev 115449)
@@ -2019,6 +2019,33 @@
EAPI Eina_Bool ewk_view_setting_enable_webgl_set(Evas_Object *o, Eina_Bool enable);
/**
+ * Queries if tab key focusing of page elements is enabled.
+ *
+ * When this setting is enabled, the elements in the page (links and form controls) will be cycled through by pressing the tab key.
+ * Tab key focusing of page elements is enabled by default.
+ *
+ * @param o view object to query if tab key focusing of page elements is enabled
+ *
+ * @return @c EINA_TRUE if tab key focusing of page elements is enabled, @c EINA_FALSE
+ * otherwise
+ */
+EAPI Eina_Bool ewk_view_setting_include_links_in_focus_chain_get(const Evas_Object *o);
+
+/**
+ * Enables/disables tab key focusing of page elements.
+ *
+ * When this setting is enabled, the elements in the page (links and form controls) will be cycled through by pressing the tab key.
+ * Tab key focusing of page elements is enabled by default.
+ *
+ * @param o view object to set tab key focusing of page elements
+ * @param enable @c EINA_TRUE to enable tab key focusing of page elements, @c EINA_FALSE to
+ * disable
+ *
+ * @return @c EINA_TRUE on success or @EINA_FALSE on failure
+ */
+EAPI Eina_Bool ewk_view_setting_include_links_in_focus_chain_set(Evas_Object *o, Eina_Bool enable);
+
+/**
* Gets the internal data of @a o.
*
* This is similar to evas_object_smart_data_get(), but additionally does type checking.
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes