| 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 323 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 334 case UseCounter::PrefixedPerformanceSetResourceTimingBufferSize: | 334 case UseCounter::PrefixedPerformanceSetResourceTimingBufferSize: |
| 335 return replacedBy("'Performance.webkitSetResourceTimingBufferSize'", "'P
erformance.setResourceTimingBufferSize'"); | 335 return replacedBy("'Performance.webkitSetResourceTimingBufferSize'", "'P
erformance.setResourceTimingBufferSize'"); |
| 336 | 336 |
| 337 case UseCounter::PrefixedPerformanceResourceTimingBufferFull: | 337 case UseCounter::PrefixedPerformanceResourceTimingBufferFull: |
| 338 return replacedBy("'Performance.onwebkitresourcetimingbufferfull'", "'Pe
rformance.onresourcetimingbufferfull'"); | 338 return replacedBy("'Performance.onwebkitresourcetimingbufferfull'", "'Pe
rformance.onresourcetimingbufferfull'"); |
| 339 | 339 |
| 340 case UseCounter::MediaStreamTrackGetSources: | 340 case UseCounter::MediaStreamTrackGetSources: |
| 341 return "MediaStreamTrack.getSources is deprecated. See https://www.chrom
estatus.com/feature/4765305641369600 for more details."; | 341 return "MediaStreamTrack.getSources is deprecated. See https://www.chrom
estatus.com/feature/4765305641369600 for more details."; |
| 342 | 342 |
| 343 case UseCounter::V8TouchEvent_InitTouchEvent_Method: | 343 case UseCounter::V8TouchEvent_InitTouchEvent_Method: |
| 344 return replacedWillBeRemoved("'TouchEvent.initTouchEvent'", "the TouchEv
ent constructor", 53, "5730982598541312"); | 344 return replacedWillBeRemoved("'TouchEvent.initTouchEvent'", "the TouchEv
ent constructor", 54, "5730982598541312"); |
| 345 | 345 |
| 346 case UseCounter::WebAnimationHyphenatedProperty: | 346 case UseCounter::WebAnimationHyphenatedProperty: |
| 347 return "Hyphenated property names in Web Animations keyframes are invali
d and therefore ignored. Please use camelCase instead."; | 347 return "Hyphenated property names in Web Animations keyframes are invali
d and therefore ignored. Please use camelCase instead."; |
| 348 | 348 |
| 349 case UseCounter::HTMLKeygenElement: | 349 case UseCounter::HTMLKeygenElement: |
| 350 return willBeRemoved("The <keygen> element", 54, "5716060992962560"); | 350 return willBeRemoved("The <keygen> element", 54, "5716060992962560"); |
| 351 | 351 |
| 352 case UseCounter::WebAnimationsEasingAsFunctionLinear: | 352 case UseCounter::WebAnimationsEasingAsFunctionLinear: |
| 353 return String::format("Specifying animation easing as a function is depr
ecated and all support will be removed in %s, at which point this will throw a T
ypeError. This warning may have been triggered by the Web Animations or Polymer
polyfills. See http://crbug.com/601672 for details.", milestoneString(54)); | 353 return String::format("Specifying animation easing as a function is depr
ecated and all support will be removed in %s, at which point this will throw a T
ypeError. This warning may have been triggered by the Web Animations or Polymer
polyfills. See http://crbug.com/601672 for details.", milestoneString(54)); |
| 354 | 354 |
| (...skipping 24 matching lines...) Expand all Loading... |
| 379 case UseCounter::MIDIMessageEventReceivedTime: | 379 case UseCounter::MIDIMessageEventReceivedTime: |
| 380 return willBeRemoved("MIDIMessageEvent.receivedTime", 56, "5665772797952
000"); | 380 return willBeRemoved("MIDIMessageEvent.receivedTime", 56, "5665772797952
000"); |
| 381 | 381 |
| 382 // Features that aren't deprecated don't have a deprecation message. | 382 // Features that aren't deprecated don't have a deprecation message. |
| 383 default: | 383 default: |
| 384 return String(); | 384 return String(); |
| 385 } | 385 } |
| 386 } | 386 } |
| 387 | 387 |
| 388 } // namespace blink | 388 } // namespace blink |
| OLD | NEW |