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

Unified Diff: Source/core/page/SpatialNavigation.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/FocusType.h ('k') | Source/core/page/SpatialNavigation.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/page/SpatialNavigation.h
diff --git a/Source/core/page/SpatialNavigation.h b/Source/core/page/SpatialNavigation.h
index c4a5cfb46bce776ced83383ade66fd175b5e0d86..dee7901ef831926cc0db9ad6a06c6b9db7e3819f 100644
--- a/Source/core/page/SpatialNavigation.h
+++ b/Source/core/page/SpatialNavigation.h
@@ -22,8 +22,8 @@
#define SpatialNavigation_h
#include "core/dom/Node.h"
-#include "core/page/FocusType.h"
#include "platform/geometry/LayoutRect.h"
+#include "public/platform/WebFocusType.h"
#include <limits>
@@ -108,8 +108,8 @@ public:
{
}
- FocusCandidate(Node*, FocusType);
- explicit FocusCandidate(HTMLAreaElement*, FocusType);
+ FocusCandidate(Node*, WebFocusType);
+ explicit FocusCandidate(HTMLAreaElement*, WebFocusType);
bool isNull() const { return !visibleNode; }
bool inScrollableContainer() const { return visibleNode && enclosingScrollableBox; }
bool isFrameOwnerElement() const { return visibleNode && visibleNode->isFrameOwnerElement(); }
@@ -128,19 +128,19 @@ public:
bool isOffscreenAfterScrolling;
};
-bool hasOffscreenRect(Node*, FocusType = FocusTypeNone);
-bool scrollInDirection(LocalFrame*, FocusType);
-bool scrollInDirection(Node* container, FocusType);
-bool canScrollInDirection(const Node* container, FocusType);
-bool canScrollInDirection(const LocalFrame*, FocusType);
-bool canBeScrolledIntoView(FocusType, const FocusCandidate&);
+bool hasOffscreenRect(Node*, WebFocusType = WebFocusTypeNone);
+bool scrollInDirection(LocalFrame*, WebFocusType);
+bool scrollInDirection(Node* container, WebFocusType);
+bool canScrollInDirection(const Node* container, WebFocusType);
+bool canScrollInDirection(const LocalFrame*, WebFocusType);
+bool canBeScrolledIntoView(WebFocusType, const FocusCandidate&);
bool areElementsOnSameLine(const FocusCandidate& firstCandidate, const FocusCandidate& secondCandidate);
-void distanceDataForNode(FocusType, const FocusCandidate& current, FocusCandidate&);
-Node* scrollableEnclosingBoxOrParentFrameForNodeInDirection(FocusType, Node*);
+void distanceDataForNode(WebFocusType, const FocusCandidate& current, FocusCandidate&);
+Node* scrollableEnclosingBoxOrParentFrameForNodeInDirection(WebFocusType, Node*);
LayoutRect nodeRectInAbsoluteCoordinates(Node*, bool ignoreBorder = false);
LayoutRect frameRectInAbsoluteCoordinates(LocalFrame*);
-LayoutRect virtualRectForDirection(FocusType, const LayoutRect& startingRect, LayoutUnit width = 0);
-LayoutRect virtualRectForAreaElementAndDirection(HTMLAreaElement&, FocusType);
+LayoutRect virtualRectForDirection(WebFocusType, const LayoutRect& startingRect, LayoutUnit width = 0);
+LayoutRect virtualRectForAreaElementAndDirection(HTMLAreaElement&, WebFocusType);
HTMLFrameOwnerElement* frameOwnerElement(FocusCandidate&);
} // namespace blink
« no previous file with comments | « Source/core/page/FocusType.h ('k') | Source/core/page/SpatialNavigation.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698