Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 881 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 892 case ServiceWorkerClientPostMessage: | 892 case ServiceWorkerClientPostMessage: |
| 893 return "'Client.postMessage()' is an experimental API and may change. Se e https://github.com/slightlyoff/ServiceWorker/issues/609."; | 893 return "'Client.postMessage()' is an experimental API and may change. Se e https://github.com/slightlyoff/ServiceWorker/issues/609."; |
| 894 | 894 |
| 895 case AttrChildAccess: | 895 case AttrChildAccess: |
| 896 case AttrChildChange: | 896 case AttrChildChange: |
| 897 return "Attr child nodes are deprecated and will be removed in M45, arou nd August 2015. Please use 'Attr.value' instead."; | 897 return "Attr child nodes are deprecated and will be removed in M45, arou nd August 2015. Please use 'Attr.value' instead."; |
| 898 | 898 |
| 899 case CSSKeyframesRuleInsertRule: | 899 case CSSKeyframesRuleInsertRule: |
| 900 return "'CSSKeyframesRule.insertRule()' is deprecated and will be remove d in M45, around August 2015. Please use 'CSSKeyframesRule.appendRule()' instead ."; | 900 return "'CSSKeyframesRule.insertRule()' is deprecated and will be remove d in M45, around August 2015. Please use 'CSSKeyframesRule.appendRule()' instead ."; |
| 901 | 901 |
| 902 // Powerful features on insecure origins (https://goo.gl/rStTGz) | |
| 903 case GeolocationInsecureOrigin: | |
| 904 return "Geolocation via getCurrentPosition() and watchPosition() will be deprecated over insecure origins in the future. You should consider switching y our application to a secure origin, such as HTTPS. See http://goo.gl/rStTGz for more details."; | |
|
Michael van Ouwerkerk
2015/04/30 13:15:21
nit: might as well use https for all the goo.gl li
jww
2015/04/30 17:28:45
For sure. At least I got it right in the comment :
| |
| 905 | |
| 906 case GetUserMediaInsecureOrigin: | |
| 907 return "getUserMedia() will be deprecated over insecure origins in the f uture. You should consider switching your application to a secure origin, such a s HTTPS. See http://goo.gl/rStTGz for more details."; | |
| 908 | |
| 909 case DeviceMotionInsecureOrigin: | |
| 910 return "The 'devicemotion' event will be deprecated over insecure origin s in the future. You should consider switching your application to a secure orig in, such as HTTPS. See http://goo.gl/rStTGz for more details."; | |
| 911 | |
| 912 case FullscreenInsecureOrigin: | |
| 913 return "requestFullscreen() will be deprecated over insecure origins in the future. You should consider switching your application to a secure origin, s uch as HTTPS. See http://goo.gl/rStTGz for more details."; | |
| 914 | |
| 902 // Features that aren't deprecated don't have a deprecation message. | 915 // Features that aren't deprecated don't have a deprecation message. |
| 903 default: | 916 default: |
| 904 return String(); | 917 return String(); |
| 905 } | 918 } |
| 906 } | 919 } |
| 907 | 920 |
| 908 void UseCounter::count(CSSParserContext context, CSSPropertyID feature) | 921 void UseCounter::count(CSSParserContext context, CSSPropertyID feature) |
| 909 { | 922 { |
| 910 ASSERT(feature >= firstCSSProperty); | 923 ASSERT(feature >= firstCSSProperty); |
| 911 ASSERT(feature <= lastUnresolvedCSSProperty); | 924 ASSERT(feature <= lastUnresolvedCSSProperty); |
| (...skipping 27 matching lines...) Expand all Loading... | |
| 939 UseCounter* UseCounter::getFrom(const StyleSheetContents* sheetContents) | 952 UseCounter* UseCounter::getFrom(const StyleSheetContents* sheetContents) |
| 940 { | 953 { |
| 941 // FIXME: We may want to handle stylesheets that have multiple owners | 954 // FIXME: We may want to handle stylesheets that have multiple owners |
| 942 // http://crbug.com/242125 | 955 // http://crbug.com/242125 |
| 943 if (sheetContents && sheetContents->hasSingleOwnerNode()) | 956 if (sheetContents && sheetContents->hasSingleOwnerNode()) |
| 944 return getFrom(sheetContents->singleOwnerDocument()); | 957 return getFrom(sheetContents->singleOwnerDocument()); |
| 945 return 0; | 958 return 0; |
| 946 } | 959 } |
| 947 | 960 |
| 948 } // namespace blink | 961 } // namespace blink |
| OLD | NEW |