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

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

Issue 1136303002: Update the deprecation message for prefixed EME APIs. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 7 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 | Annotate | Revision Log
« no previous file with comments | « LayoutTests/media/encrypted-media/prefixed/encrypted-media-syntax-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 848 matching lines...) Expand 10 before | Expand all | Expand 10 after
859 859
860 case RangeCompareNode: 860 case RangeCompareNode:
861 return replacedBy("Range.compareNode()", "Range.compareBoundaryPoints()" ); 861 return replacedBy("Range.compareNode()", "Range.compareBoundaryPoints()" );
862 862
863 case RangeExpand: 863 case RangeExpand:
864 return replacedBy("Range.expand()", "Selection.modify()"); 864 return replacedBy("Range.expand()", "Selection.modify()");
865 865
866 case PrefixedMediaAddKey: 866 case PrefixedMediaAddKey:
867 case PrefixedMediaGenerateKeyRequest: 867 case PrefixedMediaGenerateKeyRequest:
868 case PrefixedMediaCancelKeyRequest: 868 case PrefixedMediaCancelKeyRequest:
869 return "The prefixed Encrypted Media Extensions APIs are deprecated and will be removed soon. Please use 'navigator.requestMediaKeySystemAccess()' inste ad."; 869 return "The prefixed Encrypted Media Extensions APIs are deprecated and will be removed in M46 (beta around September 2015). Please use 'navigator.reque stMediaKeySystemAccess()' instead.";
870 870
871 case CanPlayTypeKeySystem: 871 case CanPlayTypeKeySystem:
872 return "canPlayType()'s 'keySystem' parameter is deprecated and will be removed soon. Please use 'navigator.requestMediaKeySystemAccess()' instead."; 872 return "canPlayType()'s 'keySystem' parameter is deprecated and will be ignored in M46 (beta around September 2015). Please use 'navigator.requestMediaK eySystemAccess()' instead.";
873 873
874 case SVGSVGElementForceRedraw: 874 case SVGSVGElementForceRedraw:
875 return "'SVGSVGElement.forceRedraw()' is deprecated, please do not use i t. It is a no-op, as per SVG2 (https://svgwg.org/svg2-draft/struct.html#__svg__S VGSVGElement__forceRedraw)."; 875 return "'SVGSVGElement.forceRedraw()' is deprecated, please do not use i t. It is a no-op, as per SVG2 (https://svgwg.org/svg2-draft/struct.html#__svg__S VGSVGElement__forceRedraw).";
876 876
877 case SVGSVGElementSuspendRedraw: 877 case SVGSVGElementSuspendRedraw:
878 return "'SVGSVGElement.suspendRedraw()' is deprecated, please do not use it. It is a no-op, as per SVG2 (https://svgwg.org/svg2-draft/struct.html#__svg_ _SVGSVGElement__suspendRedraw)."; 878 return "'SVGSVGElement.suspendRedraw()' is deprecated, please do not use it. It is a no-op, as per SVG2 (https://svgwg.org/svg2-draft/struct.html#__svg_ _SVGSVGElement__suspendRedraw).";
879 879
880 case SVGSVGElementUnsuspendRedraw: 880 case SVGSVGElementUnsuspendRedraw:
881 return "'SVGSVGElement.unsuspendRedraw()' is deprecated, please do not u se it. It is a no-op, as per SVG2 (https://svgwg.org/svg2-draft/struct.html#__sv g__SVGSVGElement__unsuspendRedraw)."; 881 return "'SVGSVGElement.unsuspendRedraw()' is deprecated, please do not u se it. It is a no-op, as per SVG2 (https://svgwg.org/svg2-draft/struct.html#__sv g__SVGSVGElement__unsuspendRedraw).";
882 882
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
952 UseCounter* UseCounter::getFrom(const StyleSheetContents* sheetContents) 952 UseCounter* UseCounter::getFrom(const StyleSheetContents* sheetContents)
953 { 953 {
954 // FIXME: We may want to handle stylesheets that have multiple owners 954 // FIXME: We may want to handle stylesheets that have multiple owners
955 // http://crbug.com/242125 955 // http://crbug.com/242125
956 if (sheetContents && sheetContents->hasSingleOwnerNode()) 956 if (sheetContents && sheetContents->hasSingleOwnerNode())
957 return getFrom(sheetContents->singleOwnerDocument()); 957 return getFrom(sheetContents->singleOwnerDocument());
958 return 0; 958 return 0;
959 } 959 }
960 960
961 } // namespace blink 961 } // namespace blink
OLDNEW
« no previous file with comments | « LayoutTests/media/encrypted-media/prefixed/encrypted-media-syntax-expected.txt ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698