| 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 215 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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: | 235 case UseCounter::PrefixedIndexedDB: |
| 236 return replacedBy("'webkitIndexedDB'", "'indexedDB'"); | 236 return replacedWillBeRemoved("'webkitIndexedDB'", "'indexedDB'", M57, |
| 237 "5775330191081472"); |
| 237 | 238 |
| 238 case UseCounter::PrefixedIDBCursorConstructor: | 239 case UseCounter::PrefixedIDBCursorConstructor: |
| 239 return replacedBy("'webkitIDBCursor'", "'IDBCursor'"); | 240 return replacedWillBeRemoved("'webkitIDBCursor'", "'IDBCursor'", M57, |
| 241 "5775330191081472"); |
| 240 | 242 |
| 241 case UseCounter::PrefixedIDBDatabaseConstructor: | 243 case UseCounter::PrefixedIDBDatabaseConstructor: |
| 242 return replacedBy("'webkitIDBDatabase'", "'IDBDatabase'"); | 244 return replacedWillBeRemoved("'webkitIDBDatabase'", "'IDBDatabase'", M57, |
| 245 "5775330191081472"); |
| 243 | 246 |
| 244 case UseCounter::PrefixedIDBFactoryConstructor: | 247 case UseCounter::PrefixedIDBFactoryConstructor: |
| 245 return replacedBy("'webkitIDBFactory'", "'IDBFactory'"); | 248 return replacedWillBeRemoved("'webkitIDBFactory'", "'IDBFactory'", M57, |
| 249 "5775330191081472"); |
| 246 | 250 |
| 247 case UseCounter::PrefixedIDBIndexConstructor: | 251 case UseCounter::PrefixedIDBIndexConstructor: |
| 248 return replacedBy("'webkitIDBIndex'", "'IDBIndex'"); | 252 return replacedWillBeRemoved("'webkitIDBIndex'", "'IDBIndex'", M57, |
| 253 "5775330191081472"); |
| 249 | 254 |
| 250 case UseCounter::PrefixedIDBKeyRangeConstructor: | 255 case UseCounter::PrefixedIDBKeyRangeConstructor: |
| 251 return replacedBy("'webkitIDBKeyRange'", "'IDBKeyRange'"); | 256 return replacedWillBeRemoved("'webkitIDBKeyRange'", "'IDBKeyRange'", M57, |
| 257 "5775330191081472"); |
| 252 | 258 |
| 253 case UseCounter::PrefixedIDBObjectStoreConstructor: | 259 case UseCounter::PrefixedIDBObjectStoreConstructor: |
| 254 return replacedBy("'webkitIDBObjectStore'", "'IDBObjectStore'"); | 260 return replacedWillBeRemoved("'webkitIDBObjectStore'", "'IDBObjectStore'", |
| 261 M57, "5775330191081472"); |
| 255 | 262 |
| 256 case UseCounter::PrefixedIDBRequestConstructor: | 263 case UseCounter::PrefixedIDBRequestConstructor: |
| 257 return replacedBy("'webkitIDBRequest'", "'IDBRequest'"); | 264 return replacedWillBeRemoved("'webkitIDBRequest'", "'IDBRequest'", M57, |
| 265 "5775330191081472"); |
| 258 | 266 |
| 259 case UseCounter::PrefixedIDBTransactionConstructor: | 267 case UseCounter::PrefixedIDBTransactionConstructor: |
| 260 return replacedBy("'webkitIDBTransaction'", "'IDBTransaction'"); | 268 return replacedWillBeRemoved("'webkitIDBTransaction'", "'IDBTransaction'", |
| 269 M57, "5775330191081472"); |
| 261 | 270 |
| 262 case UseCounter::PrefixedRequestAnimationFrame: | 271 case UseCounter::PrefixedRequestAnimationFrame: |
| 263 return "'webkitRequestAnimationFrame' is vendor-specific. Please use the " | 272 return "'webkitRequestAnimationFrame' is vendor-specific. Please use the " |
| 264 "standard 'requestAnimationFrame' instead."; | 273 "standard 'requestAnimationFrame' instead."; |
| 265 | 274 |
| 266 case UseCounter::PrefixedCancelAnimationFrame: | 275 case UseCounter::PrefixedCancelAnimationFrame: |
| 267 return "'webkitCancelAnimationFrame' is vendor-specific. Please use the " | 276 return "'webkitCancelAnimationFrame' is vendor-specific. Please use the " |
| 268 "standard 'cancelAnimationFrame' instead."; | 277 "standard 'cancelAnimationFrame' instead."; |
| 269 | 278 |
| 270 case UseCounter::PrefixedCancelRequestAnimationFrame: | 279 case UseCounter::PrefixedCancelRequestAnimationFrame: |
| (...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 424 case UseCounter::VRDeprecatedGetPose: | 433 case UseCounter::VRDeprecatedGetPose: |
| 425 return replacedBy("VRDisplay.getPose()", "VRDisplay.getFrameData()"); | 434 return replacedBy("VRDisplay.getPose()", "VRDisplay.getFrameData()"); |
| 426 | 435 |
| 427 // Features that aren't deprecated don't have a deprecation message. | 436 // Features that aren't deprecated don't have a deprecation message. |
| 428 default: | 437 default: |
| 429 return String(); | 438 return String(); |
| 430 } | 439 } |
| 431 } | 440 } |
| 432 | 441 |
| 433 } // namespace blink | 442 } // namespace blink |
| OLD | NEW |