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

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

Issue 1536733002: Deprecate initTouchEvent (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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
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 922 matching lines...) Expand 10 before | Expand all | Expand 10 after
933 933
934 case V8SVGElement_OffsetHeight_AttributeGetter: 934 case V8SVGElement_OffsetHeight_AttributeGetter:
935 return "'SVGElement.offsetHeight' is deprecated and will be removed in M 50, around April 2016. See https://www.chromestatus.com/features/572491246757478 4 for more details."; 935 return "'SVGElement.offsetHeight' is deprecated and will be removed in M 50, around April 2016. See https://www.chromestatus.com/features/572491246757478 4 for more details.";
936 936
937 case MediaStreamTrackGetSources: 937 case MediaStreamTrackGetSources:
938 return "MediaStreamTrack.getSources is deprecated. See https://www.chrom estatus.com/feature/4765305641369600 for more details."; 938 return "MediaStreamTrack.getSources is deprecated. See https://www.chrom estatus.com/feature/4765305641369600 for more details.";
939 939
940 case CSSXGetComputedStyleQueries: 940 case CSSXGetComputedStyleQueries:
941 return "'getComputedStyle(e).cssXx' (except .cssFloat) is deprecated and will be removed in M50, around April 2016. Please use 'getComputedStyle(e).xx' instead."; 941 return "'getComputedStyle(e).cssXx' (except .cssFloat) is deprecated and will be removed in M50, around April 2016. Please use 'getComputedStyle(e).xx' instead.";
942 942
943 case V8TouchEvent_InitTouchEvent_Method:
944 return "'TouchEvent.initTouchEvent' is deprecated and will be removed in M53, around September 2016. Please use TouchEvent constructor instead. See http s://www.chromestatus.com/features/5730982598541312 for more details.";
Rick Byers 2015/12/18 17:16:10 nit: s/use TouchEvent constructor/use the TouchEve
chongz 2015/12/21 22:54:34 Done.
945
943 // Features that aren't deprecated don't have a deprecation message. 946 // Features that aren't deprecated don't have a deprecation message.
944 default: 947 default:
945 return String(); 948 return String();
946 } 949 }
947 } 950 }
948 951
949 void UseCounter::count(CSSParserMode cssParserMode, CSSPropertyID feature) 952 void UseCounter::count(CSSParserMode cssParserMode, CSSPropertyID feature)
950 { 953 {
951 ASSERT(feature >= firstCSSProperty); 954 ASSERT(feature >= firstCSSProperty);
952 ASSERT(feature <= lastUnresolvedCSSProperty); 955 ASSERT(feature <= lastUnresolvedCSSProperty);
(...skipping 27 matching lines...) Expand all
980 UseCounter* UseCounter::getFrom(const StyleSheetContents* sheetContents) 983 UseCounter* UseCounter::getFrom(const StyleSheetContents* sheetContents)
981 { 984 {
982 // FIXME: We may want to handle stylesheets that have multiple owners 985 // FIXME: We may want to handle stylesheets that have multiple owners
983 // https://crbug.com/242125 986 // https://crbug.com/242125
984 if (sheetContents && sheetContents->hasSingleOwnerNode()) 987 if (sheetContents && sheetContents->hasSingleOwnerNode())
985 return getFrom(sheetContents->singleOwnerDocument()); 988 return getFrom(sheetContents->singleOwnerDocument());
986 return 0; 989 return 0;
987 } 990 }
988 991
989 } // namespace blink 992 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698