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 345 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
356 case UseCounter::WebAnimationsEasingAsFunctionLinear: | 356 case UseCounter::WebAnimationsEasingAsFunctionLinear: |
357 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 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)); |
358 | 358 |
359 case UseCounter::WindowPostMessageWithLegacyTargetOriginArgument: | 359 case UseCounter::WindowPostMessageWithLegacyTargetOriginArgument: |
360 return replacedWillBeRemoved("'window.postMessage(message, transferables
, targetOrigin)'", "'window.postMessage(message, targetOrigin, transferables)'",
54, "5719033043222528"); | 360 return replacedWillBeRemoved("'window.postMessage(message, transferables
, targetOrigin)'", "'window.postMessage(message, targetOrigin, transferables)'",
54, "5719033043222528"); |
361 | 361 |
362 case UseCounter::EncryptedMediaAllSelectedContentTypesMissingCodecs: | 362 case UseCounter::EncryptedMediaAllSelectedContentTypesMissingCodecs: |
363 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)); | 363 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)); |
364 | 364 |
365 case UseCounter::V8KeyboardEvent_KeyIdentifier_AttributeGetter: | 365 case UseCounter::V8KeyboardEvent_KeyIdentifier_AttributeGetter: |
366 return willBeRemoved("'KeyboardEvent.keyIdentifier'", 53, "5316065118650
368"); | 366 return willBeRemoved("'KeyboardEvent.keyIdentifier'", 54, "5316065118650
368"); |
367 | 367 |
368 case UseCounter::During_Microtask_SyncXHR: | 368 case UseCounter::During_Microtask_SyncXHR: |
369 return willBeRemoved("Invoking 'send()' on a sync XHR during microtask e
xecution", 54, "5647113010544640"); | 369 return willBeRemoved("Invoking 'send()' on a sync XHR during microtask e
xecution", 54, "5647113010544640"); |
370 | 370 |
371 case UseCounter::MediaStreamOnEnded: | 371 case UseCounter::MediaStreamOnEnded: |
372 return willBeRemoved("The MediaStream 'ended' event", 54, "5730404371791
872"); | 372 return willBeRemoved("The MediaStream 'ended' event", 54, "5730404371791
872"); |
373 | 373 |
374 case UseCounter::UntrustedEventDefaultHandled: | 374 case UseCounter::UntrustedEventDefaultHandled: |
375 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)); | 375 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)); |
376 | 376 |
377 case UseCounter::UnloadHandler_Navigation: | 377 case UseCounter::UnloadHandler_Navigation: |
378 return "Navigating in the unload handler is deprecated and will be remov
ed."; | 378 return "Navigating in the unload handler is deprecated and will be remov
ed."; |
379 | 379 |
380 case UseCounter::TouchStartUserGestureUtilized: | 380 case UseCounter::TouchStartUserGestureUtilized: |
381 return willBeRemoved("Performing operations that require explicit user i
nteraction on touchstart events", 54, "5649871251963904"); | 381 return willBeRemoved("Performing operations that require explicit user i
nteraction on touchstart events", 54, "5649871251963904"); |
382 | 382 |
383 case UseCounter::TouchMoveUserGestureUtilized: | 383 case UseCounter::TouchMoveUserGestureUtilized: |
384 return willBeRemoved("Performing operations that require explicit user i
nteraction on touchmove events", 54, "5649871251963904"); | 384 return willBeRemoved("Performing operations that require explicit user i
nteraction on touchmove events", 54, "5649871251963904"); |
385 | 385 |
386 case UseCounter::TouchEndDuringScrollUserGestureUtilized: | 386 case UseCounter::TouchEndDuringScrollUserGestureUtilized: |
387 return willBeRemoved("Performing operations that require explicit user i
nteraction on touchend events that occur as part of a scroll", 54, "564987125196
3904"); | 387 return willBeRemoved("Performing operations that require explicit user i
nteraction on touchend events that occur as part of a scroll", 54, "564987125196
3904"); |
388 | 388 |
389 // Features that aren't deprecated don't have a deprecation message. | 389 // Features that aren't deprecated don't have a deprecation message. |
390 default: | 390 default: |
391 return String(); | 391 return String(); |
392 } | 392 } |
393 } | 393 } |
394 | 394 |
395 } // namespace blink | 395 } // namespace blink |
OLD | NEW |