| 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 162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 173 { | 173 { |
| 174 switch (feature) { | 174 switch (feature) { |
| 175 // Quota | 175 // Quota |
| 176 case UseCounter::PrefixedStorageInfo: | 176 case UseCounter::PrefixedStorageInfo: |
| 177 return replacedBy("'window.webkitStorageInfo'", "'navigator.webkitTempor
aryStorage' or 'navigator.webkitPersistentStorage'"); | 177 return replacedBy("'window.webkitStorageInfo'", "'navigator.webkitTempor
aryStorage' or 'navigator.webkitPersistentStorage'"); |
| 178 | 178 |
| 179 case UseCounter::ConsoleMarkTimeline: | 179 case UseCounter::ConsoleMarkTimeline: |
| 180 return replacedBy("'console.markTimeline'", "'console.timeStamp'"); | 180 return replacedBy("'console.markTimeline'", "'console.timeStamp'"); |
| 181 | 181 |
| 182 case UseCounter::FileError: | 182 case UseCounter::FileError: |
| 183 return "FileError is deprecated. Please use the 'name' or 'message' attr
ibutes of DOMError rather than 'code'."; | 183 return String::format("'FileError is deprecated and will be removed in %
s. Please use the 'name' or 'message' attributes of the error rather than 'code'
. See https://www.chromestatus.com/features/6687420359639040 for more details.",
milestoneString(54)); |
| 184 | 184 |
| 185 case UseCounter::CSSStyleSheetInsertRuleOptionalArg: | 185 case UseCounter::CSSStyleSheetInsertRuleOptionalArg: |
| 186 return "Calling CSSStyleSheet.insertRule() with one argument is deprecat
ed. Please pass the index argument as well: insertRule(x, 0)."; | 186 return "Calling CSSStyleSheet.insertRule() with one argument is deprecat
ed. Please pass the index argument as well: insertRule(x, 0)."; |
| 187 | 187 |
| 188 case UseCounter::PrefixedVideoSupportsFullscreen: | 188 case UseCounter::PrefixedVideoSupportsFullscreen: |
| 189 return replacedBy("'HTMLVideoElement.webkitSupportsFullscreen'", "'Docum
ent.fullscreenEnabled'"); | 189 return replacedBy("'HTMLVideoElement.webkitSupportsFullscreen'", "'Docum
ent.fullscreenEnabled'"); |
| 190 | 190 |
| 191 case UseCounter::PrefixedVideoDisplayingFullscreen: | 191 case UseCounter::PrefixedVideoDisplayingFullscreen: |
| 192 return replacedBy("'HTMLVideoElement.webkitDisplayingFullscreen'", "'Doc
ument.fullscreenElement'"); | 192 return replacedBy("'HTMLVideoElement.webkitDisplayingFullscreen'", "'Doc
ument.fullscreenElement'"); |
| 193 | 193 |
| (...skipping 194 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 388 case UseCounter::MIDIMessageEventReceivedTime: | 388 case UseCounter::MIDIMessageEventReceivedTime: |
| 389 return willBeRemoved("MIDIMessageEvent.receivedTime", 56, "5665772797952
000"); | 389 return willBeRemoved("MIDIMessageEvent.receivedTime", 56, "5665772797952
000"); |
| 390 | 390 |
| 391 // Features that aren't deprecated don't have a deprecation message. | 391 // Features that aren't deprecated don't have a deprecation message. |
| 392 default: | 392 default: |
| 393 return String(); | 393 return String(); |
| 394 } | 394 } |
| 395 } | 395 } |
| 396 | 396 |
| 397 } // namespace blink | 397 } // namespace blink |
| OLD | NEW |