| 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 340 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 351 | 351 |
| 352 case UseCounter::V8TouchEvent_InitTouchEvent_Method: | 352 case UseCounter::V8TouchEvent_InitTouchEvent_Method: |
| 353 return replacedWillBeRemoved("'TouchEvent.initTouchEvent'", "the TouchEv
ent constructor", 54, "5730982598541312"); | 353 return replacedWillBeRemoved("'TouchEvent.initTouchEvent'", "the TouchEv
ent constructor", 54, "5730982598541312"); |
| 354 | 354 |
| 355 case UseCounter::WebAnimationHyphenatedProperty: | 355 case UseCounter::WebAnimationHyphenatedProperty: |
| 356 return "Hyphenated property names in Web Animations keyframes are invali
d and therefore ignored. Please use camelCase instead."; | 356 return "Hyphenated property names in Web Animations keyframes are invali
d and therefore ignored. Please use camelCase instead."; |
| 357 | 357 |
| 358 case UseCounter::HTMLKeygenElement: | 358 case UseCounter::HTMLKeygenElement: |
| 359 return willBeRemoved("The <keygen> element", 54, "5716060992962560"); | 359 return willBeRemoved("The <keygen> element", 54, "5716060992962560"); |
| 360 | 360 |
| 361 case UseCounter::WebAnimationsEasingAsFunctionLinear: | |
| 362 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)); | |
| 363 | |
| 364 case UseCounter::WindowPostMessageWithLegacyTargetOriginArgument: | 361 case UseCounter::WindowPostMessageWithLegacyTargetOriginArgument: |
| 365 return replacedWillBeRemoved("'window.postMessage(message, transferables
, targetOrigin)'", "'window.postMessage(message, targetOrigin, transferables)'",
54, "5719033043222528"); | 362 return replacedWillBeRemoved("'window.postMessage(message, transferables
, targetOrigin)'", "'window.postMessage(message, targetOrigin, transferables)'",
54, "5719033043222528"); |
| 366 | 363 |
| 367 case UseCounter::EncryptedMediaAllSelectedContentTypesMissingCodecs: | 364 case UseCounter::EncryptedMediaAllSelectedContentTypesMissingCodecs: |
| 368 return String::format("EME requires that contentType strings accepted by
requestMediaKeySystemAccess() include codecs. Non-standard support for contentT
ype strings without codecs will be removed in %s. Please specify the desired cod
ec(s) as part of the contentType.", milestoneString(54)); | 365 return String::format("EME requires that contentType strings accepted by
requestMediaKeySystemAccess() include codecs. Non-standard support for contentT
ype strings without codecs will be removed in %s. Please specify the desired cod
ec(s) as part of the contentType.", milestoneString(54)); |
| 369 | 366 |
| 370 case UseCounter::UntrustedEventDefaultHandled: | 367 case UseCounter::UntrustedEventDefaultHandled: |
| 371 return String::format("A DOM event generated from JavaScript has trigger
ed a default action inside the browser. This behavior is non-standard and will b
e removed in %s. See https://www.chromestatus.com/features/5718803933560832 for
more details.", milestoneString(53)); | 368 return String::format("A DOM event generated from JavaScript has trigger
ed a default action inside the browser. This behavior is non-standard and will b
e removed in %s. See https://www.chromestatus.com/features/5718803933560832 for
more details.", milestoneString(53)); |
| 372 | 369 |
| 373 case UseCounter::UnloadHandler_Navigation: | 370 case UseCounter::UnloadHandler_Navigation: |
| (...skipping 20 matching lines...) Expand all Loading... |
| 394 case UseCounter::V8SVGSVGElement_Viewport_AttributeGetter: | 391 case UseCounter::V8SVGSVGElement_Viewport_AttributeGetter: |
| 395 return willBeRemoved("SVGSVGElement.viewport", 55, "5686865248124928"); | 392 return willBeRemoved("SVGSVGElement.viewport", 55, "5686865248124928"); |
| 396 | 393 |
| 397 // Features that aren't deprecated don't have a deprecation message. | 394 // Features that aren't deprecated don't have a deprecation message. |
| 398 default: | 395 default: |
| 399 return String(); | 396 return String(); |
| 400 } | 397 } |
| 401 } | 398 } |
| 402 | 399 |
| 403 } // namespace blink | 400 } // namespace blink |
| OLD | NEW |