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

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: Created 5 years, 2 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
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 cfc9218da260a613d07093816f0539668746cbab..77a0226a48a96bfbf11f901e7274b8d8656b0114 100644
--- a/third_party/WebKit/Source/core/page/FocusController.h
+++ b/third_party/WebKit/Source/core/page/FocusController.h
@@ -52,6 +52,7 @@ public:
void setFocusedFrame(PassRefPtrWillBeRawPtr<Frame>);
void focusDocumentView(PassRefPtrWillBeRawPtr<Frame>);
LocalFrame* focusedFrame() const;
+ Frame* focusedFrameEvenIfRemote() const { return m_focusedFrame.get(); }
alexmos 2015/10/26 22:33:21 Name suggestions are very welcome. :) Now that fo
dcheng 2015/10/28 00:34:15 This is essentially what I had in mind. I can't th
Frame* focusedOrMainFrame() const;
bool setInitialFocus(WebFocusType);

Powered by Google App Engine
This is Rietveld 408576698