| 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 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 110 | 110 |
| 111 switch (milestone) { | 111 switch (milestone) { |
| 112 case 50: | 112 case 50: |
| 113 return "M50, around April 2016"; | 113 return "M50, around April 2016"; |
| 114 case 51: | 114 case 51: |
| 115 return "M51, around May 2016"; | 115 return "M51, around May 2016"; |
| 116 case 52: | 116 case 52: |
| 117 return "M52, around July 2016"; | 117 return "M52, around July 2016"; |
| 118 case 53: | 118 case 53: |
| 119 return "M53, around September 2016"; | 119 return "M53, around September 2016"; |
| 120 case 54: |
| 121 return "M54, around October 2016"; |
| 120 } | 122 } |
| 121 | 123 |
| 122 ASSERT_NOT_REACHED(); | 124 ASSERT_NOT_REACHED(); |
| 123 return nullptr; | 125 return nullptr; |
| 124 } | 126 } |
| 125 | 127 |
| 126 static String replacedBy(const char* feature, const char* replacement) | 128 static String replacedBy(const char* feature, const char* replacement) |
| 127 { | 129 { |
| 128 return String::format("%s is deprecated. Please use %s instead.", feature, r
eplacement); | 130 return String::format("%s is deprecated. Please use %s instead.", feature, r
eplacement); |
| 129 } | 131 } |
| (...skipping 198 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 328 | 330 |
| 329 case UseCounter::BorderImageWithBorderStyleNone: | 331 case UseCounter::BorderImageWithBorderStyleNone: |
| 330 return "Elements using the 'border-image' CSS property with no 'border-s
tyle' set should have no border, but currently do. Setting 'border-style' will b
e required in M51, around May 2016. See https://www.chromestatus.com/features/55
42503914668032 for more details."; | 332 return "Elements using the 'border-image' CSS property with no 'border-s
tyle' set should have no border, but currently do. Setting 'border-style' will b
e required in M51, around May 2016. See https://www.chromestatus.com/features/55
42503914668032 for more details."; |
| 331 | 333 |
| 332 case UseCounter::WebAnimationHyphenatedProperty: | 334 case UseCounter::WebAnimationHyphenatedProperty: |
| 333 return replacedWillBeRemoved("Hyphenated naming in Web Animations keyfra
mes", "camelCase", 51, "5650817352728576"); | 335 return replacedWillBeRemoved("Hyphenated naming in Web Animations keyfra
mes", "camelCase", 51, "5650817352728576"); |
| 334 | 336 |
| 335 case UseCounter::PresentationConnectionStateChangeEventListener: | 337 case UseCounter::PresentationConnectionStateChangeEventListener: |
| 336 return replacedWillBeRemoved("'PresentationConnection.onstateachange'",
"'PresentationConnection.on{connect,close,terminate}'", 51, "5662456714100736"); | 338 return replacedWillBeRemoved("'PresentationConnection.onstateachange'",
"'PresentationConnection.on{connect,close,terminate}'", 51, "5662456714100736"); |
| 337 | 339 |
| 340 case UseCounter::HTMLKeygenElement: |
| 341 return willBeRemoved("The <keygen> element", 54, "5716060992962560"); |
| 342 |
| 338 // Features that aren't deprecated don't have a deprecation message. | 343 // Features that aren't deprecated don't have a deprecation message. |
| 339 default: | 344 default: |
| 340 return String(); | 345 return String(); |
| 341 } | 346 } |
| 342 } | 347 } |
| 343 | 348 |
| 344 } // namespace blink | 349 } // namespace blink |
| OLD | NEW |