Changeset 72363

Timestamp:
11/18/10 20:48:45 (4 years ago)
Author:
tkent@chromium.org
Message:

2010-11-18 Kent Tamura <tkent@chromium.org>

Reviewed by Tony Chang.

Add more validation message functions
https://bugs.webkit.org/show_bug.cgi?id=49716

Add the following message functions:

  • validationMessageValueMissingForCheckbox()
  • validationMessageValueMissingForFile()
  • validationMessageValueMissingForMultipleFile()
  • validationMessageValueMissingForRadio()
  • validationMessageValueMissingForSelect()

and update ValidityState, HTMLInputElement, and InputTypes to use them.

No new tests because this doesn't change visible behavior.

  • html/CheckboxInputType.cpp: (WebCore::CheckboxInputType::valueMissingText):
  • html/CheckboxInputType.h:
  • html/FileInputType.cpp: (WebCore::FileInputType::valueMissingText):
  • html/FileInputType.h:
  • html/HTMLInputElement.cpp: (WebCore::HTMLInputElement::valueMissingText):
  • html/HTMLInputElement.h:
  • html/InputType.cpp: (WebCore::InputType::valueMissingText):
  • html/InputType.h:
  • html/RadioInputType.cpp: (WebCore::RadioInputType::valueMissingText):
  • html/RadioInputType.h:
  • html/ValidityState.cpp: (WebCore::ValidityState::validationMessage):
  • platform/LocalizedStrings.cpp: (WebCore::validationMessageValueMissingForCheckboxText): (WebCore::validationMessageValueMissingForFileText): (WebCore::validationMessageValueMissingForMultipleFileText): (WebCore::validationMessageValueMissingForRadioText): (WebCore::validationMessageValueMissingForSelectText):
  • platform/LocalizedStrings.h:
  • platform/android/LocalizedStringsAndroid.cpp: (WebCore::validationMessageValueMissingForCheckboxText): (WebCore::validationMessageValueMissingForFileText): (WebCore::validationMessageValueMissingForMultipleFileText): (WebCore::validationMessageValueMissingForRadioText): (WebCore::validationMessageValueMissingForSelectText):
  • platform/brew/LocalizedStringsBrew.cpp: (WebCore::validationMessageValueMissingForCheckboxText): (WebCore::validationMessageValueMissingForFileText): (WebCore::validationMessageValueMissingForMultipleFileText): (WebCore::validationMessageValueMissingForRadioText): (WebCore::validationMessageValueMissingForSelectText):
  • platform/efl/LocalizedStringsEfl.cpp: (WebCore::validationMessageValueMissingForCheckboxText): (WebCore::validationMessageValueMissingForFileText): (WebCore::validationMessageValueMissingForMultipleFileText): (WebCore::validationMessageValueMissingForRadioText): (WebCore::validationMessageValueMissingForSelectText):
  • platform/gtk/LocalizedStringsGtk.cpp: (WebCore::validationMessageValueMissingForCheckboxText): (WebCore::validationMessageValueMissingForFileText): (WebCore::validationMessageValueMissingForMultipleFileText): (WebCore::validationMessageValueMissingForRadioText): (WebCore::validationMessageValueMissingForSelectText):
  • platform/haiku/LocalizedStringsHaiku.cpp: (WebCore::validationMessageValueMissingText): (WebCore::validationMessageValueMissingForCheckboxText): (WebCore::validationMessageValueMissingForFileText): (WebCore::validationMessageValueMissingForMultipleFileText): (WebCore::validationMessageValueMissingForRadioText): (WebCore::validationMessageValueMissingForSelectText):
  • platform/wx/LocalizedStringsWx.cpp: (WebCore::validationMessageValueMissingForCheckboxText): (WebCore::validationMessageValueMissingForFileText): (WebCore::validationMessageValueMissingForMultipleFileText): (WebCore::validationMessageValueMissingForRadioText): (WebCore::validationMessageValueMissingForSelectText):

2010-11-18 Kent Tamura <tkent@chromium.org>

Reviewed by Tony Chang.

Add more validation message functions
https://bugs.webkit.org/show_bug.cgi?id=49716

Add implementations of new functions and symbols for new messages.

  • public/WebLocalizedString.h:
  • src/LocalizedStrings.cpp: (WebCore::validationMessageValueMissingForCheckboxText): (WebCore::validationMessageValueMissingForFileText): (WebCore::validationMessageValueMissingForMultipleFileText): (WebCore::validationMessageValueMissingForRadioText): (WebCore::validationMessageValueMissingForSelectText):
Location:
trunk
Files:
23 edited

Note: See TracChangeset for help on using the changeset viewer.