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 372 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
383 return willBeRemoved("The <keygen> element", M57, "5716060992962560"); | 383 return willBeRemoved("The <keygen> element", M57, "5716060992962560"); |
384 | 384 |
385 case UseCounter::EncryptedMediaAllSelectedContentTypesMissingCodecs: | 385 case UseCounter::EncryptedMediaAllSelectedContentTypesMissingCodecs: |
386 return String::format( | 386 return String::format( |
387 "EME requires that contentType strings accepted by " | 387 "EME requires that contentType strings accepted by " |
388 "requestMediaKeySystemAccess() include codecs. Non-standard support " | 388 "requestMediaKeySystemAccess() include codecs. Non-standard support " |
389 "for contentType strings without codecs will be removed in %s. " | 389 "for contentType strings without codecs will be removed in %s. " |
390 "Please specify the desired codec(s) as part of the contentType.", | 390 "Please specify the desired codec(s) as part of the contentType.", |
391 milestoneString(M58)); | 391 milestoneString(M58)); |
392 | 392 |
| 393 case UseCounter::EncryptedMediaCapabilityNotProvided: |
| 394 return String::format( |
| 395 "EME requires that one of 'audioCapabilities' and " |
| 396 "'videoCapabilities' must be non-empty. Non-standard support for " |
| 397 "this will be removed in %s. Please specify at least one valid " |
| 398 "capability for 'audioCapabilities' or 'videoCapabilities'.", |
| 399 milestoneString(M58)); |
| 400 |
393 case UseCounter::VRDeprecatedFieldOfView: | 401 case UseCounter::VRDeprecatedFieldOfView: |
394 return replacedBy("VREyeParameters.fieldOfView", | 402 return replacedBy("VREyeParameters.fieldOfView", |
395 "projection matrices provided by VRFrameData"); | 403 "projection matrices provided by VRFrameData"); |
396 | 404 |
397 case UseCounter::VRDeprecatedGetPose: | 405 case UseCounter::VRDeprecatedGetPose: |
398 return replacedBy("VRDisplay.getPose()", "VRDisplay.getFrameData()"); | 406 return replacedBy("VRDisplay.getPose()", "VRDisplay.getFrameData()"); |
399 | 407 |
400 case UseCounter::HTMLEmbedElementLegacyCall: | 408 case UseCounter::HTMLEmbedElementLegacyCall: |
401 return willBeRemoved("HTMLEmbedElement legacy caller", M58, | 409 return willBeRemoved("HTMLEmbedElement legacy caller", M58, |
402 "5715026367217664"); | 410 "5715026367217664"); |
403 | 411 |
404 case UseCounter::HTMLObjectElementLegacyCall: | 412 case UseCounter::HTMLObjectElementLegacyCall: |
405 return willBeRemoved("HTMLObjectElement legacy caller", M58, | 413 return willBeRemoved("HTMLObjectElement legacy caller", M58, |
406 "5715026367217664"); | 414 "5715026367217664"); |
407 case UseCounter:: | 415 case UseCounter:: |
408 ServiceWorkerRespondToNavigationRequestWithRedirectedResponse: | 416 ServiceWorkerRespondToNavigationRequestWithRedirectedResponse: |
409 return String::format( | 417 return String::format( |
410 "The service worker responded to the navigation request with a " | 418 "The service worker responded to the navigation request with a " |
411 "redirected response. This will result in an error in %s.", | 419 "redirected response. This will result in an error in %s.", |
412 milestoneString(M59)); | 420 milestoneString(M59)); |
413 | 421 |
414 // Features that aren't deprecated don't have a deprecation message. | 422 // Features that aren't deprecated don't have a deprecation message. |
415 default: | 423 default: |
416 return String(); | 424 return String(); |
417 } | 425 } |
418 } | 426 } |
419 | 427 |
420 } // namespace blink | 428 } // namespace blink |
OLD | NEW |