diff options
Diffstat (limited to 'webkit/mocks')
-rw-r--r-- | webkit/mocks/mock_webframe.cc | 25 | ||||
-rw-r--r-- | webkit/mocks/mock_webframe.h | 17 |
2 files changed, 40 insertions, 2 deletions
diff --git a/webkit/mocks/mock_webframe.cc b/webkit/mocks/mock_webframe.cc index 773b5a1..3984625 100644 --- a/webkit/mocks/mock_webframe.cc +++ b/webkit/mocks/mock_webframe.cc @@ -159,10 +159,33 @@ v8::Local<v8::Context> MockWebFrame::mainWorldScriptContext() const { return v8::Local<v8::Context>(); } +#ifdef WEB_FILE_SYSTEM_TYPE_EXTERNAL v8::Handle<v8::Value> MockWebFrame::createFileSystem( - int type, const WebString& name, const WebString& path) { + WebKit::WebFileSystem::Type type, const WebString& name, + const WebString& path) { return v8::Handle<v8::Value>(); } + +v8::Handle<v8::Value> MockWebFrame::createFileEntry( + WebKit::WebFileSystem::Type type, const WebString& fileSystemName, + const WebString& fileSystemPath, const WebString& filePath, + bool isDirectory) { + return v8::Handle<v8::Value>(); +} +#else +v8::Handle<v8::Value> MockWebFrame::createFileSystem( + int type, const WebString& name, + const WebString& path) { + return v8::Handle<v8::Value>(); +} + +v8::Handle<v8::Value> MockWebFrame::createFileEntry( + int type, const WebString& fileSystemName, + const WebString& fileSystemPath, const WebString& filePath, + bool isDirectory) { + return v8::Handle<v8::Value>(); +} +#endif #endif diff --git a/webkit/mocks/mock_webframe.h b/webkit/mocks/mock_webframe.h index 199451f..62e640e 100644 --- a/webkit/mocks/mock_webframe.h +++ b/webkit/mocks/mock_webframe.h @@ -117,8 +117,23 @@ class MockWebFrame : public WebKit::WebFrame { virtual v8::Handle<v8::Value> executeScriptAndReturnValue( const WebScriptSource&); virtual v8::Local<v8::Context> mainWorldScriptContext() const; +#ifdef WEB_FILE_SYSTEM_TYPE_EXTERNAL virtual v8::Handle<v8::Value> createFileSystem( - int type, const WebString& name, const WebString& path); + WebKit::WebFileSystem::Type type, const WebString& name, + const WebString& path); + virtual v8::Handle<v8::Value> createFileEntry( + WebKit::WebFileSystem::Type type, const WebString& fileSystemName, + const WebString& fileSystemPath, const WebString& filePath, + bool isDirectory); +#else + virtual v8::Handle<v8::Value> createFileSystem( + int type, const WebString& name, + const WebString& path); + virtual v8::Handle<v8::Value> createFileEntry( + int type, const WebString& fileSystemName, + const WebString& fileSystemPath, const WebString& filePath, + bool isDirectory); +#endif #endif virtual bool insertStyleText(const WebString& styleText, const WebString& elementId); |