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

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

Issue 2778693004: Remove navigator.vibrate without user gesture. (Closed)
Patch Set: Use the Deprecation class for warning Created 3 years, 8 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/LocalFrame.h" 10 #include "core/frame/LocalFrame.h"
(...skipping 411 matching lines...) Expand 10 before | Expand all | Expand 10 after
422 "The rtcpMuxPolicy option is being considered for " 422 "The rtcpMuxPolicy option is being considered for "
423 "removal and may be removed no earlier than %s. If you depend on it, " 423 "removal and may be removed no earlier than %s. If you depend on it, "
424 "please see https://www.chromestatus.com/features/5654810086866944 " 424 "please see https://www.chromestatus.com/features/5654810086866944 "
425 "for more details.", 425 "for more details.",
426 milestoneString(M60)); 426 milestoneString(M60));
427 427
428 case UseCounter::kV8IDBFactory_WebkitGetDatabaseNames_Method: 428 case UseCounter::kV8IDBFactory_WebkitGetDatabaseNames_Method:
429 return willBeRemoved("indexedDB.webkitGetDatabaseNames()", M60, 429 return willBeRemoved("indexedDB.webkitGetDatabaseNames()", M60,
430 "5725741740195840"); 430 "5725741740195840");
431 431
432 case UseCounter::kVibrateWithoutUserGesture:
433 return willBeRemoved(
434 "A call to navigator.vibrate without user tap on the frame or any "
435 "embedded frame",
436 M60, "5644273861001216");
437
432 case UseCounter::kChildSrcAllowedWorkerThatScriptSrcBlocked: 438 case UseCounter::kChildSrcAllowedWorkerThatScriptSrcBlocked:
433 return replacedWillBeRemoved("The 'child-src' directive", 439 return replacedWillBeRemoved("The 'child-src' directive",
434 "the 'script-src' directive for Workers", 440 "the 'script-src' directive for Workers",
435 M60, "5922594955984896"); 441 M60, "5922594955984896");
436 442
437 case UseCounter::kCanRequestURLHTTPContainingNewline: 443 case UseCounter::kCanRequestURLHTTPContainingNewline:
438 return String::Format( 444 return String::Format(
439 "Resource requests whose URLs contain raw newline characters are " 445 "Resource requests whose URLs contain raw newline characters are "
440 "deprecated, and may be blocked in %s. Please remove newlines from " 446 "deprecated, and may be blocked in %s. Please remove newlines from "
441 "places like element attribute values in order to continue loading " 447 "places like element attribute values in order to continue loading "
442 "those resources. See " 448 "those resources. See "
443 "https://www.chromestatus.com/features/5735596811091968 for more " 449 "https://www.chromestatus.com/features/5735596811091968 for more "
444 "details.", 450 "details.",
445 milestoneString(M60)); 451 milestoneString(M60));
446 452
447 case UseCounter::kV8RTCPeerConnection_GetStreamById_Method: 453 case UseCounter::kV8RTCPeerConnection_GetStreamById_Method:
448 return willBeRemoved("RTCPeerConnection.getStreamById()", M62, 454 return willBeRemoved("RTCPeerConnection.getStreamById()", M62,
449 "5751819573657600"); 455 "5751819573657600");
450 456
451 // Features that aren't deprecated don't have a deprecation message. 457 // Features that aren't deprecated don't have a deprecation message.
452 default: 458 default:
453 return String(); 459 return String();
454 } 460 }
455 } 461 }
456 462
457 } // namespace blink 463 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698