diff options
author | Simon Hausmann <simon.hausmann@nokia.com> | 2012-07-30 11:37:48 +0200 |
---|---|---|
committer | Simon Hausmann <simon.hausmann@nokia.com> | 2012-07-30 11:38:52 +0200 |
commit | 89e2486a48b739f8d771d69ede5a6a1b244a10fc (patch) | |
tree | 503b1a7812cf97d93704c32437eb5f62dc1a1ff9 /Source/WebCore/page/FocusController.h | |
parent | 625f028249cb37c55bbbd153f3902afd0b0756d9 (diff) | |
download | qtwebkit-89e2486a48b739f8d771d69ede5a6a1b244a10fc.tar.gz |
Imported WebKit commit 0282df8ca7c11d8c8a66ea18543695c69f545a27 (http://svn.webkit.org/repository/webkit/trunk@124002)
New snapshot with prospective Mountain Lion build fix
Diffstat (limited to 'Source/WebCore/page/FocusController.h')
-rw-r--r-- | Source/WebCore/page/FocusController.h | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/Source/WebCore/page/FocusController.h b/Source/WebCore/page/FocusController.h index 75223d60a..cb90f9694 100644 --- a/Source/WebCore/page/FocusController.h +++ b/Source/WebCore/page/FocusController.h @@ -45,16 +45,16 @@ class Node; class Page; class TreeScope; -class FocusScope { +class FocusNavigationScope { public: Node* rootNode() const; Element* owner() const; - static FocusScope focusScopeOf(Node*); - static FocusScope focusScopeOwnedByShadowHost(Node*); - static FocusScope focusScopeOwnedByIFrame(HTMLFrameOwnerElement*); + static FocusNavigationScope focusNavigationScopeOf(Node*); + static FocusNavigationScope focusNavigationScopeOwnedByShadowHost(Node*); + static FocusNavigationScope focusNavigationScopeOwnedByIFrame(HTMLFrameOwnerElement*); private: - explicit FocusScope(TreeScope*); + explicit FocusNavigationScope(TreeScope*); TreeScope* m_rootTreeScope; }; @@ -87,8 +87,8 @@ private: bool advanceFocusDirectionally(FocusDirection, KeyboardEvent*); bool advanceFocusInDocumentOrder(FocusDirection, KeyboardEvent*, bool initialFocus); - Node* findFocusableNodeAcrossFocusScope(FocusDirection, FocusScope startScope, Node* start, KeyboardEvent*); - Node* findFocusableNodeRecursively(FocusDirection, FocusScope, Node* start, KeyboardEvent*); + Node* findFocusableNodeAcrossFocusScope(FocusDirection, FocusNavigationScope startScope, Node* start, KeyboardEvent*); + Node* findFocusableNodeRecursively(FocusDirection, FocusNavigationScope, Node* start, KeyboardEvent*); Node* findFocusableNodeDecendingDownIntoFrameDocument(FocusDirection, Node*, KeyboardEvent*); // Searches through the given tree scope, starting from start node, for the next/previous selectable element that comes after/before start node. @@ -100,10 +100,10 @@ private: // @return The focus node that comes after/before start node. // // See http://www.w3.org/TR/html4/interact/forms.html#h-17.11.1 - inline Node* findFocusableNode(FocusDirection, FocusScope, Node* start, KeyboardEvent*); + inline Node* findFocusableNode(FocusDirection, FocusNavigationScope, Node* start, KeyboardEvent*); - Node* nextFocusableNode(FocusScope, Node* start, KeyboardEvent*); - Node* previousFocusableNode(FocusScope, Node* start, KeyboardEvent*); + Node* nextFocusableNode(FocusNavigationScope, Node* start, KeyboardEvent*); + Node* previousFocusableNode(FocusNavigationScope, Node* start, KeyboardEvent*); Node* findNodeWithExactTabIndex(Node* start, int tabIndex, KeyboardEvent*, FocusDirection); |