Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(188)

Side by Side Diff: third_party/WebKit/Source/core/frame/Deprecation.cpp

Issue 2089353003: Un-deprecate modal dialogs during microtasks (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: updates Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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::V8KeyboardEvent_KeyIdentifier_AttributeGetter: 360 case UseCounter::V8KeyboardEvent_KeyIdentifier_AttributeGetter:
361 return willBeRemoved("'KeyboardEvent.keyIdentifier'", 53, "5316065118650 368"); 361 return willBeRemoved("'KeyboardEvent.keyIdentifier'", 53, "5316065118650 368");
362 362
363 case UseCounter::During_Microtask_Alert:
364 return willBeRemoved("Invoking 'alert()' during microtask execution", 53 , "5647113010544640");
365
366 case UseCounter::During_Microtask_Confirm:
367 return willBeRemoved("Invoking 'confirm()' during microtask execution", 53, "5647113010544640");
368
369 case UseCounter::During_Microtask_Print:
370 return willBeRemoved("Invoking 'print()' during microtask execution", 53 , "5647113010544640");
371
372 case UseCounter::During_Microtask_Prompt:
373 return willBeRemoved("Invoking 'prompt()' during microtask execution", 5 3, "5647113010544640");
374
375 case UseCounter::During_Microtask_SyncXHR: 363 case UseCounter::During_Microtask_SyncXHR:
376 return willBeRemoved("Invoking 'send()' on a sync XHR during microtask e xecution", 53, "5647113010544640"); 364 return willBeRemoved("Invoking 'send()' on a sync XHR during microtask e xecution", 54, "5647113010544640");
377 365
378 case UseCounter::MediaStreamOnEnded: 366 case UseCounter::MediaStreamOnEnded:
379 return replacedWillBeRemoved("The MediaStream 'ended' event", "the Media Stream 'inactive' event", 53, "5730404371791872"); 367 return replacedWillBeRemoved("The MediaStream 'ended' event", "the Media Stream 'inactive' event", 53, "5730404371791872");
380 368
381 case UseCounter::UntrustedEventDefaultHandled: 369 case UseCounter::UntrustedEventDefaultHandled:
382 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)); 370 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));
383 371
384 case UseCounter::UnloadHandler_Navigation: 372 case UseCounter::UnloadHandler_Navigation:
385 return "Navigating in the unload handler is deprecated and will be remov ed."; 373 return "Navigating in the unload handler is deprecated and will be remov ed.";
386 374
387 case UseCounter::TouchStartUserGestureUtilized: 375 case UseCounter::TouchStartUserGestureUtilized:
388 return willBeRemoved("Performing operations that require explicit user i nteraction on touchstart events", 54, "5649871251963904"); 376 return willBeRemoved("Performing operations that require explicit user i nteraction on touchstart events", 54, "5649871251963904");
389 377
390 case UseCounter::TouchMoveUserGestureUtilized: 378 case UseCounter::TouchMoveUserGestureUtilized:
391 return willBeRemoved("Performing operations that require explicit user i nteraction on touchmove events", 54, "5649871251963904"); 379 return willBeRemoved("Performing operations that require explicit user i nteraction on touchmove events", 54, "5649871251963904");
392 380
393 case UseCounter::TouchEndDuringScrollUserGestureUtilized: 381 case UseCounter::TouchEndDuringScrollUserGestureUtilized:
394 return willBeRemoved("Performing operations that require explicit user i nteraction on touchend events that occur as part of a scroll", 54, "564987125196 3904"); 382 return willBeRemoved("Performing operations that require explicit user i nteraction on touchend events that occur as part of a scroll", 54, "564987125196 3904");
395 383
396 // Features that aren't deprecated don't have a deprecation message. 384 // Features that aren't deprecated don't have a deprecation message.
397 default: 385 default:
398 return String(); 386 return String();
399 } 387 }
400 } 388 }
401 389
402 } // namespace blink 390 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698