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

Side by Side Diff: Source/core/html/TextFieldInputType.h

Issue 16194013: Mouse press should focus on any types of form controls. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebase Created 7 years, 6 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « Source/core/html/InputType.cpp ('k') | Source/core/html/TextFieldInputType.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2010 Google Inc. All rights reserved. 2 * Copyright (C) 2010 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 72
73 virtual String convertFromVisibleValue(const String&) const; 73 virtual String convertFromVisibleValue(const String&) const;
74 enum ValueChangeState { 74 enum ValueChangeState {
75 ValueChangeStateNone, 75 ValueChangeStateNone,
76 ValueChangeStateChanged 76 ValueChangeStateChanged
77 }; 77 };
78 virtual void didSetValueByUserEdit(ValueChangeState); 78 virtual void didSetValueByUserEdit(ValueChangeState);
79 79
80 private: 80 private:
81 virtual bool isKeyboardFocusable(KeyboardEvent*) const OVERRIDE; 81 virtual bool isKeyboardFocusable(KeyboardEvent*) const OVERRIDE;
82 virtual bool isMouseFocusable() const OVERRIDE; 82 virtual bool shouldShowFocusRingOnMouseFocus() const OVERRIDE;
83 virtual bool isTextField() const OVERRIDE; 83 virtual bool isTextField() const OVERRIDE;
84 virtual bool valueMissing(const String&) const OVERRIDE; 84 virtual bool valueMissing(const String&) const OVERRIDE;
85 virtual void handleBeforeTextInsertedEvent(BeforeTextInsertedEvent*) OVERRID E; 85 virtual void handleBeforeTextInsertedEvent(BeforeTextInsertedEvent*) OVERRID E;
86 virtual void forwardEvent(Event*) OVERRIDE; 86 virtual void forwardEvent(Event*) OVERRIDE;
87 virtual bool shouldSubmitImplicitly(Event*) OVERRIDE; 87 virtual bool shouldSubmitImplicitly(Event*) OVERRIDE;
88 virtual RenderObject* createRenderer(RenderStyle*) const OVERRIDE; 88 virtual RenderObject* createRenderer(RenderStyle*) const OVERRIDE;
89 virtual bool shouldUseInputMethod() const OVERRIDE; 89 virtual bool shouldUseInputMethod() const OVERRIDE;
90 virtual String sanitizeValue(const String&) const OVERRIDE; 90 virtual String sanitizeValue(const String&) const OVERRIDE;
91 virtual bool shouldRespectListAttribute() OVERRIDE; 91 virtual bool shouldRespectListAttribute() OVERRIDE;
92 virtual HTMLElement* placeholderElement() const OVERRIDE; 92 virtual HTMLElement* placeholderElement() const OVERRIDE;
(...skipping 14 matching lines...) Expand all
107 RefPtr<HTMLElement> m_placeholder; 107 RefPtr<HTMLElement> m_placeholder;
108 RefPtr<SpinButtonElement> m_innerSpinButton; 108 RefPtr<SpinButtonElement> m_innerSpinButton;
109 #if ENABLE(INPUT_SPEECH) 109 #if ENABLE(INPUT_SPEECH)
110 RefPtr<HTMLElement> m_speechButton; 110 RefPtr<HTMLElement> m_speechButton;
111 #endif 111 #endif
112 }; 112 };
113 113
114 } // namespace WebCore 114 } // namespace WebCore
115 115
116 #endif // TextFieldInputType_h 116 #endif // TextFieldInputType_h
OLDNEW
« no previous file with comments | « Source/core/html/InputType.cpp ('k') | Source/core/html/TextFieldInputType.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698