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 205 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
216 void WebRuntimeFeatures::enableFileSystem(bool enable) | 216 void WebRuntimeFeatures::enableFileSystem(bool enable) |
217 { | 217 { |
218 RuntimeEnabledFeatures::setFileSystemEnabled(enable); | 218 RuntimeEnabledFeatures::setFileSystemEnabled(enable); |
219 } | 219 } |
220 | 220 |
221 bool WebRuntimeFeatures::isFileSystemEnabled() | 221 bool WebRuntimeFeatures::isFileSystemEnabled() |
222 { | 222 { |
223 return RuntimeEnabledFeatures::fileSystemEnabled(); | 223 return RuntimeEnabledFeatures::fileSystemEnabled(); |
224 } | 224 } |
225 | 225 |
226 void WebRuntimeFeatures::enableJavaScriptI18NAPI(bool enable) | |
227 { | |
228 #if ENABLE(JAVASCRIPT_I18N_API) | |
229 RuntimeEnabledFeatures::setJavaScriptI18NAPIEnabled(enable); | |
230 #endif | |
231 } | |
232 | |
233 bool WebRuntimeFeatures::isJavaScriptI18NAPIEnabled() | |
234 { | |
235 #if ENABLE(JAVASCRIPT_I18N_API) | |
236 return RuntimeEnabledFeatures::javaScriptI18NAPIEnabled(); | |
237 #else | |
238 return false; | |
239 #endif | |
240 } | |
241 | |
242 void WebRuntimeFeatures::enableQuota(bool enable) | 226 void WebRuntimeFeatures::enableQuota(bool enable) |
243 { | 227 { |
244 RuntimeEnabledFeatures::setQuotaEnabled(enable); | 228 RuntimeEnabledFeatures::setQuotaEnabled(enable); |
245 } | 229 } |
246 | 230 |
247 bool WebRuntimeFeatures::isQuotaEnabled() | 231 bool WebRuntimeFeatures::isQuotaEnabled() |
248 { | 232 { |
249 return RuntimeEnabledFeatures::quotaEnabled(); | 233 return RuntimeEnabledFeatures::quotaEnabled(); |
250 } | 234 } |
251 | 235 |
(...skipping 308 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
560 { | 544 { |
561 return RuntimeEnabledFeatures::setWebMIDIEnabled(enable); | 545 return RuntimeEnabledFeatures::setWebMIDIEnabled(enable); |
562 } | 546 } |
563 | 547 |
564 bool WebRuntimeFeatures::isWebMIDIEnabled() | 548 bool WebRuntimeFeatures::isWebMIDIEnabled() |
565 { | 549 { |
566 return RuntimeEnabledFeatures::webMIDIEnabled(); | 550 return RuntimeEnabledFeatures::webMIDIEnabled(); |
567 } | 551 } |
568 | 552 |
569 } // namespace WebKit | 553 } // namespace WebKit |
OLD | NEW |