| 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 262 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 273 "because of its detrimental effects to the end user's experience. " | 273 "because of its detrimental effects to the end user's experience. " |
| 274 "For more help, check https://xhr.spec.whatwg.org/."; | 274 "For more help, check https://xhr.spec.whatwg.org/."; |
| 275 | 275 |
| 276 case UseCounter::GetMatchedCSSRules: | 276 case UseCounter::GetMatchedCSSRules: |
| 277 return "'getMatchedCSSRules()' is deprecated. For more help, check " | 277 return "'getMatchedCSSRules()' is deprecated. For more help, check " |
| 278 "https://code.google.com/p/chromium/issues/detail?id=437569#c2"; | 278 "https://code.google.com/p/chromium/issues/detail?id=437569#c2"; |
| 279 | 279 |
| 280 case UseCounter::PrefixedWindowURL: | 280 case UseCounter::PrefixedWindowURL: |
| 281 return replacedBy("'webkitURL'", "'URL'"); | 281 return replacedBy("'webkitURL'", "'URL'"); |
| 282 | 282 |
| 283 case UseCounter::PrefixedAudioContext: | |
| 284 return replacedBy("'webkitAudioContext'", "'AudioContext'"); | |
| 285 | |
| 286 case UseCounter::PrefixedOfflineAudioContext: | |
| 287 return replacedBy("'webkitOfflineAudioContext'", "'OfflineAudioContext'"); | |
| 288 | |
| 289 case UseCounter::RangeExpand: | 283 case UseCounter::RangeExpand: |
| 290 return replacedBy("'Range.expand()'", "'Selection.modify()'"); | 284 return replacedBy("'Range.expand()'", "'Selection.modify()'"); |
| 291 | 285 |
| 292 // Powerful features on insecure origins (https://goo.gl/rStTGz) | 286 // Powerful features on insecure origins (https://goo.gl/rStTGz) |
| 293 case UseCounter::DeviceMotionInsecureOrigin: | 287 case UseCounter::DeviceMotionInsecureOrigin: |
| 294 return "The devicemotion event is deprecated on insecure origins, and " | 288 return "The devicemotion event is deprecated on insecure origins, and " |
| 295 "support will be removed in the future. You should consider " | 289 "support will be removed in the future. You should consider " |
| 296 "switching your application to a secure origin, such as HTTPS. " | 290 "switching your application to a secure origin, such as HTTPS. " |
| 297 "See https://goo.gl/rStTGz for more details."; | 291 "See https://goo.gl/rStTGz for more details."; |
| 298 | 292 |
| (...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 420 "redirected response. This will result in an error in %s.", | 414 "redirected response. This will result in an error in %s.", |
| 421 milestoneString(M59)); | 415 milestoneString(M59)); |
| 422 | 416 |
| 423 // Features that aren't deprecated don't have a deprecation message. | 417 // Features that aren't deprecated don't have a deprecation message. |
| 424 default: | 418 default: |
| 425 return String(); | 419 return String(); |
| 426 } | 420 } |
| 427 } | 421 } |
| 428 | 422 |
| 429 } // namespace blink | 423 } // namespace blink |
| OLD | NEW |