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

Unified Diff: Source/core/html/forms/ColorInputType.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
« no previous file with comments | « Source/core/html/forms/CheckboxInputType.cpp ('k') | Source/core/html/forms/ColorInputType.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/html/forms/ColorInputType.h
diff --git a/Source/core/html/forms/ColorInputType.h b/Source/core/html/forms/ColorInputType.h
index 3d7340f37e101ee5dfe11c1a3ec22638f4e305e7..5c65c2bd733ed3a58d686ff7365c14451e7f2eeb 100644
--- a/Source/core/html/forms/ColorInputType.h
+++ b/Source/core/html/forms/ColorInputType.h
@@ -38,7 +38,7 @@ namespace WebCore {
class ColorInputType : public BaseClickableWithKeyInputType, public ColorChooserClient {
public:
- static PassRefPtr<InputType> create(HTMLInputElement*);
+ static PassRefPtr<InputType> create(HTMLInputElement&);
virtual ~ColorInputType();
// ColorChooserClient implementation.
@@ -50,7 +50,7 @@ public:
virtual Vector<Color> suggestions() const OVERRIDE;
private:
- ColorInputType(HTMLInputElement* element) : BaseClickableWithKeyInputType(element) { }
+ ColorInputType(HTMLInputElement& element) : BaseClickableWithKeyInputType(element) { }
virtual void countUsage() OVERRIDE;
virtual bool isColorControl() const OVERRIDE;
virtual const AtomicString& formControlType() const OVERRIDE;
« no previous file with comments | « Source/core/html/forms/CheckboxInputType.cpp ('k') | Source/core/html/forms/ColorInputType.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698