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

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

Issue 2557523002: Remove webkitAudoContext and webkitOfflineAudioContext (Closed)
Patch Set: Rebaseline test Created 4 years 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 253 matching lines...) Expand 10 before | Expand all | Expand 10 after
264 "because of its detrimental effects to the end user's experience. " 264 "because of its detrimental effects to the end user's experience. "
265 "For more help, check https://xhr.spec.whatwg.org/."; 265 "For more help, check https://xhr.spec.whatwg.org/.";
266 266
267 case UseCounter::GetMatchedCSSRules: 267 case UseCounter::GetMatchedCSSRules:
268 return "'getMatchedCSSRules()' is deprecated. For more help, check " 268 return "'getMatchedCSSRules()' is deprecated. For more help, check "
269 "https://code.google.com/p/chromium/issues/detail?id=437569#c2"; 269 "https://code.google.com/p/chromium/issues/detail?id=437569#c2";
270 270
271 case UseCounter::PrefixedWindowURL: 271 case UseCounter::PrefixedWindowURL:
272 return replacedBy("'webkitURL'", "'URL'"); 272 return replacedBy("'webkitURL'", "'URL'");
273 273
274 case UseCounter::PrefixedAudioContext:
275 return replacedBy("'webkitAudioContext'", "'AudioContext'");
276
277 case UseCounter::PrefixedOfflineAudioContext:
278 return replacedBy("'webkitOfflineAudioContext'", "'OfflineAudioContext'");
279
280 case UseCounter::RangeExpand: 274 case UseCounter::RangeExpand:
281 return replacedBy("'Range.expand()'", "'Selection.modify()'"); 275 return replacedBy("'Range.expand()'", "'Selection.modify()'");
282 276
283 // Powerful features on insecure origins (https://goo.gl/rStTGz) 277 // Powerful features on insecure origins (https://goo.gl/rStTGz)
284 case UseCounter::DeviceMotionInsecureOrigin: 278 case UseCounter::DeviceMotionInsecureOrigin:
285 return "The devicemotion event is deprecated on insecure origins, and " 279 return "The devicemotion event is deprecated on insecure origins, and "
286 "support will be removed in the future. You should consider " 280 "support will be removed in the future. You should consider "
287 "switching your application to a secure origin, such as HTTPS. " 281 "switching your application to a secure origin, such as HTTPS. "
288 "See https://goo.gl/rStTGz for more details."; 282 "See https://goo.gl/rStTGz for more details.";
289 283
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after
411 "redirected response. This will result in an error in %s.", 405 "redirected response. This will result in an error in %s.",
412 milestoneString(M59)); 406 milestoneString(M59));
413 407
414 // Features that aren't deprecated don't have a deprecation message. 408 // Features that aren't deprecated don't have a deprecation message.
415 default: 409 default:
416 return String(); 410 return String();
417 } 411 }
418 } 412 }
419 413
420 } // namespace blink 414 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698