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

Unified Diff: Source/core/html/HTMLAnchorElement.h

Issue 455223002: Make anchors mouse-focusable (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Move m_wasFocusedByMouse into subclasses. 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
« no previous file with comments | « Source/core/dom/Element.cpp ('k') | Source/core/html/HTMLAnchorElement.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/html/HTMLAnchorElement.h
diff --git a/Source/core/html/HTMLAnchorElement.h b/Source/core/html/HTMLAnchorElement.h
index 701470bdfc6258f1c8b9a5a2c33cdbe002481d9e..35f6e501fea40b7d516501f39069d30363cd24f8 100644
--- a/Source/core/html/HTMLAnchorElement.h
+++ b/Source/core/html/HTMLAnchorElement.h
@@ -92,6 +92,9 @@ protected:
virtual bool supportsFocus() const OVERRIDE;
private:
+ virtual bool shouldHaveFocusAppearance() const OVERRIDE FINAL;
+ virtual bool wasFocusedByMouse() const OVERRIDE FINAL;
+ virtual void setWasFocusedByMouse(bool) OVERRIDE FINAL;
virtual bool isMouseFocusable() const OVERRIDE;
virtual bool isKeyboardFocusable() const OVERRIDE;
virtual void defaultEventHandler(Event*) OVERRIDE FINAL;
@@ -108,6 +111,7 @@ private:
uint32_t m_linkRelations;
mutable LinkHash m_cachedVisitedLinkHash;
+ bool m_wasFocusedByMouse;
};
inline LinkHash HTMLAnchorElement::visitedLinkHash() const
« no previous file with comments | « Source/core/dom/Element.cpp ('k') | Source/core/html/HTMLAnchorElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698