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

Side by Side Diff: Source/core/html/forms/RadioInputType.cpp

Issue 1115553002: Removing blink::prefix (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase Created 5 years, 7 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
« no previous file with comments | « Source/core/html/forms/EmailInputType.cpp ('k') | Source/core/html/forms/ResetInputType.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « Source/core/html/forms/EmailInputType.cpp ('k') | Source/core/html/forms/ResetInputType.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698