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

Side by Side Diff: third_party/WebKit/Source/core/html/forms/ColorInputType.cpp

Issue 2811793004: Rename EqualIgnoringCase*() to DeprecatedEqualIgnoringCase*() (Closed)
Patch Set: Created 3 years, 8 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
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 155 matching lines...) Expand 10 before | Expand all | Expand 10 after
166 166
167 bool ColorInputType::ShouldRespectListAttribute() { 167 bool ColorInputType::ShouldRespectListAttribute() {
168 return true; 168 return true;
169 } 169 }
170 170
171 bool ColorInputType::TypeMismatchFor(const String& value) const { 171 bool ColorInputType::TypeMismatchFor(const String& value) const {
172 return !IsValidColorString(value); 172 return !IsValidColorString(value);
173 } 173 }
174 174
175 void ColorInputType::WarnIfValueIsInvalid(const String& value) const { 175 void ColorInputType::WarnIfValueIsInvalid(const String& value) const {
176 if (!EqualIgnoringCase(value, GetElement().SanitizeValue(value))) 176 if (!DeprecatedEqualIgnoringCase(value, GetElement().SanitizeValue(value)))
177 AddWarningToConsole( 177 AddWarningToConsole(
178 "The specified value %s does not conform to the required format. The " 178 "The specified value %s does not conform to the required format. The "
179 "format is \"#rrggbb\" where rr, gg, bb are two-digit hexadecimal " 179 "format is \"#rrggbb\" where rr, gg, bb are two-digit hexadecimal "
180 "numbers.", 180 "numbers.",
181 value); 181 value);
182 } 182 }
183 183
184 void ColorInputType::ValueAttributeChanged() { 184 void ColorInputType::ValueAttributeChanged() {
185 if (!GetElement().HasDirtyValue()) 185 if (!GetElement().HasDirtyValue())
186 GetElement().UpdateView(); 186 GetElement().UpdateView();
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
264 264
265 AXObject* ColorInputType::PopupRootAXObject() { 265 AXObject* ColorInputType::PopupRootAXObject() {
266 return chooser_ ? chooser_->RootAXObject() : nullptr; 266 return chooser_ ? chooser_->RootAXObject() : nullptr;
267 } 267 }
268 268
269 ColorChooserClient* ColorInputType::GetColorChooserClient() { 269 ColorChooserClient* ColorInputType::GetColorChooserClient() {
270 return this; 270 return this;
271 } 271 }
272 272
273 } // namespace blink 273 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698