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

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

Issue 1159793005: Deprecated webkit-prefixed properties of the Touch interface. (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
« no previous file with comments | « Source/core/dom/Touch.idl ('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 884 matching lines...) Expand 10 before | Expand all | Expand 10 after
895 895
896 case DocumentGetCSSCanvasContext: 896 case DocumentGetCSSCanvasContext:
897 return "The -webkit-canvas CSS feature is deprecated. Please use a posit ioned <canvas> element instead."; 897 return "The -webkit-canvas CSS feature is deprecated. Please use a posit ioned <canvas> element instead.";
898 898
899 case ElementCreateShadowRootMultiple: 899 case ElementCreateShadowRootMultiple:
900 return "Calling Element.createShadowRoot() for an element which already hosts a shadow root is deprecated. See https://www.chromestatus.com/features/466 8884095336448 for more details."; 900 return "Calling Element.createShadowRoot() for an element which already hosts a shadow root is deprecated. See https://www.chromestatus.com/features/466 8884095336448 for more details.";
901 901
902 case ElementCreateShadowRootMultipleWithUserAgentShadowRoot: 902 case ElementCreateShadowRootMultipleWithUserAgentShadowRoot:
903 return "Calling Element.createShadowRoot() for an element which already hosts a user-agent shadow root is deprecated. See https://www.chromestatus.com/f eatures/4668884095336448 for more details."; 903 return "Calling Element.createShadowRoot() for an element which already hosts a user-agent shadow root is deprecated. See https://www.chromestatus.com/f eatures/4668884095336448 for more details.";
904 904
905 case PrefixedTouchRadiusX:
906 return "'Touch.webkitRadiusX' is deprecated and will be removed in M47, around November 2015. Please use 'Touch.radiusX' instead.";
907
908 case PrefixedTouchRadiusY:
909 return "'Touch.webkitRadiusY' is deprecated and will be removed in M47, around November 2015. Please use 'Touch.radiusY' instead.";
910
911 case PrefixedTouchRotationAngle:
912 return "'Touch.webkitRotationAngle' is deprecated and will be removed in M47, around November 2015. Please use 'Touch.rotationAngle' instead.";
913
914 case PrefixedTouchForce:
915 return "'Touch.webkitForce' is deprecated and will be removed in M47, ar ound November 2015. Please use 'Touch.force' instead.";
916
905 // Features that aren't deprecated don't have a deprecation message. 917 // Features that aren't deprecated don't have a deprecation message.
906 default: 918 default:
907 return String(); 919 return String();
908 } 920 }
909 } 921 }
910 922
911 void UseCounter::count(CSSParserContext context, CSSPropertyID feature) 923 void UseCounter::count(CSSParserContext context, CSSPropertyID feature)
912 { 924 {
913 ASSERT(feature >= firstCSSProperty); 925 ASSERT(feature >= firstCSSProperty);
914 ASSERT(feature <= lastUnresolvedCSSProperty); 926 ASSERT(feature <= lastUnresolvedCSSProperty);
(...skipping 27 matching lines...) Expand all
942 UseCounter* UseCounter::getFrom(const StyleSheetContents* sheetContents) 954 UseCounter* UseCounter::getFrom(const StyleSheetContents* sheetContents)
943 { 955 {
944 // FIXME: We may want to handle stylesheets that have multiple owners 956 // FIXME: We may want to handle stylesheets that have multiple owners
945 // http://crbug.com/242125 957 // http://crbug.com/242125
946 if (sheetContents && sheetContents->hasSingleOwnerNode()) 958 if (sheetContents && sheetContents->hasSingleOwnerNode())
947 return getFrom(sheetContents->singleOwnerDocument()); 959 return getFrom(sheetContents->singleOwnerDocument());
948 return 0; 960 return 0;
949 } 961 }
950 962
951 } // namespace blink 963 } // namespace blink
OLDNEW
« no previous file with comments | « Source/core/dom/Touch.idl ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698