Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(999)

Unified Diff: Source/core/page/FocusController.h

Issue 852083002: Propagate focus type to plugins (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Moved Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/page/EventHandler.cpp ('k') | Source/core/page/FocusController.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/page/FocusController.h
diff --git a/Source/core/page/FocusController.h b/Source/core/page/FocusController.h
index bad81b1cd76d4573a93aeaca7399797a275d63e4..365d9109bcc2f93d59373134a9e39e8fc2bd10f8 100644
--- a/Source/core/page/FocusController.h
+++ b/Source/core/page/FocusController.h
@@ -26,9 +26,9 @@
#ifndef FocusController_h
#define FocusController_h
-#include "core/page/FocusType.h"
#include "platform/geometry/LayoutRect.h"
#include "platform/heap/Handle.h"
+#include "public/platform/WebFocusType.h"
#include "wtf/Forward.h"
#include "wtf/Noncopyable.h"
#include "wtf/RefPtr.h"
@@ -55,10 +55,10 @@ public:
Frame* focusedFrame() const { return m_focusedFrame.get(); }
Frame* focusedOrMainFrame() const;
- bool setInitialFocus(FocusType);
- bool advanceFocus(FocusType type) { return advanceFocus(type, false); }
+ bool setInitialFocus(WebFocusType);
+ bool advanceFocus(WebFocusType type) { return advanceFocus(type, false); }
- bool setFocusedElement(Element*, PassRefPtrWillBeRawPtr<Frame>, FocusType = FocusTypeNone);
+ bool setFocusedElement(Element*, PassRefPtrWillBeRawPtr<Frame>, WebFocusType = WebFocusTypeNone);
void setActive(bool);
bool isActive() const { return m_isActive; }
@@ -71,13 +71,13 @@ public:
private:
explicit FocusController(Page*);
- bool advanceFocus(FocusType, bool initialFocus);
- bool advanceFocusDirectionally(FocusType);
- bool advanceFocusInDocumentOrder(FocusType, bool initialFocus);
+ bool advanceFocus(WebFocusType, bool initialFocus);
+ bool advanceFocusDirectionally(WebFocusType);
+ bool advanceFocusInDocumentOrder(WebFocusType, bool initialFocus);
- Node* findFocusableNodeAcrossFocusScope(FocusType, const FocusNavigationScope&, Node*);
- Node* findFocusableNodeRecursively(FocusType, const FocusNavigationScope&, Node*);
- Node* findFocusableNodeDecendingDownIntoFrameDocument(FocusType, Node*);
+ Node* findFocusableNodeAcrossFocusScope(WebFocusType, const FocusNavigationScope&, Node*);
+ Node* findFocusableNodeRecursively(WebFocusType, const FocusNavigationScope&, Node*);
+ Node* findFocusableNodeDecendingDownIntoFrameDocument(WebFocusType, Node*);
// Searches through the given tree scope, starting from start node, for the next/previous selectable element that comes after/before start node.
// The order followed is as specified in section 17.11.1 of the HTML4 spec, which is elements with tab indexes
@@ -88,15 +88,15 @@ 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(FocusType, const FocusNavigationScope&, Node* start);
+ inline Node* findFocusableNode(WebFocusType, const FocusNavigationScope&, Node* start);
Node* nextFocusableNode(const FocusNavigationScope&, Node* start);
Node* previousFocusableNode(const FocusNavigationScope&, Node* start);
- Node* findNodeWithExactTabIndex(Node* start, int tabIndex, FocusType);
+ Node* findNodeWithExactTabIndex(Node* start, int tabIndex, WebFocusType);
- bool advanceFocusDirectionallyInContainer(Node* container, const LayoutRect& startingRect, FocusType);
- void findFocusCandidateInContainer(Node& container, const LayoutRect& startingRect, FocusType, FocusCandidate& closest);
+ bool advanceFocusDirectionallyInContainer(Node* container, const LayoutRect& startingRect, WebFocusType);
+ void findFocusCandidateInContainer(Node& container, const LayoutRect& startingRect, WebFocusType, FocusCandidate& closest);
RawPtrWillBeMember<Page> m_page;
RefPtrWillBeMember<Frame> m_focusedFrame;
« no previous file with comments | « Source/core/page/EventHandler.cpp ('k') | Source/core/page/FocusController.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698