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 346 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
357 | 357 |
358 case UseCounter::WebAnimationsEasingAsFunctionLinear: | 358 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)); | 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)); |
360 | 360 |
361 case UseCounter::WindowPostMessageWithLegacyTargetOriginArgument: | 361 case UseCounter::WindowPostMessageWithLegacyTargetOriginArgument: |
362 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"); |
363 | 363 |
364 case UseCounter::EncryptedMediaAllSelectedContentTypesMissingCodecs: | 364 case UseCounter::EncryptedMediaAllSelectedContentTypesMissingCodecs: |
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)); | 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)); |
366 | 366 |
367 case UseCounter::V8KeyboardEvent_KeyIdentifier_AttributeGetter: | |
368 return willBeRemoved("'KeyboardEvent.keyIdentifier'", 54, "5316065118650
368"); | |
369 | |
370 case UseCounter::During_Microtask_SyncXHR: | 367 case UseCounter::During_Microtask_SyncXHR: |
371 return willBeRemoved("Invoking 'send()' on a sync XHR during microtask e
xecution", 54, "5647113010544640"); | 368 return willBeRemoved("Invoking 'send()' on a sync XHR during microtask e
xecution", 54, "5647113010544640"); |
372 | 369 |
373 case UseCounter::MediaStreamOnEnded: | 370 case UseCounter::MediaStreamOnEnded: |
374 return willBeRemoved("The MediaStream 'ended' event", 54, "5730404371791
872"); | 371 return willBeRemoved("The MediaStream 'ended' event", 54, "5730404371791
872"); |
375 | 372 |
376 case UseCounter::UntrustedEventDefaultHandled: | 373 case UseCounter::UntrustedEventDefaultHandled: |
377 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)); | 374 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)); |
378 | 375 |
379 case UseCounter::UnloadHandler_Navigation: | 376 case UseCounter::UnloadHandler_Navigation: |
(...skipping 11 matching lines...) Expand all Loading... |
391 case UseCounter::MIDIMessageEventReceivedTime: | 388 case UseCounter::MIDIMessageEventReceivedTime: |
392 return willBeRemoved("MIDIMessageEvent.receivedTime", 56, "5665772797952
000"); | 389 return willBeRemoved("MIDIMessageEvent.receivedTime", 56, "5665772797952
000"); |
393 | 390 |
394 // Features that aren't deprecated don't have a deprecation message. | 391 // Features that aren't deprecated don't have a deprecation message. |
395 default: | 392 default: |
396 return String(); | 393 return String(); |
397 } | 394 } |
398 } | 395 } |
399 | 396 |
400 } // namespace blink | 397 } // namespace blink |
OLD | NEW |