Changeset 55579 in webkit


Ignore:
Timestamp:
Mar 5, 2010 7:49:37 AM (14 years ago)
Author:
tonikitoo@webkit.org
Message:

[Qt] QWebSettings attribute for toggle Spatial Navigation on/off
https://bugs.webkit.org/show_bug.cgi?id=33714 (Qt API part)

Reviewed by Simon Hausmann.
Patch by Antonio Gomes <tonikitoo@webkit.org>

Added 'SpatialNavigationEnabled' attribute to QWebSettings.

  • Api/qwebsettings.cpp:

(QWebSettingsPrivate::apply):

  • Api/qwebsettings.h:
Location:
trunk/WebKit/qt
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebKit/qt/Api/qwebsettings.cpp

    r55452 r55579  
    183183                                      global->attributes.value(QWebSettings::PrivateBrowsingEnabled));
    184184        settings->setPrivateBrowsingEnabled(value);
     185
     186        value = attributes.value(QWebSettings::SpatialNavigationEnabled,
     187                                      global->attributes.value(QWebSettings::SpatialNavigationEnabled));
     188        settings->setSpatialNavigationEnabled(value);
    185189
    186190        value = attributes.value(QWebSettings::JavascriptCanAccessClipboard,
     
    365369        well as the use of QWebInspector which controls the WebKit WebInspector
    366370        for web site debugging.
     371    \value SpatialNavigationEnabled Enables or disables the Spatial Navigation
     372        feature, which consists in the ability to navigate between focusable
     373        elements in a Web page, such as hyperlinks and form controls, by using
     374        Left, Right, Up and Down arrow keys. For example, if an user presses the
     375        Right key, heuristics determine whether there is an element he might be
     376        trying to reach towards the right, and if there are multiple elements,
     377        which element he probably wants.
    367378    \value LinksIncludedInFocusChain Specifies whether hyperlinks should be
    368379        included in the keyboard focus chain.
     
    405416    d->attributes.insert(QWebSettings::DnsPrefetchEnabled, false);
    406417    d->attributes.insert(QWebSettings::JavascriptEnabled, true);
     418    d->attributes.insert(QWebSettings::SpatialNavigationEnabled, false);
    407419    d->attributes.insert(QWebSettings::LinksIncludedInFocusChain, true);
    408420    d->attributes.insert(QWebSettings::ZoomTextOnly, false);
  • trunk/WebKit/qt/Api/qwebsettings.h

    r55273 r55579  
    7272        XSSAuditorEnabled,
    7373        AcceleratedCompositingEnabled,
    74         WebGLEnabled
     74        WebGLEnabled,
     75        SpatialNavigationEnabled
    7576    };
    7677    enum WebGraphic {
  • trunk/WebKit/qt/ChangeLog

    r55539 r55579  
     12010-03-02  Antonio Gomes  <tonikitoo@webkit.org>
     2
     3        Reviewed by Simon Hausmann.
     4        Patch by Antonio Gomes <tonikitoo@webkit.org>
     5
     6        [Qt] QWebSettings attribute for toggle Spatial Navigation on/off
     7        https://bugs.webkit.org/show_bug.cgi?id=33714 (Qt API part)
     8
     9        Added 'SpatialNavigationEnabled' attribute to QWebSettings.
     10
     11        * Api/qwebsettings.cpp:
     12        (QWebSettingsPrivate::apply):
     13        * Api/qwebsettings.h:
     14
    1152010-03-04  Simon Hausmann  <simon.hausmann@nokia.com>
    216
Note: See TracChangeset for help on using the changeset viewer.