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 885 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
896 // Powerful features on insecure origins (https://goo.gl/rStTGz) | 896 // Powerful features on insecure origins (https://goo.gl/rStTGz) |
897 case GeolocationInsecureOrigin: | 897 case GeolocationInsecureOrigin: |
898 return "getCurrentPosition() and watchPosition() are deprecated on insec
ure origins, and support will be removed in the future. You should consider swit
ching your application to a secure origin, such as HTTPS. See https://goo.gl/rSt
TGz for more details."; | 898 return "getCurrentPosition() and watchPosition() are deprecated on insec
ure origins, and support will be removed in the future. You should consider swit
ching your application to a secure origin, such as HTTPS. See https://goo.gl/rSt
TGz for more details."; |
899 | 899 |
900 case GetUserMediaInsecureOrigin: | 900 case GetUserMediaInsecureOrigin: |
901 return "getUserMedia() is deprecated on insecure origins, and support wi
ll be removed in the future. You should consider switching your application to a
secure origin, such as HTTPS. See https://goo.gl/rStTGz for more details."; | 901 return "getUserMedia() is deprecated on insecure origins, and support wi
ll be removed in the future. You should consider switching your application to a
secure origin, such as HTTPS. See https://goo.gl/rStTGz for more details."; |
902 | 902 |
903 case FullscreenInsecureOrigin: | 903 case FullscreenInsecureOrigin: |
904 return "requestFullscreen() is deprecated on insecure origins, and suppo
rt will be removed in the future. You should consider switching your application
to a secure origin, such as HTTPS. See https://goo.gl/rStTGz for more details."
; | 904 return "requestFullscreen() is deprecated on insecure origins, and suppo
rt will be removed in the future. You should consider switching your application
to a secure origin, such as HTTPS. See https://goo.gl/rStTGz for more details."
; |
905 | 905 |
| 906 case EncryptedMediaInsecureOrigin: |
| 907 return "requestMediaKeySystemAccess() is deprecated on insecure origins
in the specification. Support will be removed in the future. You should consider
switching your application to a secure origin, such as HTTPS. See https://goo.g
l/rStTGz for more details."; |
| 908 |
906 case PushSubscriptionId: | 909 case PushSubscriptionId: |
907 return "'PushSubscription.subscriptionId' is deprecated and is now inclu
ded in 'PushSubscription.endpoint'. It will be removed in Chrome 45, around Augu
st 2015."; | 910 return "'PushSubscription.subscriptionId' is deprecated and is now inclu
ded in 'PushSubscription.endpoint'. It will be removed in Chrome 45, around Augu
st 2015."; |
908 | 911 |
909 case DocumentGetCSSCanvasContext: | 912 case DocumentGetCSSCanvasContext: |
910 return "The -webkit-canvas CSS feature is deprecated. Please use a posit
ioned <canvas> element instead."; | 913 return "The -webkit-canvas CSS feature is deprecated. Please use a posit
ioned <canvas> element instead."; |
911 | 914 |
912 // Features that aren't deprecated don't have a deprecation message. | 915 // Features that aren't deprecated don't have a deprecation message. |
913 default: | 916 default: |
914 return String(); | 917 return String(); |
915 } | 918 } |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
949 UseCounter* UseCounter::getFrom(const StyleSheetContents* sheetContents) | 952 UseCounter* UseCounter::getFrom(const StyleSheetContents* sheetContents) |
950 { | 953 { |
951 // FIXME: We may want to handle stylesheets that have multiple owners | 954 // FIXME: We may want to handle stylesheets that have multiple owners |
952 // http://crbug.com/242125 | 955 // http://crbug.com/242125 |
953 if (sheetContents && sheetContents->hasSingleOwnerNode()) | 956 if (sheetContents && sheetContents->hasSingleOwnerNode()) |
954 return getFrom(sheetContents->singleOwnerDocument()); | 957 return getFrom(sheetContents->singleOwnerDocument()); |
955 return 0; | 958 return 0; |
956 } | 959 } |
957 | 960 |
958 } // namespace blink | 961 } // namespace blink |
OLD | NEW |