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/LocalFrame.h" | 10 #include "core/frame/LocalFrame.h" |
(...skipping 21 matching lines...) Expand all Loading... |
32 case M59: | 32 case M59: |
33 return "M59, around June 2017"; | 33 return "M59, around June 2017"; |
34 case M60: | 34 case M60: |
35 return "M60, around August 2017"; | 35 return "M60, around August 2017"; |
36 case M61: | 36 case M61: |
37 return "M61, around September 2017"; | 37 return "M61, around September 2017"; |
38 case M62: | 38 case M62: |
39 return "M62, around October 2017"; | 39 return "M62, around October 2017"; |
40 } | 40 } |
41 | 41 |
42 ASSERT_NOT_REACHED(); | 42 NOTREACHED(); |
43 return nullptr; | 43 return nullptr; |
44 } | 44 } |
45 | 45 |
46 String replacedBy(const char* feature, const char* replacement) { | 46 String replacedBy(const char* feature, const char* replacement) { |
47 return String::Format("%s is deprecated. Please use %s instead.", feature, | 47 return String::Format("%s is deprecated. Please use %s instead.", feature, |
48 replacement); | 48 replacement); |
49 } | 49 } |
50 | 50 |
51 String willBeRemoved(const char* feature, | 51 String willBeRemoved(const char* feature, |
52 Milestone milestone, | 52 Milestone milestone, |
(...skipping 371 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
424 return willBeRemoved("SVGPathElement.getPathSegAtLength", M62, | 424 return willBeRemoved("SVGPathElement.getPathSegAtLength", M62, |
425 "5638783282184192"); | 425 "5638783282184192"); |
426 | 426 |
427 // Features that aren't deprecated don't have a deprecation message. | 427 // Features that aren't deprecated don't have a deprecation message. |
428 default: | 428 default: |
429 return String(); | 429 return String(); |
430 } | 430 } |
431 } | 431 } |
432 | 432 |
433 } // namespace blink | 433 } // namespace blink |
OLD | NEW |