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 283 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
294 | 294 |
295 case UseCounter::PrefixedPerformanceResourceTimingBufferFull: | 295 case UseCounter::PrefixedPerformanceResourceTimingBufferFull: |
296 return replacedBy("'Performance.onwebkitresourcetimingbufferfull'", "'Pe
rformance.onresourcetimingbufferfull'"); | 296 return replacedBy("'Performance.onwebkitresourcetimingbufferfull'", "'Pe
rformance.onresourcetimingbufferfull'"); |
297 | 297 |
298 case UseCounter::BluetoothDeviceInstanceId: | 298 case UseCounter::BluetoothDeviceInstanceId: |
299 return replacedBy("'BluetoothDevice.instanceID'", "'BluetoothDevice.id'"
); | 299 return replacedBy("'BluetoothDevice.instanceID'", "'BluetoothDevice.id'"
); |
300 | 300 |
301 case UseCounter::BluetoothDeviceConnectGATT: | 301 case UseCounter::BluetoothDeviceConnectGATT: |
302 return replacedWillBeRemoved("'BluetoothDevice.connectGATT'", "'Bluetoot
hDevice.gatt.connect'", 52, "5264933985976320"); | 302 return replacedWillBeRemoved("'BluetoothDevice.connectGATT'", "'Bluetoot
hDevice.gatt.connect'", 52, "5264933985976320"); |
303 | 303 |
304 case UseCounter::V8SVGElement_OffsetParent_AttributeGetter: | |
305 return willBeRemoved("'SVGElement.offsetParent'", 50, "5724912467574784"
); | |
306 | |
307 case UseCounter::V8SVGElement_OffsetTop_AttributeGetter: | |
308 return willBeRemoved("'SVGElement.offsetTop'", 50, "5724912467574784"); | |
309 | |
310 case UseCounter::V8SVGElement_OffsetLeft_AttributeGetter: | |
311 return willBeRemoved("'SVGElement.offsetLeft'", 50, "5724912467574784"); | |
312 | |
313 case UseCounter::V8SVGElement_OffsetWidth_AttributeGetter: | |
314 return willBeRemoved("'SVGElement.offsetWidth'", 50, "5724912467574784")
; | |
315 | |
316 case UseCounter::V8SVGElement_OffsetHeight_AttributeGetter: | |
317 return willBeRemoved("'SVGElement.offsetHeight'", 50, "5724912467574784"
); | |
318 | |
319 case UseCounter::MediaStreamTrackGetSources: | 304 case UseCounter::MediaStreamTrackGetSources: |
320 return "MediaStreamTrack.getSources is deprecated. See https://www.chrom
estatus.com/feature/4765305641369600 for more details."; | 305 return "MediaStreamTrack.getSources is deprecated. See https://www.chrom
estatus.com/feature/4765305641369600 for more details."; |
321 | 306 |
322 case UseCounter::V8TouchEvent_InitTouchEvent_Method: | 307 case UseCounter::V8TouchEvent_InitTouchEvent_Method: |
323 return replacedWillBeRemoved("'TouchEvent.initTouchEvent'", "the TouchEv
ent constructor", 53, "5730982598541312"); | 308 return replacedWillBeRemoved("'TouchEvent.initTouchEvent'", "the TouchEv
ent constructor", 53, "5730982598541312"); |
324 | 309 |
325 case UseCounter::RTCPeerConnectionCreateAnswerLegacyNoFailureCallback: | 310 case UseCounter::RTCPeerConnectionCreateAnswerLegacyNoFailureCallback: |
326 return "RTCPeerConnection.CreateAnswer without a failure callback is dep
recated. The failure callback will be a required parameter in M50. See https://w
ww.chromestatus.com/feature/5663288008376320 for more details"; | 311 return "RTCPeerConnection.CreateAnswer without a failure callback is dep
recated. The failure callback will be a required parameter in M50. See https://w
ww.chromestatus.com/feature/5663288008376320 for more details"; |
327 | 312 |
328 case UseCounter::RTCPeerConnectionCreateOfferLegacyNoFailureCallback: | 313 case UseCounter::RTCPeerConnectionCreateOfferLegacyNoFailureCallback: |
(...skipping 11 matching lines...) Expand all Loading... |
340 case UseCounter::WebAnimationHyphenatedProperty: | 325 case UseCounter::WebAnimationHyphenatedProperty: |
341 return replacedWillBeRemoved("Hyphenated naming in Web Animations keyfra
mes", "camelCase", 51, "5650817352728576"); | 326 return replacedWillBeRemoved("Hyphenated naming in Web Animations keyfra
mes", "camelCase", 51, "5650817352728576"); |
342 | 327 |
343 // Features that aren't deprecated don't have a deprecation message. | 328 // Features that aren't deprecated don't have a deprecation message. |
344 default: | 329 default: |
345 return String(); | 330 return String(); |
346 } | 331 } |
347 } | 332 } |
348 | 333 |
349 } // namespace blink | 334 } // namespace blink |
OLD | NEW |