From 3504fce16112e71f7a1b84c75895b9891a3f41d3 Mon Sep 17 00:00:00 2001 From: "zelidrag@chromium.org" Date: Fri, 15 Apr 2011 16:46:59 +0000 Subject: Fix for WebKit build break. TEST=none BUG=none TBR=caseq Review URL: http://codereview.chromium.org/6865016 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@81755 0039d316-1c4b-4281-b951-d872f2087c98 --- webkit/mocks/mock_webframe.cc | 25 ++++++++++++++++++++++++- webkit/mocks/mock_webframe.h | 17 ++++++++++++++++- 2 files changed, 40 insertions(+), 2 deletions(-) (limited to 'webkit/mocks') 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 MockWebFrame::mainWorldScriptContext() const { return v8::Local(); } +#ifdef WEB_FILE_SYSTEM_TYPE_EXTERNAL v8::Handle MockWebFrame::createFileSystem( - int type, const WebString& name, const WebString& path) { + WebKit::WebFileSystem::Type type, const WebString& name, + const WebString& path) { return v8::Handle(); } + +v8::Handle MockWebFrame::createFileEntry( + WebKit::WebFileSystem::Type type, const WebString& fileSystemName, + const WebString& fileSystemPath, const WebString& filePath, + bool isDirectory) { + return v8::Handle(); +} +#else +v8::Handle MockWebFrame::createFileSystem( + int type, const WebString& name, + const WebString& path) { + return v8::Handle(); +} + +v8::Handle MockWebFrame::createFileEntry( + int type, const WebString& fileSystemName, + const WebString& fileSystemPath, const WebString& filePath, + bool isDirectory) { + return v8::Handle(); +} +#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 executeScriptAndReturnValue( const WebScriptSource&); virtual v8::Local mainWorldScriptContext() const; +#ifdef WEB_FILE_SYSTEM_TYPE_EXTERNAL virtual v8::Handle createFileSystem( - int type, const WebString& name, const WebString& path); + WebKit::WebFileSystem::Type type, const WebString& name, + const WebString& path); + virtual v8::Handle createFileEntry( + WebKit::WebFileSystem::Type type, const WebString& fileSystemName, + const WebString& fileSystemPath, const WebString& filePath, + bool isDirectory); +#else + virtual v8::Handle createFileSystem( + int type, const WebString& name, + const WebString& path); + virtual v8::Handle 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); -- cgit v1.1