OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2005, 2011 Apple Inc. All rights reserved. | 2 * Copyright (C) 2005, 2011 Apple Inc. All rights reserved. |
3 * Copyright (C) 2010 Google Inc. All rights reserved. | 3 * Copyright (C) 2010 Google Inc. All rights reserved. |
4 * | 4 * |
5 * This library is free software; you can redistribute it and/or | 5 * This library is free software; you can redistribute it and/or |
6 * modify it under the terms of the GNU Library General Public | 6 * modify it under the terms of the GNU Library General Public |
7 * License as published by the Free Software Foundation; either | 7 * License as published by the Free Software Foundation; either |
8 * version 2 of the License, or (at your option) any later version. | 8 * version 2 of the License, or (at your option) any later version. |
9 * | 9 * |
10 * This library is distributed in the hope that it will be useful, | 10 * This library is distributed in the hope that it will be useful, |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
56 return InputTypeNames::radio; | 56 return InputTypeNames::radio; |
57 } | 57 } |
58 | 58 |
59 bool RadioInputType::valueMissing(const String&) const | 59 bool RadioInputType::valueMissing(const String&) const |
60 { | 60 { |
61 return element().isInRequiredRadioButtonGroup() && !element().checkedRadioBu
ttonForGroup(); | 61 return element().isInRequiredRadioButtonGroup() && !element().checkedRadioBu
ttonForGroup(); |
62 } | 62 } |
63 | 63 |
64 String RadioInputType::valueMissingText() const | 64 String RadioInputType::valueMissingText() const |
65 { | 65 { |
66 return locale().queryString(blink::WebLocalizedString::ValidationValueMissin
gForRadio); | 66 return locale().queryString(WebLocalizedString::ValidationValueMissingForRad
io); |
67 } | 67 } |
68 | 68 |
69 void RadioInputType::handleClickEvent(MouseEvent* event) | 69 void RadioInputType::handleClickEvent(MouseEvent* event) |
70 { | 70 { |
71 event->setDefaultHandled(); | 71 event->setDefaultHandled(); |
72 } | 72 } |
73 | 73 |
74 HTMLInputElement* RadioInputType::findNextFocusableRadioButtonInGroup(HTMLInputE
lement* currentElement, bool forward) | 74 HTMLInputElement* RadioInputType::findNextFocusableRadioButtonInGroup(HTMLInputE
lement* currentElement, bool forward) |
75 { | 75 { |
76 HTMLElement* htmlElement; | 76 HTMLElement* htmlElement; |
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
203 // The work we did in willDispatchClick was default handling. | 203 // The work we did in willDispatchClick was default handling. |
204 event->setDefaultHandled(); | 204 event->setDefaultHandled(); |
205 } | 205 } |
206 | 206 |
207 bool RadioInputType::shouldAppearIndeterminate() const | 207 bool RadioInputType::shouldAppearIndeterminate() const |
208 { | 208 { |
209 return !element().checkedRadioButtonForGroup(); | 209 return !element().checkedRadioButtonForGroup(); |
210 } | 210 } |
211 | 211 |
212 } // namespace blink | 212 } // namespace blink |
OLD | NEW |