| 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 339 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 350 case UseCounter::CSSDeepCombinator: | 350 case UseCounter::CSSDeepCombinator: |
| 351 return "/deep/ combinator is deprecated. See " | 351 return "/deep/ combinator is deprecated. See " |
| 352 "https://www.chromestatus.com/features/6750456638341120 for more " | 352 "https://www.chromestatus.com/features/6750456638341120 for more " |
| 353 "details."; | 353 "details."; |
| 354 | 354 |
| 355 case UseCounter::CSSSelectorPseudoShadow: | 355 case UseCounter::CSSSelectorPseudoShadow: |
| 356 return "::shadow pseudo-element is deprecated. See " | 356 return "::shadow pseudo-element is deprecated. See " |
| 357 "https://www.chromestatus.com/features/6750456638341120 for more " | 357 "https://www.chromestatus.com/features/6750456638341120 for more " |
| 358 "details."; | 358 "details."; |
| 359 | 359 |
| 360 case UseCounter::PrefixedPerformanceClearResourceTimings: | |
| 361 return replacedBy("'Performance.webkitClearResourceTimings'", | |
| 362 "'Performance.clearResourceTimings'"); | |
| 363 | |
| 364 case UseCounter::PrefixedPerformanceSetResourceTimingBufferSize: | |
| 365 return replacedBy("'Performance.webkitSetResourceTimingBufferSize'", | |
| 366 "'Performance.setResourceTimingBufferSize'"); | |
| 367 | |
| 368 case UseCounter::PrefixedPerformanceResourceTimingBufferFull: | |
| 369 return replacedBy("'Performance.onwebkitresourcetimingbufferfull'", | |
| 370 "'Performance.onresourcetimingbufferfull'"); | |
| 371 | |
| 372 case UseCounter::EncryptedMediaAllSelectedContentTypesMissingCodecs: | 360 case UseCounter::EncryptedMediaAllSelectedContentTypesMissingCodecs: |
| 373 return String::format( | 361 return String::format( |
| 374 "EME requires that contentType strings accepted by " | 362 "EME requires that contentType strings accepted by " |
| 375 "requestMediaKeySystemAccess() include codecs. Non-standard support " | 363 "requestMediaKeySystemAccess() include codecs. Non-standard support " |
| 376 "for contentType strings without codecs will be removed in %s. " | 364 "for contentType strings without codecs will be removed in %s. " |
| 377 "Please specify the desired codec(s) as part of the contentType.", | 365 "Please specify the desired codec(s) as part of the contentType.", |
| 378 milestoneString(M58)); | 366 milestoneString(M58)); |
| 379 | 367 |
| 380 case UseCounter::EncryptedMediaCapabilityNotProvided: | 368 case UseCounter::EncryptedMediaCapabilityNotProvided: |
| 381 return String::format( | 369 return String::format( |
| (...skipping 24 matching lines...) Expand all Loading... |
| 406 "redirected response. This will result in an error in %s.", | 394 "redirected response. This will result in an error in %s.", |
| 407 milestoneString(M59)); | 395 milestoneString(M59)); |
| 408 | 396 |
| 409 // Features that aren't deprecated don't have a deprecation message. | 397 // Features that aren't deprecated don't have a deprecation message. |
| 410 default: | 398 default: |
| 411 return String(); | 399 return String(); |
| 412 } | 400 } |
| 413 } | 401 } |
| 414 | 402 |
| 415 } // namespace blink | 403 } // namespace blink |
| OLD | NEW |