OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2009 Google Inc. All rights reserved. | 2 * Copyright (C) 2009 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 are | 5 * modification, are permitted provided that the following conditions are |
6 * met: | 6 * met: |
7 * | 7 * |
8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
69 bool RuntimeEnabledFeatures::isGamepadEnabled = false; | 69 bool RuntimeEnabledFeatures::isGamepadEnabled = false; |
70 #endif | 70 #endif |
71 | 71 |
72 bool RuntimeEnabledFeatures::isFileSystemEnabled = false; | 72 bool RuntimeEnabledFeatures::isFileSystemEnabled = false; |
73 | 73 |
74 bool RuntimeEnabledFeatures::fileSystemEnabled() | 74 bool RuntimeEnabledFeatures::fileSystemEnabled() |
75 { | 75 { |
76 return isFileSystemEnabled && AsyncFileSystem::isAvailable(); | 76 return isFileSystemEnabled && AsyncFileSystem::isAvailable(); |
77 } | 77 } |
78 | 78 |
79 #if ENABLE(JAVASCRIPT_I18N_API) | |
80 bool RuntimeEnabledFeatures::isJavaScriptI18NAPIEnabled = false; | |
81 | |
82 bool RuntimeEnabledFeatures::javaScriptI18NAPIEnabled() | |
83 { | |
84 return isJavaScriptI18NAPIEnabled; | |
85 } | |
86 #endif | |
87 | |
88 #if ENABLE(VIDEO) | 79 #if ENABLE(VIDEO) |
89 | 80 |
90 bool RuntimeEnabledFeatures::audioEnabled() | 81 bool RuntimeEnabledFeatures::audioEnabled() |
91 { | 82 { |
92 return MediaPlayer::isAvailable(); | 83 return MediaPlayer::isAvailable(); |
93 } | 84 } |
94 | 85 |
95 bool RuntimeEnabledFeatures::htmlMediaElementEnabled() | 86 bool RuntimeEnabledFeatures::htmlMediaElementEnabled() |
96 { | 87 { |
97 return MediaPlayer::isAvailable(); | 88 return MediaPlayer::isAvailable(); |
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
184 | 175 |
185 bool RuntimeEnabledFeatures::areExperimentalContentSecurityPolicyFeaturesEnabled
= false; | 176 bool RuntimeEnabledFeatures::areExperimentalContentSecurityPolicyFeaturesEnabled
= false; |
186 | 177 |
187 bool RuntimeEnabledFeatures::areSeamlessIFramesEnabled = false; | 178 bool RuntimeEnabledFeatures::areSeamlessIFramesEnabled = false; |
188 | 179 |
189 bool RuntimeEnabledFeatures::isFontLoadEventsEnabled = false; | 180 bool RuntimeEnabledFeatures::isFontLoadEventsEnabled = false; |
190 | 181 |
191 bool RuntimeEnabledFeatures::isWebPInAcceptHeaderEnabled = false; | 182 bool RuntimeEnabledFeatures::isWebPInAcceptHeaderEnabled = false; |
192 | 183 |
193 } // namespace WebCore | 184 } // namespace WebCore |
OLD | NEW |