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 342 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
353 | 353 |
354 case UseCounter::WindowPostMessageWithLegacyTargetOriginArgument: | 354 case UseCounter::WindowPostMessageWithLegacyTargetOriginArgument: |
355 return replacedWillBeRemoved("'window.postMessage(message, transferables
, targetOrigin)'", "'window.postMessage(message, targetOrigin, transferables)'",
54, "5719033043222528"); | 355 return replacedWillBeRemoved("'window.postMessage(message, transferables
, targetOrigin)'", "'window.postMessage(message, targetOrigin, transferables)'",
54, "5719033043222528"); |
356 | 356 |
357 case UseCounter::EncryptedMediaAllSelectedContentTypesMissingCodecs: | 357 case UseCounter::EncryptedMediaAllSelectedContentTypesMissingCodecs: |
358 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)); | 358 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)); |
359 | 359 |
360 case UseCounter::UntrustedEventDefaultHandled: | 360 case UseCounter::UntrustedEventDefaultHandled: |
361 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)); | 361 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)); |
362 | 362 |
363 case UseCounter::UnloadHandler_Navigation: | |
364 return "Navigating in the unload handler is deprecated and will be remov
ed."; | |
365 | |
366 case UseCounter::TouchStartUserGestureUtilized: | 363 case UseCounter::TouchStartUserGestureUtilized: |
367 return willBeRemoved("Performing operations that require explicit user i
nteraction on touchstart events", 54, "5649871251963904"); | 364 return willBeRemoved("Performing operations that require explicit user i
nteraction on touchstart events", 54, "5649871251963904"); |
368 | 365 |
369 case UseCounter::TouchMoveUserGestureUtilized: | 366 case UseCounter::TouchMoveUserGestureUtilized: |
370 return willBeRemoved("Performing operations that require explicit user i
nteraction on touchmove events", 54, "5649871251963904"); | 367 return willBeRemoved("Performing operations that require explicit user i
nteraction on touchmove events", 54, "5649871251963904"); |
371 | 368 |
372 case UseCounter::TouchEndDuringScrollUserGestureUtilized: | 369 case UseCounter::TouchEndDuringScrollUserGestureUtilized: |
373 return willBeRemoved("Performing operations that require explicit user i
nteraction on touchend events that occur as part of a scroll", 54, "564987125196
3904"); | 370 return willBeRemoved("Performing operations that require explicit user i
nteraction on touchend events that occur as part of a scroll", 54, "564987125196
3904"); |
374 | 371 |
375 case UseCounter::MIDIMessageEventReceivedTime: | 372 case UseCounter::MIDIMessageEventReceivedTime: |
(...skipping 11 matching lines...) Expand all Loading... |
387 case UseCounter::NavigatorPointerEnabled: | 384 case UseCounter::NavigatorPointerEnabled: |
388 return "Navigator.pointerEnabled is a non-standard API added for experim
ents only. It will be removed in near future."; | 385 return "Navigator.pointerEnabled is a non-standard API added for experim
ents only. It will be removed in near future."; |
389 | 386 |
390 // Features that aren't deprecated don't have a deprecation message. | 387 // Features that aren't deprecated don't have a deprecation message. |
391 default: | 388 default: |
392 return String(); | 389 return String(); |
393 } | 390 } |
394 } | 391 } |
395 | 392 |
396 } // namespace blink | 393 } // namespace blink |
OLD | NEW |