| 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 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 112 | 112 |
| 113 bool WebRuntimeFeatures::isSocketsEnabled() | 113 bool WebRuntimeFeatures::isSocketsEnabled() |
| 114 { | 114 { |
| 115 #if ENABLE(WEB_SOCKETS) | 115 #if ENABLE(WEB_SOCKETS) |
| 116 return WebSocket::isAvailable(); | 116 return WebSocket::isAvailable(); |
| 117 #else | 117 #else |
| 118 return false; | 118 return false; |
| 119 #endif | 119 #endif |
| 120 } | 120 } |
| 121 | 121 |
| 122 void WebRuntimeFeatures::enableNotifications(bool enable) |
| 123 { |
| 124 #if ENABLE(NOTIFICATIONS) |
| 125 RuntimeEnabledFeatures::setNotificationsEnabled(enable); |
| 126 #endif |
| 127 } |
| 128 |
| 129 bool WebRuntimeFeatures::isNotificationsEnabled() |
| 130 { |
| 131 #if ENABLE(NOTIFICATIONS) |
| 132 return RuntimeEnabledFeatures::notificationsEnabled(); |
| 133 #else |
| 134 return false; |
| 135 #endif |
| 136 } |
| 137 |
| 122 } // namespace WebKit | 138 } // namespace WebKit |
| OLD | NEW |