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

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

Issue 2501743003: Indexed DB: Remove 'webkit'-prefixed global aliases (Closed)
Patch Set: rebased Created 4 years, 1 month 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 214 matching lines...) Expand 10 before | Expand all | Expand 10 after
225 "'Document.exitFullscreen()'"); 225 "'Document.exitFullscreen()'");
226 226
227 case UseCounter::PrefixedVideoEnterFullScreen: 227 case UseCounter::PrefixedVideoEnterFullScreen:
228 return replacedBy("'HTMLVideoElement.webkitEnterFullScreen()'", 228 return replacedBy("'HTMLVideoElement.webkitEnterFullScreen()'",
229 "'Element.requestFullscreen()'"); 229 "'Element.requestFullscreen()'");
230 230
231 case UseCounter::PrefixedVideoExitFullScreen: 231 case UseCounter::PrefixedVideoExitFullScreen:
232 return replacedBy("'HTMLVideoElement.webkitExitFullScreen()'", 232 return replacedBy("'HTMLVideoElement.webkitExitFullScreen()'",
233 "'Document.exitFullscreen()'"); 233 "'Document.exitFullscreen()'");
234 234
235 case UseCounter::PrefixedIndexedDB:
236 return replacedWillBeRemoved("'webkitIndexedDB'", "'indexedDB'", M57,
237 "5775330191081472");
238
239 case UseCounter::PrefixedIDBCursorConstructor:
240 return replacedWillBeRemoved("'webkitIDBCursor'", "'IDBCursor'", M57,
241 "5775330191081472");
242
243 case UseCounter::PrefixedIDBDatabaseConstructor:
244 return replacedWillBeRemoved("'webkitIDBDatabase'", "'IDBDatabase'", M57,
245 "5775330191081472");
246
247 case UseCounter::PrefixedIDBFactoryConstructor:
248 return replacedWillBeRemoved("'webkitIDBFactory'", "'IDBFactory'", M57,
249 "5775330191081472");
250
251 case UseCounter::PrefixedIDBIndexConstructor:
252 return replacedWillBeRemoved("'webkitIDBIndex'", "'IDBIndex'", M57,
253 "5775330191081472");
254
255 case UseCounter::PrefixedIDBKeyRangeConstructor:
256 return replacedWillBeRemoved("'webkitIDBKeyRange'", "'IDBKeyRange'", M57,
257 "5775330191081472");
258
259 case UseCounter::PrefixedIDBObjectStoreConstructor:
260 return replacedWillBeRemoved("'webkitIDBObjectStore'", "'IDBObjectStore'",
261 M57, "5775330191081472");
262
263 case UseCounter::PrefixedIDBRequestConstructor:
264 return replacedWillBeRemoved("'webkitIDBRequest'", "'IDBRequest'", M57,
265 "5775330191081472");
266
267 case UseCounter::PrefixedIDBTransactionConstructor:
268 return replacedWillBeRemoved("'webkitIDBTransaction'", "'IDBTransaction'",
269 M57, "5775330191081472");
270
271 case UseCounter::PrefixedRequestAnimationFrame: 235 case UseCounter::PrefixedRequestAnimationFrame:
272 return "'webkitRequestAnimationFrame' is vendor-specific. Please use the " 236 return "'webkitRequestAnimationFrame' is vendor-specific. Please use the "
273 "standard 'requestAnimationFrame' instead."; 237 "standard 'requestAnimationFrame' instead.";
274 238
275 case UseCounter::PrefixedCancelAnimationFrame: 239 case UseCounter::PrefixedCancelAnimationFrame:
276 return "'webkitCancelAnimationFrame' is vendor-specific. Please use the " 240 return "'webkitCancelAnimationFrame' is vendor-specific. Please use the "
277 "standard 'cancelAnimationFrame' instead."; 241 "standard 'cancelAnimationFrame' instead.";
278 242
279 case UseCounter::PrefixedCancelRequestAnimationFrame: 243 case UseCounter::PrefixedCancelRequestAnimationFrame:
280 return replacedWillBeRemoved("webkitCancelRequestAnimationFrame", 244 return replacedWillBeRemoved("webkitCancelRequestAnimationFrame",
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after
439 case UseCounter::VRDeprecatedGetPose: 403 case UseCounter::VRDeprecatedGetPose:
440 return replacedBy("VRDisplay.getPose()", "VRDisplay.getFrameData()"); 404 return replacedBy("VRDisplay.getPose()", "VRDisplay.getFrameData()");
441 405
442 // Features that aren't deprecated don't have a deprecation message. 406 // Features that aren't deprecated don't have a deprecation message.
443 default: 407 default:
444 return String(); 408 return String();
445 } 409 }
446 } 410 }
447 411
448 } // namespace blink 412 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698