| 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 334 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 345 case UseCounter::WebAnimationHyphenatedProperty: | 345 case UseCounter::WebAnimationHyphenatedProperty: |
| 346 return "Hyphenated property names in Web Animations keyframes are invali
d and therefore ignored. Please use camelCase instead."; | 346 return "Hyphenated property names in Web Animations keyframes are invali
d and therefore ignored. Please use camelCase instead."; |
| 347 | 347 |
| 348 case UseCounter::HTMLKeygenElement: | 348 case UseCounter::HTMLKeygenElement: |
| 349 return willBeRemoved("The <keygen> element", 56, "5716060992962560"); | 349 return willBeRemoved("The <keygen> element", 56, "5716060992962560"); |
| 350 | 350 |
| 351 case UseCounter::WindowPostMessageWithLegacyTargetOriginArgument: | 351 case UseCounter::WindowPostMessageWithLegacyTargetOriginArgument: |
| 352 return replacedWillBeRemoved("'window.postMessage(message, transferables
, targetOrigin)'", "'window.postMessage(message, targetOrigin, transferables)'",
54, "5719033043222528"); | 352 return replacedWillBeRemoved("'window.postMessage(message, transferables
, targetOrigin)'", "'window.postMessage(message, targetOrigin, transferables)'",
54, "5719033043222528"); |
| 353 | 353 |
| 354 case UseCounter::EncryptedMediaAllSelectedContentTypesMissingCodecs: | 354 case UseCounter::EncryptedMediaAllSelectedContentTypesMissingCodecs: |
| 355 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)); | 355 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(56)); |
| 356 | 356 |
| 357 case UseCounter::UntrustedEventDefaultHandled: | 357 case UseCounter::UntrustedEventDefaultHandled: |
| 358 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)); | 358 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)); |
| 359 | 359 |
| 360 case UseCounter::TouchStartUserGestureUtilized: | 360 case UseCounter::TouchStartUserGestureUtilized: |
| 361 return willBeRemoved("Performing operations that require explicit user i
nteraction on touchstart events", 55, "5649871251963904"); | 361 return willBeRemoved("Performing operations that require explicit user i
nteraction on touchstart events", 55, "5649871251963904"); |
| 362 | 362 |
| 363 case UseCounter::TouchMoveUserGestureUtilized: | 363 case UseCounter::TouchMoveUserGestureUtilized: |
| 364 return willBeRemoved("Performing operations that require explicit user i
nteraction on touchmove events", 55, "5649871251963904"); | 364 return willBeRemoved("Performing operations that require explicit user i
nteraction on touchmove events", 55, "5649871251963904"); |
| 365 | 365 |
| (...skipping 15 matching lines...) Expand all Loading... |
| 381 case UseCounter::NavigatorPointerEnabled: | 381 case UseCounter::NavigatorPointerEnabled: |
| 382 return "Navigator.pointerEnabled is a non-standard API added for experim
ents only. It will be removed in near future."; | 382 return "Navigator.pointerEnabled is a non-standard API added for experim
ents only. It will be removed in near future."; |
| 383 | 383 |
| 384 // Features that aren't deprecated don't have a deprecation message. | 384 // Features that aren't deprecated don't have a deprecation message. |
| 385 default: | 385 default: |
| 386 return String(); | 386 return String(); |
| 387 } | 387 } |
| 388 } | 388 } |
| 389 | 389 |
| 390 } // namespace blink | 390 } // namespace blink |
| OLD | NEW |