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 325 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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", 53, "5730982598541312"); |
345 | 345 |
346 case UseCounter::SVGZoomEvent: | |
347 return willBeRemoved("'SVGZoomEvent'", 52, "5760883808534528"); | |
348 | |
349 case UseCounter::WebAnimationHyphenatedProperty: | 346 case UseCounter::WebAnimationHyphenatedProperty: |
350 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."; |
351 | 348 |
352 case UseCounter::HTMLKeygenElement: | 349 case UseCounter::HTMLKeygenElement: |
353 return willBeRemoved("The <keygen> element", 54, "5716060992962560"); | 350 return willBeRemoved("The <keygen> element", 54, "5716060992962560"); |
354 | 351 |
355 case UseCounter::WebAnimationsEasingAsFunctionLinear: | 352 case UseCounter::WebAnimationsEasingAsFunctionLinear: |
356 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)); |
357 | 354 |
358 case UseCounter::WindowPostMessageWithLegacyTargetOriginArgument: | 355 case UseCounter::WindowPostMessageWithLegacyTargetOriginArgument: |
(...skipping 26 matching lines...) Expand all Loading... |
385 case UseCounter::MIDIMessageEventReceivedTime: | 382 case UseCounter::MIDIMessageEventReceivedTime: |
386 return willBeRemoved("MIDIMessageEvent.receivedTime", 56, "5665772797952
000"); | 383 return willBeRemoved("MIDIMessageEvent.receivedTime", 56, "5665772797952
000"); |
387 | 384 |
388 // Features that aren't deprecated don't have a deprecation message. | 385 // Features that aren't deprecated don't have a deprecation message. |
389 default: | 386 default: |
390 return String(); | 387 return String(); |
391 } | 388 } |
392 } | 389 } |
393 | 390 |
394 } // namespace blink | 391 } // namespace blink |
OLD | NEW |