summaryrefslogtreecommitdiff
path: root/Source/WebKit/chromium/src/PlatformSupport.cpp
diff options
context:
space:
mode:
authorSimon Hausmann <simon.hausmann@nokia.com>2012-05-11 09:43:24 +0200
committerSimon Hausmann <simon.hausmann@nokia.com>2012-05-11 09:43:24 +0200
commit1b914638db989aaa98631a1c1e02c7b2d44805d8 (patch)
tree87f4fd2c7b38db320079a5de8877890d2ca3c485 /Source/WebKit/chromium/src/PlatformSupport.cpp
parent2cf6c8816a73e0132bd8fa3b509d62d7c51b6e47 (diff)
downloadqtwebkit-1b914638db989aaa98631a1c1e02c7b2d44805d8.tar.gz
Imported WebKit commit 9a52e27980f47e8b0d8f8b7cc0fd7b5741bceb92 (http://svn.webkit.org/repository/webkit/trunk@116736)
New snapshot to include QDeclarative* -> QQml* build fixes
Diffstat (limited to 'Source/WebKit/chromium/src/PlatformSupport.cpp')
-rw-r--r--Source/WebKit/chromium/src/PlatformSupport.cpp54
1 files changed, 3 insertions, 51 deletions
diff --git a/Source/WebKit/chromium/src/PlatformSupport.cpp b/Source/WebKit/chromium/src/PlatformSupport.cpp
index de9810dbd..717455688 100644
--- a/Source/WebKit/chromium/src/PlatformSupport.cpp
+++ b/Source/WebKit/chromium/src/PlatformSupport.cpp
@@ -50,7 +50,6 @@
#include "WebWorkerClientImpl.h"
#include "WebWorkerRunLoop.h"
#include "platform/WebAudioBus.h"
-#include "platform/WebClipboard.h"
#include "platform/WebCookie.h"
#include "platform/WebCookieJar.h"
#include "platform/WebData.h"
@@ -81,9 +80,7 @@
#include "platform/android/WebThemeEngine.h"
#endif
-#if WEBKIT_USING_SKIA
#include "NativeImageSkia.h"
-#endif
#include "AsyncFileSystemChromium.h"
#include "BitmapImage.h"
@@ -101,6 +98,7 @@
#include "Worker.h"
#include "WorkerContextProxy.h"
+#include <public/WebClipboard.h>
#include <public/WebMimeRegistry.h>
#include <wtf/Assertions.h>
@@ -224,11 +222,7 @@ void PlatformSupport::clipboardWriteImage(NativeImagePtr image,
const KURL& sourceURL,
const String& title)
{
-#if WEBKIT_USING_SKIA
WebImage webImage(image->bitmap());
-#else
- WebImage webImage(image);
-#endif
webKitPlatformSupport()->clipboard()->writeImage(webImage, sourceURL, title);
}
@@ -404,14 +398,9 @@ int PlatformSupport::writeToFile(PlatformFileHandle handle, const char* data, in
}
#if ENABLE(FILE_SYSTEM)
-String PlatformSupport::createIsolatedFileSystemName(const String& storageIdentifier, const String& filesystemId)
+PassOwnPtr<AsyncFileSystem> PlatformSupport::createAsyncFileSystem()
{
- return AsyncFileSystemChromium::createIsolatedFileSystemName(storageIdentifier, filesystemId);
-}
-
-PassOwnPtr<AsyncFileSystem> PlatformSupport::createIsolatedFileSystem(const String& originString, const String& filesystemId)
-{
- return AsyncFileSystemChromium::createIsolatedFileSystem(originString, filesystemId);
+ return AsyncFileSystemChromium::create();
}
#endif
@@ -558,17 +547,6 @@ NPObject* PlatformSupport::pluginScriptableObject(Widget* widget)
// Resources ------------------------------------------------------------------
-PassRefPtr<Image> PlatformSupport::loadPlatformImageResource(const char* name)
-{
- const WebData& resource = webKitPlatformSupport()->loadResource(name);
- if (resource.isEmpty())
- return Image::nullImage();
-
- RefPtr<Image> image = BitmapImage::create();
- image->setData(resource, true);
- return image;
-}
-
#if ENABLE(WEB_AUDIO)
PassOwnPtr<AudioBus> PlatformSupport::decodeAudioFileData(const char* data, size_t size, double sampleRate)
@@ -688,11 +666,7 @@ void PlatformSupport::paintScrollbarThumb(
webThemeScrollbarInfo.visibleSize = scrollbarInfo.visibleSize;
webThemeScrollbarInfo.totalSize = scrollbarInfo.totalSize;
-#if WEBKIT_USING_SKIA
WebKit::WebCanvas* webCanvas = gc->platformContext()->canvas();
-#else
- WebKit::WebCanvas* webCanvas = gc->platformContext();
-#endif
webKitPlatformSupport()->themeEngine()->paintScrollbarThumb(
webCanvas,
static_cast<WebThemeEngine::State>(state),
@@ -811,28 +785,6 @@ void PlatformSupport::paintThemePart(
#endif
-// Trace Event ----------------------------------------------------------------
-
-const unsigned char* PlatformSupport::getTraceCategoryEnabledFlag(const char* categoryName)
-{
- return webKitPlatformSupport()->getTraceCategoryEnabledFlag(categoryName);
-}
-int PlatformSupport::addTraceEvent(char phase,
- const unsigned char* categoryEnabledFlag,
- const char* name,
- unsigned long long id,
- int numArgs,
- const char** argNames,
- const unsigned char* argTypes,
- const unsigned long long* argValues,
- int thresholdBeginId,
- long long threshold,
- unsigned char flags)
-{
- return webKitPlatformSupport()->addTraceEvent(
- phase, categoryEnabledFlag, name, id, numArgs, argNames, argTypes, argValues, thresholdBeginId, threshold, flags);
-}
-
// Visited Links --------------------------------------------------------------
LinkHash PlatformSupport::visitedLinkHash(const UChar* url, unsigned length)