| 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 259 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 270 | 270 |
| 271 case UseCounter::PrefixedWindowURL: | 271 case UseCounter::PrefixedWindowURL: |
| 272 return replacedBy("'webkitURL'", "'URL'"); | 272 return replacedBy("'webkitURL'", "'URL'"); |
| 273 | 273 |
| 274 case UseCounter::PrefixedAudioContext: | 274 case UseCounter::PrefixedAudioContext: |
| 275 return replacedBy("'webkitAudioContext'", "'AudioContext'"); | 275 return replacedBy("'webkitAudioContext'", "'AudioContext'"); |
| 276 | 276 |
| 277 case UseCounter::PrefixedOfflineAudioContext: | 277 case UseCounter::PrefixedOfflineAudioContext: |
| 278 return replacedBy("'webkitOfflineAudioContext'", "'OfflineAudioContext'"
); | 278 return replacedBy("'webkitOfflineAudioContext'", "'OfflineAudioContext'"
); |
| 279 | 279 |
| 280 case UseCounter::RangeExpand: | |
| 281 return replacedBy("'Range.expand()'", "'Selection.modify()'"); | |
| 282 | |
| 283 // Powerful features on insecure origins (https://goo.gl/rStTGz) | 280 // Powerful features on insecure origins (https://goo.gl/rStTGz) |
| 284 case UseCounter::DeviceMotionInsecureOrigin: | 281 case UseCounter::DeviceMotionInsecureOrigin: |
| 285 return "The devicemotion event is deprecated on insecure origins, and su
pport will be removed in the future. You should consider switching your applicat
ion to a secure origin, such as HTTPS. See https://goo.gl/rStTGz for more detail
s."; | 282 return "The devicemotion event is deprecated on insecure origins, and su
pport will be removed in the future. You should consider switching your applicat
ion to a secure origin, such as HTTPS. See https://goo.gl/rStTGz for more detail
s."; |
| 286 | 283 |
| 287 case UseCounter::DeviceOrientationInsecureOrigin: | 284 case UseCounter::DeviceOrientationInsecureOrigin: |
| 288 return "The deviceorientation event is deprecated on insecure origins, a
nd support will be removed in the future. You should consider switching your app
lication to a secure origin, such as HTTPS. See https://goo.gl/rStTGz for more d
etails."; | 285 return "The deviceorientation event is deprecated on insecure origins, a
nd support will be removed in the future. You should consider switching your app
lication to a secure origin, such as HTTPS. See https://goo.gl/rStTGz for more d
etails."; |
| 289 | 286 |
| 290 case UseCounter::DeviceOrientationAbsoluteInsecureOrigin: | 287 case UseCounter::DeviceOrientationAbsoluteInsecureOrigin: |
| 291 return "The deviceorientationabsolute event is deprecated on insecure or
igins, and support will be removed in the future. You should consider switching
your application to a secure origin, such as HTTPS. See https://goo.gl/rStTGz fo
r more details."; | 288 return "The deviceorientationabsolute event is deprecated on insecure or
igins, and support will be removed in the future. You should consider switching
your application to a secure origin, such as HTTPS. See https://goo.gl/rStTGz fo
r more details."; |
| 292 | 289 |
| (...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 388 case UseCounter::MediaStreamOnEnded: | 385 case UseCounter::MediaStreamOnEnded: |
| 389 return replacedWillBeRemoved("The MediaStream 'ended' event", "the Media
Stream 'inactive' event", 53, "5730404371791872"); | 386 return replacedWillBeRemoved("The MediaStream 'ended' event", "the Media
Stream 'inactive' event", 53, "5730404371791872"); |
| 390 | 387 |
| 391 // Features that aren't deprecated don't have a deprecation message. | 388 // Features that aren't deprecated don't have a deprecation message. |
| 392 default: | 389 default: |
| 393 return String(); | 390 return String(); |
| 394 } | 391 } |
| 395 } | 392 } |
| 396 | 393 |
| 397 } // namespace blink | 394 } // namespace blink |
| OLD | NEW |