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

Side by Side Diff: third_party/WebKit/Source/core/html/forms/TextInputType.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 28 matching lines...) Expand all
39 39
40 InputType* TextInputType::Create(HTMLInputElement& element) { 40 InputType* TextInputType::Create(HTMLInputElement& element) {
41 return new TextInputType(element); 41 return new TextInputType(element);
42 } 42 }
43 43
44 void TextInputType::CountUsage() { 44 void TextInputType::CountUsage() {
45 CountUsageIfVisible(UseCounter::kInputTypeText); 45 CountUsageIfVisible(UseCounter::kInputTypeText);
46 if (GetElement().FastHasAttribute(maxlengthAttr)) 46 if (GetElement().FastHasAttribute(maxlengthAttr))
47 CountUsageIfVisible(UseCounter::kInputTypeTextMaxLength); 47 CountUsageIfVisible(UseCounter::kInputTypeTextMaxLength);
48 const AtomicString& type = GetElement().FastGetAttribute(typeAttr); 48 const AtomicString& type = GetElement().FastGetAttribute(typeAttr);
49 if (EqualIgnoringCase(type, InputTypeNames::datetime)) 49 if (DeprecatedEqualIgnoringCase(type, InputTypeNames::datetime))
50 CountUsageIfVisible(UseCounter::kInputTypeDateTimeFallback); 50 CountUsageIfVisible(UseCounter::kInputTypeDateTimeFallback);
51 else if (EqualIgnoringCase(type, InputTypeNames::week)) 51 else if (DeprecatedEqualIgnoringCase(type, InputTypeNames::week))
52 CountUsageIfVisible(UseCounter::kInputTypeWeekFallback); 52 CountUsageIfVisible(UseCounter::kInputTypeWeekFallback);
53 } 53 }
54 54
55 const AtomicString& TextInputType::FormControlType() const { 55 const AtomicString& TextInputType::FormControlType() const {
56 return InputTypeNames::text; 56 return InputTypeNames::text;
57 } 57 }
58 58
59 bool TextInputType::SupportsInputModeAttribute() const { 59 bool TextInputType::SupportsInputModeAttribute() const {
60 return true; 60 return true;
61 } 61 }
62 62
63 const AtomicString& TextInputType::DefaultAutocapitalize() const { 63 const AtomicString& TextInputType::DefaultAutocapitalize() const {
64 DEFINE_STATIC_LOCAL(const AtomicString, sentences, ("sentences")); 64 DEFINE_STATIC_LOCAL(const AtomicString, sentences, ("sentences"));
65 return sentences; 65 return sentences;
66 } 66 }
67 67
68 } // namespace blink 68 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698