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

Side by Side Diff: Source/core/html/forms/TextFieldInputType.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 unified diff | Download patch | Annotate | Revision Log
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 24 matching lines...) Expand all
35 #include "core/html/shadow/SpinButtonElement.h" 35 #include "core/html/shadow/SpinButtonElement.h"
36 36
37 namespace WebCore { 37 namespace WebCore {
38 38
39 class FormDataList; 39 class FormDataList;
40 40
41 // The class represents types of which UI contain text fields. 41 // The class represents types of which UI contain text fields.
42 // It supports not only the types for BaseTextInputType but also type=number. 42 // It supports not only the types for BaseTextInputType but also type=number.
43 class TextFieldInputType : public InputType, protected SpinButtonElement::SpinBu ttonOwner { 43 class TextFieldInputType : public InputType, protected SpinButtonElement::SpinBu ttonOwner {
44 protected: 44 protected:
45 TextFieldInputType(HTMLInputElement*); 45 TextFieldInputType(HTMLInputElement&);
46 virtual ~TextFieldInputType(); 46 virtual ~TextFieldInputType();
47 virtual bool canSetSuggestedValue() OVERRIDE; 47 virtual bool canSetSuggestedValue() OVERRIDE;
48 virtual void handleKeydownEvent(KeyboardEvent*) OVERRIDE; 48 virtual void handleKeydownEvent(KeyboardEvent*) OVERRIDE;
49 void handleKeydownEventForSpinButton(KeyboardEvent*); 49 void handleKeydownEventForSpinButton(KeyboardEvent*);
50 50
51 virtual HTMLElement* innerTextElement() const OVERRIDE; 51 virtual HTMLElement* innerTextElement() const OVERRIDE;
52 52
53 protected: 53 protected:
54 virtual bool needsContainer() const; 54 virtual bool needsContainer() const;
55 virtual bool shouldHaveSpinButton() const; 55 virtual bool shouldHaveSpinButton() const;
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
96 virtual void spinButtonStepUp() OVERRIDE; 96 virtual void spinButtonStepUp() OVERRIDE;
97 97
98 SpinButtonElement* spinButtonElement() const; 98 SpinButtonElement* spinButtonElement() const;
99 99
100 RefPtr<HTMLElement> m_innerText; 100 RefPtr<HTMLElement> m_innerText;
101 }; 101 };
102 102
103 } // namespace WebCore 103 } // namespace WebCore
104 104
105 #endif // TextFieldInputType_h 105 #endif // TextFieldInputType_h
OLDNEW
« no previous file with comments | « Source/core/html/forms/TelephoneInputType.cpp ('k') | Source/core/html/forms/TextFieldInputType.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698