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

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

Issue 455223002: Make anchors mouse-focusable (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: De-duplicate using FocusController; update TestExpectations Created 6 years, 4 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: Source/core/page/FocusController.h
diff --git a/Source/core/page/FocusController.h b/Source/core/page/FocusController.h
index f12d1a0d738e38327a99abeefbd46d7ded4fe986..f6ac082c873dac5f6c23e605abf2c10d29a665b8 100644
--- a/Source/core/page/FocusController.h
+++ b/Source/core/page/FocusController.h
@@ -77,6 +77,8 @@ public:
bool advanceFocus(FocusType type) { return advanceFocus(type, false); }
bool setFocusedElement(Element*, PassRefPtr<Frame>, FocusType = FocusTypeNone);
+ bool setWasFocusedByMouse(bool);
+ bool wasFocusedByMouse() const { return m_wasFocusedByMouse; }
void setActive(bool);
bool isActive() const { return m_isActive; }
@@ -116,6 +118,7 @@ private:
Page* m_page;
RefPtr<Frame> m_focusedFrame;
+ bool m_wasFocusedByMouse;
pdr. 2014/08/12 02:02:22 It may be clearer to rename this "m_elementWasFocu
bool m_isActive;
bool m_isFocused;
bool m_isChangingFocusedFrame;

Powered by Google App Engine
This is Rietveld 408576698