| 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::WebAnimationHyphenatedProperty: | 352 case UseCounter::WebAnimationHyphenatedProperty: |
| 353 return "Hyphenated property names in Web Animations keyframes are invali
d and therefore ignored. Please use camelCase instead."; | 353 return "Hyphenated property names in Web Animations keyframes are invali
d and therefore ignored. Please use camelCase instead."; |
| 354 | 354 |
| 355 case UseCounter::HTMLKeygenElement: | 355 case UseCounter::HTMLKeygenElement: |
| 356 return willBeRemoved("The <keygen> element", 54, "5716060992962560"); | 356 return willBeRemoved("The <keygen> element", 54, "5716060992962560"); |
| 357 | 357 |
| 358 case UseCounter::ResultsAttribute: | 358 case UseCounter::ResultsAttribute: |
| 359 return willBeRemoved("'results' attribute", 53, "5738199536107520"); | 359 return willBeRemoved("'results' attribute", 53, "5738199536107520"); |
| 360 | 360 |
| 361 case UseCounter::TouchDragUserGestureUsedCrossOrigin: | |
| 362 return willBeRemoved("Performing sensitive operations in iframes on touc
h events which don't represent a tap gesture", 52, "5649871251963904"); | |
| 363 | |
| 364 case UseCounter::WebAnimationsEasingAsFunctionLinear: | 361 case UseCounter::WebAnimationsEasingAsFunctionLinear: |
| 365 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)); | 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)); |
| 366 | 363 |
| 367 case UseCounter::WindowPostMessageWithLegacyTargetOriginArgument: | 364 case UseCounter::WindowPostMessageWithLegacyTargetOriginArgument: |
| 368 return replacedWillBeRemoved("'window.postMessage(message, transferables
, targetOrigin)'", "'window.postMessage(message, targetOrigin, transferables)'",
54, "5719033043222528"); | 365 return replacedWillBeRemoved("'window.postMessage(message, transferables
, targetOrigin)'", "'window.postMessage(message, targetOrigin, transferables)'",
54, "5719033043222528"); |
| 369 | 366 |
| 370 case UseCounter::EncryptedMediaAllSelectedContentTypesMissingCodecs: | 367 case UseCounter::EncryptedMediaAllSelectedContentTypesMissingCodecs: |
| 371 return "contentType strings without codecs will not be supported by requ
estMediaKeySystemAccess() in the future. Please specify the desired codec(s) as
part of the contentType."; | 368 return "contentType strings without codecs will not be supported by requ
estMediaKeySystemAccess() in the future. Please specify the desired codec(s) as
part of the contentType."; |
| 372 | 369 |
| 373 case UseCounter::V8KeyboardEvent_KeyIdentifier_AttributeGetter: | 370 case UseCounter::V8KeyboardEvent_KeyIdentifier_AttributeGetter: |
| (...skipping 23 matching lines...) Expand all Loading... |
| 397 case UseCounter::MediaStreamOnEnded: | 394 case UseCounter::MediaStreamOnEnded: |
| 398 return replacedWillBeRemoved("The MediaStream 'ended' event", "the Media
Stream 'inactive' event", 53, "5730404371791872"); | 395 return replacedWillBeRemoved("The MediaStream 'ended' event", "the Media
Stream 'inactive' event", 53, "5730404371791872"); |
| 399 | 396 |
| 400 // Features that aren't deprecated don't have a deprecation message. | 397 // Features that aren't deprecated don't have a deprecation message. |
| 401 default: | 398 default: |
| 402 return String(); | 399 return String(); |
| 403 } | 400 } |
| 404 } | 401 } |
| 405 | 402 |
| 406 } // namespace blink | 403 } // namespace blink |
| OLD | NEW |