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

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

Issue 2040563002: Remove FileError interface (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@fe-dep
Patch Set: handleEvent -> invoke and other review nits Created 4 years, 5 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/FrameHost.h" 10 #include "core/frame/FrameHost.h"
(...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after
172 String Deprecation::deprecationMessage(UseCounter::Feature feature) 172 String Deprecation::deprecationMessage(UseCounter::Feature feature)
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:
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
185 case UseCounter::CSSStyleSheetInsertRuleOptionalArg: 182 case UseCounter::CSSStyleSheetInsertRuleOptionalArg:
186 return "Calling CSSStyleSheet.insertRule() with one argument is deprecat ed. Please pass the index argument as well: insertRule(x, 0)."; 183 return "Calling CSSStyleSheet.insertRule() with one argument is deprecat ed. Please pass the index argument as well: insertRule(x, 0).";
187 184
188 case UseCounter::PrefixedVideoSupportsFullscreen: 185 case UseCounter::PrefixedVideoSupportsFullscreen:
189 return replacedBy("'HTMLVideoElement.webkitSupportsFullscreen'", "'Docum ent.fullscreenEnabled'"); 186 return replacedBy("'HTMLVideoElement.webkitSupportsFullscreen'", "'Docum ent.fullscreenEnabled'");
190 187
191 case UseCounter::PrefixedVideoDisplayingFullscreen: 188 case UseCounter::PrefixedVideoDisplayingFullscreen:
192 return replacedBy("'HTMLVideoElement.webkitDisplayingFullscreen'", "'Doc ument.fullscreenElement'"); 189 return replacedBy("'HTMLVideoElement.webkitDisplayingFullscreen'", "'Doc ument.fullscreenElement'");
193 190
194 case UseCounter::PrefixedVideoEnterFullscreen: 191 case UseCounter::PrefixedVideoEnterFullscreen:
(...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after
388 case UseCounter::MIDIMessageEventReceivedTime: 385 case UseCounter::MIDIMessageEventReceivedTime:
389 return willBeRemoved("MIDIMessageEvent.receivedTime", 56, "5665772797952 000"); 386 return willBeRemoved("MIDIMessageEvent.receivedTime", 56, "5665772797952 000");
390 387
391 // Features that aren't deprecated don't have a deprecation message. 388 // Features that aren't deprecated don't have a deprecation message.
392 default: 389 default:
393 return String(); 390 return String();
394 } 391 }
395 } 392 }
396 393
397 } // namespace blink 394 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698