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

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

Issue 16194013: Mouse press should focus on any types of form controls. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 7 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/html/HTMLFormControlElement.h
diff --git a/Source/core/html/HTMLFormControlElement.h b/Source/core/html/HTMLFormControlElement.h
index b9886d77bf5086b9ee960bf740202765a5b77e30..866f5b5f2299fbe6229e936124397de3e1c2fed0 100644
--- a/Source/core/html/HTMLFormControlElement.h
+++ b/Source/core/html/HTMLFormControlElement.h
@@ -119,7 +119,10 @@ protected:
virtual bool supportsFocus() const;
virtual bool isKeyboardFocusable(KeyboardEvent*) const;
- virtual bool isMouseFocusable() const;
+ virtual bool shouldShowFocusRingOnMouseFocus() const;
+ virtual bool shouldHaveFocusAppearance() const OVERRIDE;
+ virtual void dispatchFocusEvent(PassRefPtr<Node> oldFocusedNode, FocusDirection) OVERRIDE;
+ void willHandleKeyDownEvent();
virtual void didRecalcStyle(StyleChange) OVERRIDE;
@@ -167,7 +170,7 @@ private:
bool m_isValid : 1;
bool m_wasChangedSinceLastFormControlChangeEvent : 1;
-
+ bool m_wasFocusedByMouse : 1;
bool m_hasAutofocused : 1;
};

Powered by Google App Engine
This is Rietveld 408576698