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

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

Issue 1423053002: Make document.activeElement work with OOPIF (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@focus-preserve-page-focus-on-subframe-navigations
Patch Set: Remove some plumbing that should instead be introduced in the window.focus() CL. Created 5 years, 1 month 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
Index: third_party/WebKit/Source/core/page/FocusController.h
diff --git a/third_party/WebKit/Source/core/page/FocusController.h b/third_party/WebKit/Source/core/page/FocusController.h
index 1fcfbff0c48b81c0ba1730dd8e6cbd7997780df2..68e2a9cceb64a0ab7ab02542be71cb57c1327855 100644
--- a/third_party/WebKit/Source/core/page/FocusController.h
+++ b/third_party/WebKit/Source/core/page/FocusController.h
@@ -39,6 +39,7 @@ namespace blink {
struct FocusCandidate;
class Element;
class Frame;
+class HTMLFrameOwnerElement;
class InputDeviceCapabilities;
class LocalFrame;
class Node;
@@ -54,6 +55,11 @@ public:
LocalFrame* focusedFrame() const;
Frame* focusedOrMainFrame() const;
+ // Finds the focused HTMLFrameOwnerElement, if any, in the provided frame.
+ // An HTMLFrameOwnerElement is considered focused if the frame it owns, or
+ // one of its descendant frames, is currently focused.
+ HTMLFrameOwnerElement* focusedFrameOwnerElement(LocalFrame& currentFrame) const;
+
bool setInitialFocus(WebFocusType);
bool advanceFocus(WebFocusType type, InputDeviceCapabilities* sourceCapabilities = nullptr) { return advanceFocus(type, false, sourceCapabilities); }
Element* findFocusableElement(WebFocusType, Node&);

Powered by Google App Engine
This is Rietveld 408576698