OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2012 Google Inc. All rights reserved. | 2 * Copyright (C) 2012 Google Inc. All rights reserved. |
3 * Copyright (C) 2013 Apple Inc. All rights reserved. | 3 * Copyright (C) 2013 Apple Inc. All rights reserved. |
4 * | 4 * |
5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
6 * modification, are permitted provided that the following conditions | 6 * modification, are permitted provided that the following conditions |
7 * are met: | 7 * are met: |
8 * | 8 * |
9 * 1. Redistributions of source code must retain the above copyright | 9 * 1. Redistributions of source code must retain the above copyright |
10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
(...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
184 | 184 |
185 private: | 185 private: |
186 Member<ScriptPromiseResolver> resolver_; | 186 Member<ScriptPromiseResolver> resolver_; |
187 UseCounter::Feature feature_; | 187 UseCounter::Feature feature_; |
188 }; | 188 }; |
189 | 189 |
190 } // namespace | 190 } // namespace |
191 | 191 |
192 static WTF::Optional<DocumentMarker::MarkerType> MarkerTypeFrom( | 192 static WTF::Optional<DocumentMarker::MarkerType> MarkerTypeFrom( |
193 const String& marker_type) { | 193 const String& marker_type) { |
194 if (EqualIgnoringCase(marker_type, "Spelling")) | 194 if (DeprecatedEqualIgnoringCase(marker_type, "Spelling")) |
195 return DocumentMarker::kSpelling; | 195 return DocumentMarker::kSpelling; |
196 if (EqualIgnoringCase(marker_type, "Grammar")) | 196 if (DeprecatedEqualIgnoringCase(marker_type, "Grammar")) |
197 return DocumentMarker::kGrammar; | 197 return DocumentMarker::kGrammar; |
198 if (EqualIgnoringCase(marker_type, "TextMatch")) | 198 if (DeprecatedEqualIgnoringCase(marker_type, "TextMatch")) |
199 return DocumentMarker::kTextMatch; | 199 return DocumentMarker::kTextMatch; |
200 return WTF::kNullopt; | 200 return WTF::kNullopt; |
201 } | 201 } |
202 | 202 |
203 static WTF::Optional<DocumentMarker::MarkerTypes> MarkerTypesFrom( | 203 static WTF::Optional<DocumentMarker::MarkerTypes> MarkerTypesFrom( |
204 const String& marker_type) { | 204 const String& marker_type) { |
205 if (marker_type.IsEmpty() || EqualIgnoringCase(marker_type, "all")) | 205 if (marker_type.IsEmpty() || DeprecatedEqualIgnoringCase(marker_type, "all")) |
206 return DocumentMarker::AllMarkers(); | 206 return DocumentMarker::AllMarkers(); |
207 WTF::Optional<DocumentMarker::MarkerType> type = MarkerTypeFrom(marker_type); | 207 WTF::Optional<DocumentMarker::MarkerType> type = MarkerTypeFrom(marker_type); |
208 if (!type) | 208 if (!type) |
209 return WTF::kNullopt; | 209 return WTF::kNullopt; |
210 return DocumentMarker::MarkerTypes(type.value()); | 210 return DocumentMarker::MarkerTypes(type.value()); |
211 } | 211 } |
212 | 212 |
213 static SpellCheckRequester* GetSpellCheckRequester(Document* document) { | 213 static SpellCheckRequester* GetSpellCheckRequester(Document* document) { |
214 if (!document || !document->GetFrame()) | 214 if (!document || !document->GetFrame()) |
215 return 0; | 215 return 0; |
(...skipping 3059 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3275 | 3275 |
3276 void Internals::crash() { | 3276 void Internals::crash() { |
3277 CHECK(false) << "Intentional crash"; | 3277 CHECK(false) << "Intentional crash"; |
3278 } | 3278 } |
3279 | 3279 |
3280 void Internals::setIsLowEndDevice(bool is_low_end_device) { | 3280 void Internals::setIsLowEndDevice(bool is_low_end_device) { |
3281 MemoryCoordinator::SetIsLowEndDeviceForTesting(is_low_end_device); | 3281 MemoryCoordinator::SetIsLowEndDeviceForTesting(is_low_end_device); |
3282 } | 3282 } |
3283 | 3283 |
3284 } // namespace blink | 3284 } // namespace blink |
OLD | NEW |