OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "core/frame/Deprecation.h" | 5 #include "core/frame/Deprecation.h" |
6 | 6 |
7 #include "core/dom/Document.h" | 7 #include "core/dom/Document.h" |
8 #include "core/dom/ExecutionContext.h" | 8 #include "core/dom/ExecutionContext.h" |
9 #include "core/frame/FrameConsole.h" | 9 #include "core/frame/FrameConsole.h" |
10 #include "core/frame/FrameHost.h" | 10 #include "core/frame/FrameHost.h" |
(...skipping 405 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
416 | 416 |
417 case UseCounter::PrefixedPerformanceSetResourceTimingBufferSize: | 417 case UseCounter::PrefixedPerformanceSetResourceTimingBufferSize: |
418 return replacedBy("'Performance.webkitSetResourceTimingBufferSize'", | 418 return replacedBy("'Performance.webkitSetResourceTimingBufferSize'", |
419 "'Performance.setResourceTimingBufferSize'"); | 419 "'Performance.setResourceTimingBufferSize'"); |
420 | 420 |
421 case UseCounter::PrefixedPerformanceResourceTimingBufferFull: | 421 case UseCounter::PrefixedPerformanceResourceTimingBufferFull: |
422 return replacedBy("'Performance.onwebkitresourcetimingbufferfull'", | 422 return replacedBy("'Performance.onwebkitresourcetimingbufferfull'", |
423 "'Performance.onresourcetimingbufferfull'"); | 423 "'Performance.onresourcetimingbufferfull'"); |
424 | 424 |
425 case UseCounter::MediaStreamTrackGetSources: | 425 case UseCounter::MediaStreamTrackGetSources: |
426 return "MediaStreamTrack.getSources is deprecated. See " | 426 return willBeRemoved("MediaStreamTrack.getSources", M56, |
427 "https://www.chromestatus.com/feature/4765305641369600 for more " | 427 "4765305641369600"); |
428 "details."; | |
429 | 428 |
430 case UseCounter::WebAnimationHyphenatedProperty: | 429 case UseCounter::WebAnimationHyphenatedProperty: |
431 return "Hyphenated property names in Web Animations keyframes are " | 430 return "Hyphenated property names in Web Animations keyframes are " |
432 "invalid and therefore ignored. Please use camelCase instead."; | 431 "invalid and therefore ignored. Please use camelCase instead."; |
433 | 432 |
434 case UseCounter::HTMLKeygenElement: | 433 case UseCounter::HTMLKeygenElement: |
435 return willBeRemoved("The <keygen> element", M56, "5716060992962560"); | 434 return willBeRemoved("The <keygen> element", M56, "5716060992962560"); |
436 | 435 |
437 case UseCounter::EncryptedMediaAllSelectedContentTypesMissingCodecs: | 436 case UseCounter::EncryptedMediaAllSelectedContentTypesMissingCodecs: |
438 return String::format( | 437 return String::format( |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
486 case UseCounter::PaymentAddressCareOf: | 485 case UseCounter::PaymentAddressCareOf: |
487 return willBeRemoved("PaymentAddress.careOf", M56, "5728579069411328"); | 486 return willBeRemoved("PaymentAddress.careOf", M56, "5728579069411328"); |
488 | 487 |
489 // Features that aren't deprecated don't have a deprecation message. | 488 // Features that aren't deprecated don't have a deprecation message. |
490 default: | 489 default: |
491 return String(); | 490 return String(); |
492 } | 491 } |
493 } | 492 } |
494 | 493 |
495 } // namespace blink | 494 } // namespace blink |
OLD | NEW |