| 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 327 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 338 | 338 |
| 339 case UseCounter::PrefixedPerformanceSetResourceTimingBufferSize: | 339 case UseCounter::PrefixedPerformanceSetResourceTimingBufferSize: |
| 340 return replacedBy("'Performance.webkitSetResourceTimingBufferSize'", "'P
erformance.setResourceTimingBufferSize'"); | 340 return replacedBy("'Performance.webkitSetResourceTimingBufferSize'", "'P
erformance.setResourceTimingBufferSize'"); |
| 341 | 341 |
| 342 case UseCounter::PrefixedPerformanceResourceTimingBufferFull: | 342 case UseCounter::PrefixedPerformanceResourceTimingBufferFull: |
| 343 return replacedBy("'Performance.onwebkitresourcetimingbufferfull'", "'Pe
rformance.onresourcetimingbufferfull'"); | 343 return replacedBy("'Performance.onwebkitresourcetimingbufferfull'", "'Pe
rformance.onresourcetimingbufferfull'"); |
| 344 | 344 |
| 345 case UseCounter::MediaStreamTrackGetSources: | 345 case UseCounter::MediaStreamTrackGetSources: |
| 346 return "MediaStreamTrack.getSources is deprecated. See https://www.chrom
estatus.com/feature/4765305641369600 for more details."; | 346 return "MediaStreamTrack.getSources is deprecated. See https://www.chrom
estatus.com/feature/4765305641369600 for more details."; |
| 347 | 347 |
| 348 case UseCounter::V8TouchEvent_InitTouchEvent_Method: | |
| 349 return replacedWillBeRemoved("'TouchEvent.initTouchEvent'", "the TouchEv
ent constructor", 54, "5730982598541312"); | |
| 350 | |
| 351 case UseCounter::WebAnimationHyphenatedProperty: | 348 case UseCounter::WebAnimationHyphenatedProperty: |
| 352 return "Hyphenated property names in Web Animations keyframes are invali
d and therefore ignored. Please use camelCase instead."; | 349 return "Hyphenated property names in Web Animations keyframes are invali
d and therefore ignored. Please use camelCase instead."; |
| 353 | 350 |
| 354 case UseCounter::HTMLKeygenElement: | 351 case UseCounter::HTMLKeygenElement: |
| 355 return willBeRemoved("The <keygen> element", 54, "5716060992962560"); | 352 return willBeRemoved("The <keygen> element", 54, "5716060992962560"); |
| 356 | 353 |
| 357 case UseCounter::WindowPostMessageWithLegacyTargetOriginArgument: | 354 case UseCounter::WindowPostMessageWithLegacyTargetOriginArgument: |
| 358 return replacedWillBeRemoved("'window.postMessage(message, transferables
, targetOrigin)'", "'window.postMessage(message, targetOrigin, transferables)'",
54, "5719033043222528"); | 355 return replacedWillBeRemoved("'window.postMessage(message, transferables
, targetOrigin)'", "'window.postMessage(message, targetOrigin, transferables)'",
54, "5719033043222528"); |
| 359 | 356 |
| 360 case UseCounter::EncryptedMediaAllSelectedContentTypesMissingCodecs: | 357 case UseCounter::EncryptedMediaAllSelectedContentTypesMissingCodecs: |
| (...skipping 26 matching lines...) Expand all Loading... |
| 387 case UseCounter::V8SVGSVGElement_Viewport_AttributeGetter: | 384 case UseCounter::V8SVGSVGElement_Viewport_AttributeGetter: |
| 388 return willBeRemoved("SVGSVGElement.viewport", 55, "5686865248124928"); | 385 return willBeRemoved("SVGSVGElement.viewport", 55, "5686865248124928"); |
| 389 | 386 |
| 390 // Features that aren't deprecated don't have a deprecation message. | 387 // Features that aren't deprecated don't have a deprecation message. |
| 391 default: | 388 default: |
| 392 return String(); | 389 return String(); |
| 393 } | 390 } |
| 394 } | 391 } |
| 395 | 392 |
| 396 } // namespace blink | 393 } // namespace blink |
| OLD | NEW |