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

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

Issue 925293002: Service Worker: Add a warning message for Client.postMessage (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 10 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 | « Source/core/frame/UseCounter.h ('k') | Source/modules/serviceworkers/Client.idl » ('j') | 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 /* 2 /*
3 * Copyright (C) 2012 Google, Inc. All rights reserved. 3 * Copyright (C) 2012 Google, Inc. All rights reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 841 matching lines...) Expand 10 before | Expand all | Expand 10 after
852 852
853 case SVGSVGElementSuspendRedraw: 853 case SVGSVGElementSuspendRedraw:
854 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)."; 854 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).";
855 855
856 case SVGSVGElementUnsuspendRedraw: 856 case SVGSVGElementUnsuspendRedraw:
857 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)."; 857 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).";
858 858
859 case SVGSVGElementUnsuspendRedrawAll: 859 case SVGSVGElementUnsuspendRedrawAll:
860 return "'SVGSVGElement.unsuspendRedrawAll()' is deprecated, please do no t use it. It is a no-op, as per SVG2 (https://svgwg.org/svg2-draft/struct.html#_ _svg__SVGSVGElement__unsuspendRedrawAll)."; 860 return "'SVGSVGElement.unsuspendRedrawAll()' is deprecated, please do no t use it. It is a no-op, as per SVG2 (https://svgwg.org/svg2-draft/struct.html#_ _svg__SVGSVGElement__unsuspendRedrawAll).";
861 861
862 case ServiceWorkerClientPostMessage:
863 return "'Client.postMessage()' is an experimental API and may change. Se e https://github.com/slightlyoff/ServiceWorker/issues/609.";
864
862 // Features that aren't deprecated don't have a deprecation message. 865 // Features that aren't deprecated don't have a deprecation message.
863 default: 866 default:
864 return String(); 867 return String();
865 } 868 }
866 } 869 }
867 870
868 void UseCounter::count(CSSParserContext context, CSSPropertyID feature) 871 void UseCounter::count(CSSParserContext context, CSSPropertyID feature)
869 { 872 {
870 ASSERT(feature >= firstCSSProperty); 873 ASSERT(feature >= firstCSSProperty);
871 ASSERT(feature <= lastCSSProperty); 874 ASSERT(feature <= lastCSSProperty);
(...skipping 27 matching lines...) Expand all
899 UseCounter* UseCounter::getFrom(const StyleSheetContents* sheetContents) 902 UseCounter* UseCounter::getFrom(const StyleSheetContents* sheetContents)
900 { 903 {
901 // FIXME: We may want to handle stylesheets that have multiple owners 904 // FIXME: We may want to handle stylesheets that have multiple owners
902 // http://crbug.com/242125 905 // http://crbug.com/242125
903 if (sheetContents && sheetContents->hasSingleOwnerNode()) 906 if (sheetContents && sheetContents->hasSingleOwnerNode())
904 return getFrom(sheetContents->singleOwnerDocument()); 907 return getFrom(sheetContents->singleOwnerDocument());
905 return 0; 908 return 0;
906 } 909 }
907 910
908 } // namespace blink 911 } // namespace blink
OLDNEW
« no previous file with comments | « Source/core/frame/UseCounter.h ('k') | Source/modules/serviceworkers/Client.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698