| 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 360 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 371 "details."; | 371 "details."; |
| 372 | 372 |
| 373 case UseCounter::EncryptedMediaAllSelectedContentTypesMissingCodecs: | 373 case UseCounter::EncryptedMediaAllSelectedContentTypesMissingCodecs: |
| 374 return String::format( | 374 return String::format( |
| 375 "EME requires that contentType strings accepted by " | 375 "EME requires that contentType strings accepted by " |
| 376 "requestMediaKeySystemAccess() include codecs. Non-standard support " | 376 "requestMediaKeySystemAccess() include codecs. Non-standard support " |
| 377 "for contentType strings without codecs will be removed in %s. " | 377 "for contentType strings without codecs will be removed in %s. " |
| 378 "Please specify the desired codec(s) as part of the contentType.", | 378 "Please specify the desired codec(s) as part of the contentType.", |
| 379 milestoneString(M58)); | 379 milestoneString(M58)); |
| 380 | 380 |
| 381 case UseCounter::EncryptedMediaCapabilityNotProvided: | |
| 382 return String::format( | |
| 383 "EME requires that one of 'audioCapabilities' and " | |
| 384 "'videoCapabilities' must be non-empty. Non-standard support for " | |
| 385 "this will be removed in %s. Please specify at least one valid " | |
| 386 "capability for 'audioCapabilities' or 'videoCapabilities'.", | |
| 387 milestoneString(M58)); | |
| 388 | |
| 389 case UseCounter::VRDeprecatedFieldOfView: | 381 case UseCounter::VRDeprecatedFieldOfView: |
| 390 return replacedBy("VREyeParameters.fieldOfView", | 382 return replacedBy("VREyeParameters.fieldOfView", |
| 391 "projection matrices provided by VRFrameData"); | 383 "projection matrices provided by VRFrameData"); |
| 392 | 384 |
| 393 case UseCounter::VRDeprecatedGetPose: | 385 case UseCounter::VRDeprecatedGetPose: |
| 394 return replacedBy("VRDisplay.getPose()", "VRDisplay.getFrameData()"); | 386 return replacedBy("VRDisplay.getPose()", "VRDisplay.getFrameData()"); |
| 395 | 387 |
| 396 case UseCounter::HTMLEmbedElementLegacyCall: | 388 case UseCounter::HTMLEmbedElementLegacyCall: |
| 397 return willBeRemoved("HTMLEmbedElement legacy caller", M58, | 389 return willBeRemoved("HTMLEmbedElement legacy caller", M58, |
| 398 "5715026367217664"); | 390 "5715026367217664"); |
| (...skipping 26 matching lines...) Expand all Loading... |
| 425 "-internal-media-controls-text-track-list* selectors", M59, | 417 "-internal-media-controls-text-track-list* selectors", M59, |
| 426 "5661431349379072"); | 418 "5661431349379072"); |
| 427 | 419 |
| 428 // Features that aren't deprecated don't have a deprecation message. | 420 // Features that aren't deprecated don't have a deprecation message. |
| 429 default: | 421 default: |
| 430 return String(); | 422 return String(); |
| 431 } | 423 } |
| 432 } | 424 } |
| 433 | 425 |
| 434 } // namespace blink | 426 } // namespace blink |
| OLD | NEW |