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

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

Issue 1529623002: Update the keyLocation deprecation message for M50 removal (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: use replacedWillBeRemoved Created 5 years 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
« no previous file with comments | « third_party/WebKit/LayoutTests/fast/events/constructors/keyboard-event-constructor-expected.txt ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2012 Google, Inc. All rights reserved. 2 * Copyright (C) 2012 Google, Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 747 matching lines...) Expand 10 before | Expand all | Expand 10 after
758 758
759 String UseCounter::deprecationMessage(Feature feature) 759 String UseCounter::deprecationMessage(Feature feature)
760 { 760 {
761 switch (feature) { 761 switch (feature) {
762 // Quota 762 // Quota
763 case PrefixedStorageInfo: 763 case PrefixedStorageInfo:
764 return replacedBy("'window.webkitStorageInfo'", "'navigator.webkitTempor aryStorage' or 'navigator.webkitPersistentStorage'"); 764 return replacedBy("'window.webkitStorageInfo'", "'navigator.webkitTempor aryStorage' or 'navigator.webkitPersistentStorage'");
765 765
766 // Keyboard Event (DOM Level 3) 766 // Keyboard Event (DOM Level 3)
767 case KeyboardEventKeyLocation: 767 case KeyboardEventKeyLocation:
768 return replacedBy("'KeyboardEvent.keyLocation'", "'KeyboardEvent.locatio n'"); 768 return replacedWillBeRemoved("'KeyboardEvent.keyLocation'", "'KeyboardEv ent.location'", 50, "4997403308457984");
769 769
770 case ConsoleMarkTimeline: 770 case ConsoleMarkTimeline:
771 return replacedBy("'console.markTimeline'", "'console.timeStamp'"); 771 return replacedBy("'console.markTimeline'", "'console.timeStamp'");
772 772
773 case FileError: 773 case FileError:
774 return "FileError is deprecated. Please use the 'name' or 'message' attr ibutes of DOMError rather than 'code'."; 774 return "FileError is deprecated. Please use the 'name' or 'message' attr ibutes of DOMError rather than 'code'.";
775 775
776 case CSSStyleSheetInsertRuleOptionalArg: 776 case CSSStyleSheetInsertRuleOptionalArg:
777 return "Calling CSSStyleSheet.insertRule() with one argument is deprecat ed. Please pass the index argument as well: insertRule(x, 0)."; 777 return "Calling CSSStyleSheet.insertRule() with one argument is deprecat ed. Please pass the index argument as well: insertRule(x, 0).";
778 778
(...skipping 221 matching lines...) Expand 10 before | Expand all | Expand 10 after
1000 UseCounter* UseCounter::getFrom(const StyleSheetContents* sheetContents) 1000 UseCounter* UseCounter::getFrom(const StyleSheetContents* sheetContents)
1001 { 1001 {
1002 // FIXME: We may want to handle stylesheets that have multiple owners 1002 // FIXME: We may want to handle stylesheets that have multiple owners
1003 // https://crbug.com/242125 1003 // https://crbug.com/242125
1004 if (sheetContents && sheetContents->hasSingleOwnerNode()) 1004 if (sheetContents && sheetContents->hasSingleOwnerNode())
1005 return getFrom(sheetContents->singleOwnerDocument()); 1005 return getFrom(sheetContents->singleOwnerDocument());
1006 return 0; 1006 return 0;
1007 } 1007 }
1008 1008
1009 } // namespace blink 1009 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/LayoutTests/fast/events/constructors/keyboard-event-constructor-expected.txt ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698