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 355 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
366 | 366 |
367 case UseCounter::EncryptedMediaAllSelectedContentTypesMissingCodecs: | 367 case UseCounter::EncryptedMediaAllSelectedContentTypesMissingCodecs: |
368 return String::format("EME requires that contentType strings accepted by
requestMediaKeySystemAccess() include codecs. Non-standard support for contentT
ype strings without codecs will be removed in %s. Please specify the desired cod
ec(s) as part of the contentType.", milestoneString(54)); | 368 return String::format("EME requires that contentType strings accepted by
requestMediaKeySystemAccess() include codecs. Non-standard support for contentT
ype strings without codecs will be removed in %s. Please specify the desired cod
ec(s) as part of the contentType.", milestoneString(54)); |
369 | 369 |
370 case UseCounter::During_Microtask_SyncXHR: | 370 case UseCounter::During_Microtask_SyncXHR: |
371 return willBeRemoved("Invoking 'send()' on a sync XHR during microtask e
xecution", 54, "5647113010544640"); | 371 return willBeRemoved("Invoking 'send()' on a sync XHR during microtask e
xecution", 54, "5647113010544640"); |
372 | 372 |
373 case UseCounter::UntrustedEventDefaultHandled: | 373 case UseCounter::UntrustedEventDefaultHandled: |
374 return String::format("A DOM event generated from JavaScript has trigger
ed a default action inside the browser. This behavior is non-standard and will b
e removed in %s. See https://www.chromestatus.com/features/5718803933560832 for
more details.", milestoneString(53)); | 374 return String::format("A DOM event generated from JavaScript has trigger
ed a default action inside the browser. This behavior is non-standard and will b
e removed in %s. See https://www.chromestatus.com/features/5718803933560832 for
more details.", milestoneString(53)); |
375 | 375 |
376 case UseCounter::UnloadHandler_Navigation: | |
377 return "Navigating in the unload handler is deprecated and will be remov
ed."; | |
378 | |
379 case UseCounter::TouchStartUserGestureUtilized: | 376 case UseCounter::TouchStartUserGestureUtilized: |
380 return willBeRemoved("Performing operations that require explicit user i
nteraction on touchstart events", 54, "5649871251963904"); | 377 return willBeRemoved("Performing operations that require explicit user i
nteraction on touchstart events", 54, "5649871251963904"); |
381 | 378 |
382 case UseCounter::TouchMoveUserGestureUtilized: | 379 case UseCounter::TouchMoveUserGestureUtilized: |
383 return willBeRemoved("Performing operations that require explicit user i
nteraction on touchmove events", 54, "5649871251963904"); | 380 return willBeRemoved("Performing operations that require explicit user i
nteraction on touchmove events", 54, "5649871251963904"); |
384 | 381 |
385 case UseCounter::TouchEndDuringScrollUserGestureUtilized: | 382 case UseCounter::TouchEndDuringScrollUserGestureUtilized: |
386 return willBeRemoved("Performing operations that require explicit user i
nteraction on touchend events that occur as part of a scroll", 54, "564987125196
3904"); | 383 return willBeRemoved("Performing operations that require explicit user i
nteraction on touchend events that occur as part of a scroll", 54, "564987125196
3904"); |
387 | 384 |
388 case UseCounter::MIDIMessageEventReceivedTime: | 385 case UseCounter::MIDIMessageEventReceivedTime: |
389 return willBeRemoved("MIDIMessageEvent.receivedTime", 56, "5665772797952
000"); | 386 return willBeRemoved("MIDIMessageEvent.receivedTime", 56, "5665772797952
000"); |
390 | 387 |
391 case UseCounter::V8SVGSVGElement_UseCurrentView_AttributeGetter: | 388 case UseCounter::V8SVGSVGElement_UseCurrentView_AttributeGetter: |
392 return willBeRemoved("SVGSVGElement.useCurrentView", 56, "45117119985090
56"); | 389 return willBeRemoved("SVGSVGElement.useCurrentView", 56, "45117119985090
56"); |
393 | 390 |
394 case UseCounter::V8SVGSVGElement_CurrentView_AttributeGetter: | 391 case UseCounter::V8SVGSVGElement_CurrentView_AttributeGetter: |
395 return willBeRemoved("SVGSVGElement.currentView", 56, "4511711998509056"
); | 392 return willBeRemoved("SVGSVGElement.currentView", 56, "4511711998509056"
); |
396 | 393 |
397 // Features that aren't deprecated don't have a deprecation message. | 394 // Features that aren't deprecated don't have a deprecation message. |
398 default: | 395 default: |
399 return String(); | 396 return String(); |
400 } | 397 } |
401 } | 398 } |
402 | 399 |
403 } // namespace blink | 400 } // namespace blink |
OLD | NEW |