| 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 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 48 String willBeRemoved(const char* feature, int milestone, const char* details) | 48 String willBeRemoved(const char* feature, int milestone, const char* details) |
| 49 { | 49 { |
| 50 return String::format("%s is deprecated and will be removed in %s. See https
://www.chromestatus.com/features/%s for more details.", feature, milestoneString
(milestone), details); | 50 return String::format("%s is deprecated and will be removed in %s. See https
://www.chromestatus.com/features/%s for more details.", feature, milestoneString
(milestone), details); |
| 51 } | 51 } |
| 52 | 52 |
| 53 String dopplerWillBeRemoved(const char* feature, int milestone, const char* deta
ils) | 53 String dopplerWillBeRemoved(const char* feature, int milestone, const char* deta
ils) |
| 54 { | 54 { |
| 55 return String::format("%s is deprecated and will be removed in %s. It has no
effect as the Web Audio doppler effects have already been removed internally. S
ee https://www.chromestatus.com/features/%s for more details.", feature, milesto
neString(milestone), details); | 55 return String::format("%s is deprecated and will be removed in %s. It has no
effect as the Web Audio doppler effects have already been removed internally. S
ee https://www.chromestatus.com/features/%s for more details.", feature, milesto
neString(milestone), details); |
| 56 } | 56 } |
| 57 | 57 |
| 58 String replacedWillBeRemoved(const char* feature, const char* replacement, int m
ilestone, const char* details) |
| 59 { |
| 60 return String::format("%s is deprecated and will be removed in %s. Please us
e %s instead. See https://www.chromestatus.com/features/%s for more details.", f
eature, milestoneString(milestone), replacement, details); |
| 61 } |
| 62 |
| 58 } // anonymous namespace | 63 } // anonymous namespace |
| 59 | 64 |
| 60 namespace blink { | 65 namespace blink { |
| 61 | 66 |
| 62 Deprecation::Deprecation() | 67 Deprecation::Deprecation() |
| 63 : m_muteCount(0) | 68 : m_muteCount(0) |
| 64 { | 69 { |
| 65 m_cssPropertyDeprecationBits.ensureSize(lastUnresolvedCSSProperty + 1); | 70 m_cssPropertyDeprecationBits.ensureSize(lastUnresolvedCSSProperty + 1); |
| 66 } | 71 } |
| 67 | 72 |
| (...skipping 311 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 379 case UseCounter::WebAudioAutoplayCrossOriginIframe: | 384 case UseCounter::WebAudioAutoplayCrossOriginIframe: |
| 380 return willBeRemoved("Web Audio autoplay (without user gesture) from cro
ss-origin iframes", 55, "6406908126691328"); | 385 return willBeRemoved("Web Audio autoplay (without user gesture) from cro
ss-origin iframes", 55, "6406908126691328"); |
| 381 | 386 |
| 382 // Features that aren't deprecated don't have a deprecation message. | 387 // Features that aren't deprecated don't have a deprecation message. |
| 383 default: | 388 default: |
| 384 return String(); | 389 return String(); |
| 385 } | 390 } |
| 386 } | 391 } |
| 387 | 392 |
| 388 } // namespace blink | 393 } // namespace blink |
| OLD | NEW |