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

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

Issue 1194763002: Deprecate MediaStream label, ended attributes and stop() method (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 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 /* 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 920 matching lines...) Expand 10 before | Expand all | Expand 10 after
931 case PrefixedMouseEventMovementY: 931 case PrefixedMouseEventMovementY:
932 return replacedBy("webkitMovementY", "movementY"); 932 return replacedBy("webkitMovementY", "movementY");
933 933
934 case VideoFullscreenAllowedExemption: 934 case VideoFullscreenAllowedExemption:
935 return "Entering fullscreen in an <iframe> with no allowfullscreen attri bute is deprecated and will stop working in M46, around October 2015. Please use the allowfullscreen attribute."; 935 return "Entering fullscreen in an <iframe> with no allowfullscreen attri bute is deprecated and will stop working in M46, around October 2015. Please use the allowfullscreen attribute.";
936 936
937 case SVGSMILElementInDocument: 937 case SVGSMILElementInDocument:
938 case SVGSMILAnimationInImageRegardlessOfCache: 938 case SVGSMILAnimationInImageRegardlessOfCache:
939 return "SVG's SMIL animations (<animate>, <set>, etc.) are deprecated an d will be removed. Please use CSS animations or Web animations instead."; 939 return "SVG's SMIL animations (<animate>, <set>, etc.) are deprecated an d will be removed. Please use CSS animations or Web animations instead.";
940 940
941 case MediaStreamLabel:
942 return "'MediaStream.label' is deprecated. See http://w3c.github.io/medi acapture-main/getusermedia.html#idl-def-MediaStream for more details.";
philipj_slow 2015/06/24 10:18:17 Please add a blank line after every return like ab
shiva.jm 2015/06/24 12:06:42 Done.
943 case MediaStreamStop:
944 return "'MediaStream.stop()' is deprecated. Please use MediaStream.activ e attribute instead.";
945 case MediaStreamEnded:
946 return "'MediaStream.ended' is deprecated. Please use MediaStream.active attribute instead.";
947
941 // Features that aren't deprecated don't have a deprecation message. 948 // Features that aren't deprecated don't have a deprecation message.
942 default: 949 default:
943 return String(); 950 return String();
944 } 951 }
945 } 952 }
946 953
947 void UseCounter::count(CSSParserContext context, CSSPropertyID feature) 954 void UseCounter::count(CSSParserContext context, CSSPropertyID feature)
948 { 955 {
949 ASSERT(feature >= firstCSSProperty); 956 ASSERT(feature >= firstCSSProperty);
950 ASSERT(feature <= lastUnresolvedCSSProperty); 957 ASSERT(feature <= lastUnresolvedCSSProperty);
(...skipping 27 matching lines...) Expand all
978 UseCounter* UseCounter::getFrom(const StyleSheetContents* sheetContents) 985 UseCounter* UseCounter::getFrom(const StyleSheetContents* sheetContents)
979 { 986 {
980 // FIXME: We may want to handle stylesheets that have multiple owners 987 // FIXME: We may want to handle stylesheets that have multiple owners
981 // http://crbug.com/242125 988 // http://crbug.com/242125
982 if (sheetContents && sheetContents->hasSingleOwnerNode()) 989 if (sheetContents && sheetContents->hasSingleOwnerNode())
983 return getFrom(sheetContents->singleOwnerDocument()); 990 return getFrom(sheetContents->singleOwnerDocument());
984 return 0; 991 return 0;
985 } 992 }
986 993
987 } // namespace blink 994 } // namespace blink
OLDNEW
« no previous file with comments | « LayoutTests/fast/mediastream/MediaStreamConstructor-expected.txt ('k') | Source/modules/mediastream/MediaStream.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698