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

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

Issue 557613002: Remove a part of type checking predicates of HTMLInputElement. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 3 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/editing/ReplaceSelectionCommand.cpp ('k') | Source/core/html/HTMLInputElement.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/html/HTMLInputElement.h
diff --git a/Source/core/html/HTMLInputElement.h b/Source/core/html/HTMLInputElement.h
index 98ba2ff12dc2eb8ffadb26412fb7bb2fd96edd8c..5623953e2440ba9d7c0607f58e5944798daf79c2 100644
--- a/Source/core/html/HTMLInputElement.h
+++ b/Source/core/html/HTMLInputElement.h
@@ -85,34 +85,18 @@ public:
// stepUp()/stepDown() for user-interaction.
bool isSteppable() const;
+ // Returns true if the type is button, reset, or submit.
bool isTextButton() const;
-
- bool isRadioButton() const;
+ // Returns true if the type is email, number, password, search, tel, text,
+ // or url.
bool isTextField() const;
- bool isSearchField() const;
- bool isInputTypeHidden() const;
- bool isPasswordField() const;
- bool isCheckbox() const;
- bool isRangeControl() const;
-
+ // Returns true if the type is email, password, search, tel, text, or url.
// FIXME: It's highly likely that any call site calling this function should instead
// be using a different one. Many input elements behave like text fields, and in addition
// any unknown input type is treated as text. Consider, for example, isTextField or
// isTextField && !isPasswordField.
bool isText() const;
- bool isEmailField() const;
- bool isFileUpload() const;
- bool isImageButton() const;
- bool isNumberField() const;
- bool isTelephoneField() const;
- bool isURLField() const;
- bool isDateField() const;
- bool isDateTimeLocalField() const;
- bool isMonthField() const;
- bool isTimeField() const;
- bool isWeekField() const;
-
bool checked() const { return m_isChecked; }
void setChecked(bool, TextFieldEventBehavior = DispatchNoEvent);
« no previous file with comments | « Source/core/editing/ReplaceSelectionCommand.cpp ('k') | Source/core/html/HTMLInputElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698