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 349 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
360 case UseCounter::EncryptedMediaAllSelectedContentTypesMissingCodecs: | 360 case UseCounter::EncryptedMediaAllSelectedContentTypesMissingCodecs: |
361 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)); | 361 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)); |
362 | 362 |
363 case UseCounter::UntrustedEventDefaultHandled: | 363 case UseCounter::UntrustedEventDefaultHandled: |
364 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)); | 364 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)); |
365 | 365 |
366 case UseCounter::UnloadHandler_Navigation: | 366 case UseCounter::UnloadHandler_Navigation: |
367 return "Navigating in the unload handler is deprecated and will be remov
ed."; | 367 return "Navigating in the unload handler is deprecated and will be remov
ed."; |
368 | 368 |
369 case UseCounter::TouchStartUserGestureUtilized: | 369 case UseCounter::TouchStartUserGestureUtilized: |
370 return willBeRemoved("Performing operations that require explicit user i
nteraction on touchstart events", 54, "5649871251963904"); | 370 return willBeRemoved("Performing operations that require explicit user i
nteraction on touchstart events", 55, "5649871251963904"); |
371 | 371 |
372 case UseCounter::TouchMoveUserGestureUtilized: | 372 case UseCounter::TouchMoveUserGestureUtilized: |
373 return willBeRemoved("Performing operations that require explicit user i
nteraction on touchmove events", 54, "5649871251963904"); | 373 return willBeRemoved("Performing operations that require explicit user i
nteraction on touchmove events", 55, "5649871251963904"); |
374 | 374 |
375 case UseCounter::TouchEndDuringScrollUserGestureUtilized: | 375 case UseCounter::TouchEndDuringScrollUserGestureUtilized: |
376 return willBeRemoved("Performing operations that require explicit user i
nteraction on touchend events that occur as part of a scroll", 54, "564987125196
3904"); | 376 return willBeRemoved("Performing operations that require explicit user i
nteraction on touchend events that occur as part of a scroll", 55, "564987125196
3904"); |
377 | 377 |
378 case UseCounter::MIDIMessageEventReceivedTime: | 378 case UseCounter::MIDIMessageEventReceivedTime: |
379 return willBeRemoved("MIDIMessageEvent.receivedTime", 56, "5665772797952
000"); | 379 return willBeRemoved("MIDIMessageEvent.receivedTime", 56, "5665772797952
000"); |
380 | 380 |
381 case UseCounter::V8SVGSVGElement_UseCurrentView_AttributeGetter: | 381 case UseCounter::V8SVGSVGElement_UseCurrentView_AttributeGetter: |
382 return willBeRemoved("SVGSVGElement.useCurrentView", 56, "45117119985090
56"); | 382 return willBeRemoved("SVGSVGElement.useCurrentView", 56, "45117119985090
56"); |
383 | 383 |
384 case UseCounter::V8SVGSVGElement_CurrentView_AttributeGetter: | 384 case UseCounter::V8SVGSVGElement_CurrentView_AttributeGetter: |
385 return willBeRemoved("SVGSVGElement.currentView", 56, "4511711998509056"
); | 385 return willBeRemoved("SVGSVGElement.currentView", 56, "4511711998509056"
); |
386 | 386 |
387 case UseCounter::V8SVGSVGElement_Viewport_AttributeGetter: | 387 case UseCounter::V8SVGSVGElement_Viewport_AttributeGetter: |
388 return willBeRemoved("SVGSVGElement.viewport", 55, "5686865248124928"); | 388 return willBeRemoved("SVGSVGElement.viewport", 55, "5686865248124928"); |
389 | 389 |
390 case UseCounter::NavigatorPointerEnabled: | 390 case UseCounter::NavigatorPointerEnabled: |
391 return "Navigator.pointerEnabled is a non-standard API added for experim
ents only. It will be removed in near future."; | 391 return "Navigator.pointerEnabled is a non-standard API added for experim
ents only. It will be removed in near future."; |
392 | 392 |
393 // Features that aren't deprecated don't have a deprecation message. | 393 // Features that aren't deprecated don't have a deprecation message. |
394 default: | 394 default: |
395 return String(); | 395 return String(); |
396 } | 396 } |
397 } | 397 } |
398 | 398 |
399 } // namespace blink | 399 } // namespace blink |
OLD | NEW |