| 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 13 matching lines...) Expand all Loading... |
| 24 return "M50, around April 2016"; | 24 return "M50, around April 2016"; |
| 25 case 51: | 25 case 51: |
| 26 return "M51, around May 2016"; | 26 return "M51, around May 2016"; |
| 27 case 52: | 27 case 52: |
| 28 return "M52, around July 2016"; | 28 return "M52, around July 2016"; |
| 29 case 53: | 29 case 53: |
| 30 return "M53, around September 2016"; | 30 return "M53, around September 2016"; |
| 31 case 54: | 31 case 54: |
| 32 return "M54, around October 2016"; | 32 return "M54, around October 2016"; |
| 33 case 55: | 33 case 55: |
| 34 return "M55, around November 2016"; | 34 return "M55, around December 2016"; |
| 35 case 56: | 35 case 56: |
| 36 return "M56, around January 2017"; | 36 return "M56, around January 2017"; |
| 37 case 57: |
| 38 return "M57, around March 2017"; |
| 39 case 58: |
| 40 return "M58, around April 2017"; |
| 41 case 59: |
| 42 return "M59, around June 2017"; |
| 37 } | 43 } |
| 38 | 44 |
| 39 ASSERT_NOT_REACHED(); | 45 ASSERT_NOT_REACHED(); |
| 40 return nullptr; | 46 return nullptr; |
| 41 } | 47 } |
| 42 | 48 |
| 43 String replacedBy(const char* feature, const char* replacement) | 49 String replacedBy(const char* feature, const char* replacement) |
| 44 { | 50 { |
| 45 return String::format("%s is deprecated. Please use %s instead.", feature, r
eplacement); | 51 return String::format("%s is deprecated. Please use %s instead.", feature, r
eplacement); |
| 46 } | 52 } |
| (...skipping 332 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 379 case UseCounter::ScriptInvalidTypeOrLanguage: | 385 case UseCounter::ScriptInvalidTypeOrLanguage: |
| 380 return String::format("Fetching scripts with an invalid type/language at
tributes is deprecated and will be removed in %s. See https://www.chromestatus.c
om/feature/5760718284521472 for more details.", milestoneString(56)); | 386 return String::format("Fetching scripts with an invalid type/language at
tributes is deprecated and will be removed in %s. See https://www.chromestatus.c
om/feature/5760718284521472 for more details.", milestoneString(56)); |
| 381 | 387 |
| 382 // Features that aren't deprecated don't have a deprecation message. | 388 // Features that aren't deprecated don't have a deprecation message. |
| 383 default: | 389 default: |
| 384 return String(); | 390 return String(); |
| 385 } | 391 } |
| 386 } | 392 } |
| 387 | 393 |
| 388 } // namespace blink | 394 } // namespace blink |
| OLD | NEW |