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

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: Rebased, and closure annotations Created 4 years, 6 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 159 matching lines...) Expand 10 before | Expand all | Expand 10 after
170 String Deprecation::deprecationMessage(UseCounter::Feature feature) 170 String Deprecation::deprecationMessage(UseCounter::Feature feature)
171 { 171 {
172 switch (feature) { 172 switch (feature) {
173 // Quota 173 // Quota
174 case UseCounter::PrefixedStorageInfo: 174 case UseCounter::PrefixedStorageInfo:
175 return replacedBy("'window.webkitStorageInfo'", "'navigator.webkitTempor aryStorage' or 'navigator.webkitPersistentStorage'"); 175 return replacedBy("'window.webkitStorageInfo'", "'navigator.webkitTempor aryStorage' or 'navigator.webkitPersistentStorage'");
176 176
177 case UseCounter::ConsoleMarkTimeline: 177 case UseCounter::ConsoleMarkTimeline:
178 return replacedBy("'console.markTimeline'", "'console.timeStamp'"); 178 return replacedBy("'console.markTimeline'", "'console.timeStamp'");
179 179
180 case UseCounter::FileError:
181 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(53));
182
183 case UseCounter::CSSStyleSheetInsertRuleOptionalArg: 180 case UseCounter::CSSStyleSheetInsertRuleOptionalArg:
184 return "Calling CSSStyleSheet.insertRule() with one argument is deprecat ed. Please pass the index argument as well: insertRule(x, 0)."; 181 return "Calling CSSStyleSheet.insertRule() with one argument is deprecat ed. Please pass the index argument as well: insertRule(x, 0).";
185 182
186 case UseCounter::PrefixedVideoSupportsFullscreen: 183 case UseCounter::PrefixedVideoSupportsFullscreen:
187 return replacedBy("'HTMLVideoElement.webkitSupportsFullscreen'", "'Docum ent.fullscreenEnabled'"); 184 return replacedBy("'HTMLVideoElement.webkitSupportsFullscreen'", "'Docum ent.fullscreenEnabled'");
188 185
189 case UseCounter::PrefixedVideoDisplayingFullscreen: 186 case UseCounter::PrefixedVideoDisplayingFullscreen:
190 return replacedBy("'HTMLVideoElement.webkitDisplayingFullscreen'", "'Doc ument.fullscreenElement'"); 187 return replacedBy("'HTMLVideoElement.webkitDisplayingFullscreen'", "'Doc ument.fullscreenElement'");
191 188
192 case UseCounter::PrefixedVideoEnterFullscreen: 189 case UseCounter::PrefixedVideoEnterFullscreen:
(...skipping 200 matching lines...) Expand 10 before | Expand all | Expand 10 after
393 case UseCounter::TouchEndDuringScrollUserGestureUtilized: 390 case UseCounter::TouchEndDuringScrollUserGestureUtilized:
394 return willBeRemoved("Performing operations that require explicit user i nteraction on touchend events that occur as part of a scroll", 54, "564987125196 3904"); 391 return willBeRemoved("Performing operations that require explicit user i nteraction on touchend events that occur as part of a scroll", 54, "564987125196 3904");
395 392
396 // Features that aren't deprecated don't have a deprecation message. 393 // Features that aren't deprecated don't have a deprecation message.
397 default: 394 default:
398 return String(); 395 return String();
399 } 396 }
400 } 397 }
401 398
402 } // namespace blink 399 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698