WebRuntimeFeatures.h [plain text]
#ifndef WebRuntimeFeatures_h
#define WebRuntimeFeatures_h
#define HAS_WEBAUDIO_RUNTIMEFEATURES 1
#include "WebCommon.h"
namespace WebKit {
class WebRuntimeFeatures {
public:
WEBKIT_API static void enableDatabase(bool);
WEBKIT_API static bool isDatabaseEnabled();
WEBKIT_API static void enableLocalStorage(bool);
WEBKIT_API static bool isLocalStorageEnabled();
WEBKIT_API static void enableSessionStorage(bool);
WEBKIT_API static bool isSessionStorageEnabled();
WEBKIT_API static void enableMediaPlayer(bool);
WEBKIT_API static bool isMediaPlayerEnabled();
WEBKIT_API static void enableSockets(bool);
WEBKIT_API static bool isSocketsEnabled();
WEBKIT_API static void enableNotifications(bool);
WEBKIT_API static bool isNotificationsEnabled();
WEBKIT_API static void enableApplicationCache(bool);
WEBKIT_API static bool isApplicationCacheEnabled();
WEBKIT_API static void enableDataTransferItems(bool);
WEBKIT_API static bool isDataTransferItemsEnabled();
WEBKIT_API static void enableGeolocation(bool);
WEBKIT_API static bool isGeolocationEnabled();
WEBKIT_API static void enableIndexedDatabase(bool);
WEBKIT_API static bool isIndexedDatabaseEnabled();
WEBKIT_API static void enableWebAudio(bool);
WEBKIT_API static bool isWebAudioEnabled();
WEBKIT_API static void enablePushState(bool);
WEBKIT_API static bool isPushStateEnabled(bool);
WEBKIT_API static void enableTouch(bool);
WEBKIT_API static bool isTouchEnabled();
WEBKIT_API static void enableDeviceMotion(bool);
WEBKIT_API static bool isDeviceMotionEnabled();
WEBKIT_API static void enableDeviceOrientation(bool);
WEBKIT_API static bool isDeviceOrientationEnabled();
WEBKIT_API static void enableSpeechInput(bool);
WEBKIT_API static bool isSpeechInputEnabled();
WEBKIT_API static void enableXHRResponseBlob(bool);
WEBKIT_API static bool isXHRResponseBlobEnabled();
WEBKIT_API static void enableFileSystem(bool);
WEBKIT_API static bool isFileSystemEnabled();
WEBKIT_API static void enableJavaScriptI18NAPI(bool);
WEBKIT_API static bool isJavaScriptI18NAPIEnabled();
WEBKIT_API static void enableQuota(bool);
WEBKIT_API static bool isQuotaEnabled();
private:
WebRuntimeFeatures();
};
}
#endif