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 891 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
902 | 902 |
903 case DeviceMotionInsecureOrigin: | 903 case DeviceMotionInsecureOrigin: |
904 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 https://goo.gl/rStTGz for more details."; | 904 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 https://goo.gl/rStTGz for more details."; |
905 | 905 |
906 case DeviceOrientationInsecureOrigin: | 906 case DeviceOrientationInsecureOrigin: |
907 return "The 'deviceorientation' event will be deprecated over insecure o
rigins in the future. You should consider switching your application to a secure
origin, such as HTTPS. See https://goo.gl/rStTGz for more details."; | 907 return "The 'deviceorientation' event will be deprecated over insecure o
rigins in the future. You should consider switching your application to a secure
origin, such as HTTPS. See https://goo.gl/rStTGz for more details."; |
908 | 908 |
909 case FullscreenInsecureOrigin: | 909 case FullscreenInsecureOrigin: |
910 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 https://goo.gl/rStTGz for more details."; | 910 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 https://goo.gl/rStTGz for more details."; |
911 | 911 |
| 912 case EncryptedMediaInsecureOrigin: |
| 913 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."; |
| 914 |
912 case PushSubscriptionId: | 915 case PushSubscriptionId: |
913 return "'PushSubscription.subscriptionId' is deprecated and is now inclu
ded in 'PushSubscription.endpoint'. It will be removed in Chrome 45, around Augu
st 2015."; | 916 return "'PushSubscription.subscriptionId' is deprecated and is now inclu
ded in 'PushSubscription.endpoint'. It will be removed in Chrome 45, around Augu
st 2015."; |
914 | 917 |
915 case DocumentGetCSSCanvasContext: | 918 case DocumentGetCSSCanvasContext: |
916 return "The -webkit-canvas CSS feature is deprecated. Please use a posit
ioned <canvas> element instead."; | 919 return "The -webkit-canvas CSS feature is deprecated. Please use a posit
ioned <canvas> element instead."; |
917 | 920 |
918 // Features that aren't deprecated don't have a deprecation message. | 921 // Features that aren't deprecated don't have a deprecation message. |
919 default: | 922 default: |
920 return String(); | 923 return String(); |
921 } | 924 } |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
955 UseCounter* UseCounter::getFrom(const StyleSheetContents* sheetContents) | 958 UseCounter* UseCounter::getFrom(const StyleSheetContents* sheetContents) |
956 { | 959 { |
957 // FIXME: We may want to handle stylesheets that have multiple owners | 960 // FIXME: We may want to handle stylesheets that have multiple owners |
958 // http://crbug.com/242125 | 961 // http://crbug.com/242125 |
959 if (sheetContents && sheetContents->hasSingleOwnerNode()) | 962 if (sheetContents && sheetContents->hasSingleOwnerNode()) |
960 return getFrom(sheetContents->singleOwnerDocument()); | 963 return getFrom(sheetContents->singleOwnerDocument()); |
961 return 0; | 964 return 0; |
962 } | 965 } |
963 | 966 |
964 } // namespace blink | 967 } // namespace blink |
OLD | NEW |