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 328 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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::ObjectObserve: | 346 case UseCounter::ObjectObserve: |
347 return willBeRemoved("'Object.observe'", 50, "6147094632988672"); | 347 return willBeRemoved("'Object.observe'", 50, "6147094632988672"); |
348 | 348 |
349 case UseCounter::SVGZoomEvent: | |
350 return willBeRemoved("'SVGZoomEvent'", 52, "5760883808534528"); | |
351 | |
352 case UseCounter::WebAnimationHyphenatedProperty: | 349 case UseCounter::WebAnimationHyphenatedProperty: |
353 return "Hyphenated property names in Web Animations keyframes are invali
d and therefore ignored. Please use camelCase instead."; | 350 return "Hyphenated property names in Web Animations keyframes are invali
d and therefore ignored. Please use camelCase instead."; |
354 | 351 |
355 case UseCounter::HTMLKeygenElement: | 352 case UseCounter::HTMLKeygenElement: |
356 return willBeRemoved("The <keygen> element", 54, "5716060992962560"); | 353 return willBeRemoved("The <keygen> element", 54, "5716060992962560"); |
357 | 354 |
358 case UseCounter::WebAnimationsEasingAsFunctionLinear: | 355 case UseCounter::WebAnimationsEasingAsFunctionLinear: |
359 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)); | 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)); |
360 | 357 |
361 case UseCounter::WindowPostMessageWithLegacyTargetOriginArgument: | 358 case UseCounter::WindowPostMessageWithLegacyTargetOriginArgument: |
(...skipping 26 matching lines...) Expand all Loading... |
388 case UseCounter::MIDIMessageEventReceivedTime: | 385 case UseCounter::MIDIMessageEventReceivedTime: |
389 return willBeRemoved("MIDIMessageEvent.receivedTime", 56, "5665772797952
000"); | 386 return willBeRemoved("MIDIMessageEvent.receivedTime", 56, "5665772797952
000"); |
390 | 387 |
391 // Features that aren't deprecated don't have a deprecation message. | 388 // Features that aren't deprecated don't have a deprecation message. |
392 default: | 389 default: |
393 return String(); | 390 return String(); |
394 } | 391 } |
395 } | 392 } |
396 | 393 |
397 } // namespace blink | 394 } // namespace blink |
OLD | NEW |