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 23 matching lines...) Expand all Loading... |
34 #include "../../../Platform/chromium/public/WebCommon.h" | 34 #include "../../../Platform/chromium/public/WebCommon.h" |
35 | 35 |
36 namespace WebKit { | 36 namespace WebKit { |
37 | 37 |
38 // This class is used to enable runtime features of WebKit. It is unspecified | 38 // This class is used to enable runtime features of WebKit. It is unspecified |
39 // whether a feature is enabled by default. In the future, a feature may be | 39 // whether a feature is enabled by default. In the future, a feature may be |
40 // promoted from disabled by default to enabled by default once it reaches a | 40 // promoted from disabled by default to enabled by default once it reaches a |
41 // certain level of maturity. | 41 // certain level of maturity. |
42 class WebRuntimeFeatures { | 42 class WebRuntimeFeatures { |
43 public: | 43 public: |
| 44 WEBKIT_EXPORT static void enableStableFeatures(bool); |
| 45 WEBKIT_EXPORT static void enableExperimentalFeatures(bool); |
| 46 WEBKIT_EXPORT static void enableTestOnlyFeatures(bool); |
| 47 |
44 WEBKIT_EXPORT static void enableDatabase(bool); | 48 WEBKIT_EXPORT static void enableDatabase(bool); |
45 WEBKIT_EXPORT static bool isDatabaseEnabled(); | 49 WEBKIT_EXPORT static bool isDatabaseEnabled(); |
46 | 50 |
47 WEBKIT_EXPORT static void enableLocalStorage(bool); | 51 WEBKIT_EXPORT static void enableLocalStorage(bool); |
48 WEBKIT_EXPORT static bool isLocalStorageEnabled(); | 52 WEBKIT_EXPORT static bool isLocalStorageEnabled(); |
49 | 53 |
50 WEBKIT_EXPORT static void enableSessionStorage(bool); | 54 WEBKIT_EXPORT static void enableSessionStorage(bool); |
51 WEBKIT_EXPORT static bool isSessionStorageEnabled(); | 55 WEBKIT_EXPORT static bool isSessionStorageEnabled(); |
52 | 56 |
53 WEBKIT_EXPORT static void enableMediaPlayer(bool); | 57 WEBKIT_EXPORT static void enableMediaPlayer(bool); |
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
182 WEBKIT_EXPORT static void enableSpeechSynthesis(bool); | 186 WEBKIT_EXPORT static void enableSpeechSynthesis(bool); |
183 WEBKIT_EXPORT static bool isSpeechSynthesisEnabled(); | 187 WEBKIT_EXPORT static bool isSpeechSynthesisEnabled(); |
184 | 188 |
185 private: | 189 private: |
186 WebRuntimeFeatures(); | 190 WebRuntimeFeatures(); |
187 }; | 191 }; |
188 | 192 |
189 } // namespace WebKit | 193 } // namespace WebKit |
190 | 194 |
191 #endif | 195 #endif |
OLD | NEW |