| 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 373 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 384 "'Performance.clearResourceTimings'"); | 384 "'Performance.clearResourceTimings'"); |
| 385 | 385 |
| 386 case UseCounter::PrefixedPerformanceSetResourceTimingBufferSize: | 386 case UseCounter::PrefixedPerformanceSetResourceTimingBufferSize: |
| 387 return replacedBy("'Performance.webkitSetResourceTimingBufferSize'", | 387 return replacedBy("'Performance.webkitSetResourceTimingBufferSize'", |
| 388 "'Performance.setResourceTimingBufferSize'"); | 388 "'Performance.setResourceTimingBufferSize'"); |
| 389 | 389 |
| 390 case UseCounter::PrefixedPerformanceResourceTimingBufferFull: | 390 case UseCounter::PrefixedPerformanceResourceTimingBufferFull: |
| 391 return replacedBy("'Performance.onwebkitresourcetimingbufferfull'", | 391 return replacedBy("'Performance.onwebkitresourcetimingbufferfull'", |
| 392 "'Performance.onresourcetimingbufferfull'"); | 392 "'Performance.onresourcetimingbufferfull'"); |
| 393 | 393 |
| 394 case UseCounter::MediaStreamTrackGetSources: | |
| 395 return willBeRemoved("MediaStreamTrack.getSources", M56, | |
| 396 "4765305641369600"); | |
| 397 | |
| 398 case UseCounter::WebAnimationHyphenatedProperty: | 394 case UseCounter::WebAnimationHyphenatedProperty: |
| 399 return "Hyphenated property names in Web Animations keyframes are " | 395 return "Hyphenated property names in Web Animations keyframes are " |
| 400 "invalid and therefore ignored. Please use camelCase instead."; | 396 "invalid and therefore ignored. Please use camelCase instead."; |
| 401 | 397 |
| 402 case UseCounter::HTMLKeygenElement: | 398 case UseCounter::HTMLKeygenElement: |
| 403 return willBeRemoved("The <keygen> element", M56, "5716060992962560"); | 399 return willBeRemoved("The <keygen> element", M56, "5716060992962560"); |
| 404 | 400 |
| 405 case UseCounter::EncryptedMediaAllSelectedContentTypesMissingCodecs: | 401 case UseCounter::EncryptedMediaAllSelectedContentTypesMissingCodecs: |
| 406 return String::format( | 402 return String::format( |
| 407 "EME requires that contentType strings accepted by " | 403 "EME requires that contentType strings accepted by " |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 456 case UseCounter::VRDeprecatedGetPose: | 452 case UseCounter::VRDeprecatedGetPose: |
| 457 return replacedBy("VRDisplay.getPose()", "VRDisplay.getFrameData()"); | 453 return replacedBy("VRDisplay.getPose()", "VRDisplay.getFrameData()"); |
| 458 | 454 |
| 459 // Features that aren't deprecated don't have a deprecation message. | 455 // Features that aren't deprecated don't have a deprecation message. |
| 460 default: | 456 default: |
| 461 return String(); | 457 return String(); |
| 462 } | 458 } |
| 463 } | 459 } |
| 464 | 460 |
| 465 } // namespace blink | 461 } // namespace blink |
| OLD | NEW |