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

Unified Diff: Source/core/html/forms/BaseClickableWithKeyInputType.h

Issue 27746003: Have InputType factories take an HTMLInputElement reference in parameter (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase on master Created 7 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: Source/core/html/forms/BaseClickableWithKeyInputType.h
diff --git a/Source/core/html/forms/BaseClickableWithKeyInputType.h b/Source/core/html/forms/BaseClickableWithKeyInputType.h
index 23b2a2e63da5c4150ca03e2b2dcc9c979073d3bb..bd0161de3b185f6078df775229a528083aa8f0f9 100644
--- a/Source/core/html/forms/BaseClickableWithKeyInputType.h
+++ b/Source/core/html/forms/BaseClickableWithKeyInputType.h
@@ -38,13 +38,13 @@ namespace WebCore {
// Base of input types that dispatches a simulated click on space/return key.
class BaseClickableWithKeyInputType : public InputType {
public:
- static void handleKeydownEvent(HTMLInputElement*, KeyboardEvent*);
- static void handleKeypressEvent(HTMLInputElement*, KeyboardEvent*);
+ static void handleKeydownEvent(HTMLInputElement&, KeyboardEvent*);
+ static void handleKeypressEvent(HTMLInputElement&, KeyboardEvent*);
static void handleKeyupEvent(InputType&, KeyboardEvent*);
- static void accessKeyAction(HTMLInputElement*, bool sendMouseEvents);
+ static void accessKeyAction(HTMLInputElement&, bool sendMouseEvents);
protected:
- BaseClickableWithKeyInputType(HTMLInputElement* element) : InputType(element) { }
+ BaseClickableWithKeyInputType(HTMLInputElement& element) : InputType(element) { }
private:
virtual void handleKeydownEvent(KeyboardEvent*) OVERRIDE;

Powered by Google App Engine
This is Rietveld 408576698