| 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 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 51 nativeValidationMessageEnabled = enable; | 51 nativeValidationMessageEnabled = enable; |
| 52 } | 52 } |
| 53 | 53 |
| 54 bool WebRuntimeFeatures::isNativeValidationMessageEnabled() | 54 bool WebRuntimeFeatures::isNativeValidationMessageEnabled() |
| 55 { | 55 { |
| 56 return nativeValidationMessageEnabled; | 56 return nativeValidationMessageEnabled; |
| 57 } | 57 } |
| 58 | 58 |
| 59 void WebRuntimeFeatures::enableDatabase(bool enable) | 59 void WebRuntimeFeatures::enableDatabase(bool enable) |
| 60 { | 60 { |
| 61 #if ENABLE(SQL_DATABASE) | |
| 62 DatabaseManager::manager().setIsAvailable(enable); | 61 DatabaseManager::manager().setIsAvailable(enable); |
| 63 #endif | |
| 64 } | 62 } |
| 65 | 63 |
| 66 bool WebRuntimeFeatures::isDatabaseEnabled() | 64 bool WebRuntimeFeatures::isDatabaseEnabled() |
| 67 { | 65 { |
| 68 #if ENABLE(SQL_DATABASE) | |
| 69 return DatabaseManager::manager().isAvailable(); | 66 return DatabaseManager::manager().isAvailable(); |
| 70 #else | |
| 71 return false; | |
| 72 #endif | |
| 73 } | 67 } |
| 74 | 68 |
| 75 // FIXME: Remove the ability to enable this feature at runtime. | 69 // FIXME: Remove the ability to enable this feature at runtime. |
| 76 void WebRuntimeFeatures::enableLocalStorage(bool enable) | 70 void WebRuntimeFeatures::enableLocalStorage(bool enable) |
| 77 { | 71 { |
| 78 RuntimeEnabledFeatures::setLocalStorageEnabled(enable); | 72 RuntimeEnabledFeatures::setLocalStorageEnabled(enable); |
| 79 } | 73 } |
| 80 | 74 |
| 81 // FIXME: Remove the ability to enable this feature at runtime. | 75 // FIXME: Remove the ability to enable this feature at runtime. |
| 82 bool WebRuntimeFeatures::isLocalStorageEnabled() | 76 bool WebRuntimeFeatures::isLocalStorageEnabled() |
| (...skipping 609 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 692 bool WebRuntimeFeatures::isRequestAutocompleteEnabled() | 686 bool WebRuntimeFeatures::isRequestAutocompleteEnabled() |
| 693 { | 687 { |
| 694 #if ENABLE(REQUEST_AUTOCOMPLETE) | 688 #if ENABLE(REQUEST_AUTOCOMPLETE) |
| 695 return RuntimeEnabledFeatures::requestAutocompleteEnabled(); | 689 return RuntimeEnabledFeatures::requestAutocompleteEnabled(); |
| 696 #else | 690 #else |
| 697 return false; | 691 return false; |
| 698 #endif | 692 #endif |
| 699 } | 693 } |
| 700 | 694 |
| 701 } // namespace WebKit | 695 } // namespace WebKit |
| OLD | NEW |