summaryrefslogtreecommitdiff
path: root/Source/WebKit/blackberry/WebKitSupport/AboutData.cpp
diff options
context:
space:
mode:
authorSimon Hausmann <simon.hausmann@nokia.com>2012-09-10 19:10:20 +0200
committerSimon Hausmann <simon.hausmann@nokia.com>2012-09-10 19:10:20 +0200
commit284837daa07b29d6a63a748544a90b1f5842ac5c (patch)
treeecd258180bde91fe741e0cfd2638beb3c6da7e8e /Source/WebKit/blackberry/WebKitSupport/AboutData.cpp
parent2e2ba8ff45915f40ed3e014101269c175f2a89a0 (diff)
downloadqtwebkit-284837daa07b29d6a63a748544a90b1f5842ac5c.tar.gz
Imported WebKit commit 68645295d2e3e09af2c942f092556f06aa5f8b0d (http://svn.webkit.org/repository/webkit/trunk@128073)
New snapshot
Diffstat (limited to 'Source/WebKit/blackberry/WebKitSupport/AboutData.cpp')
-rw-r--r--Source/WebKit/blackberry/WebKitSupport/AboutData.cpp25
1 files changed, 6 insertions, 19 deletions
diff --git a/Source/WebKit/blackberry/WebKitSupport/AboutData.cpp b/Source/WebKit/blackberry/WebKitSupport/AboutData.cpp
index a6772ccb5..24260b039 100644
--- a/Source/WebKit/blackberry/WebKitSupport/AboutData.cpp
+++ b/Source/WebKit/blackberry/WebKitSupport/AboutData.cpp
@@ -20,7 +20,7 @@
#include "AboutData.h"
#include "AboutTemplate.html.cpp"
-#include "CString.h"
+#include "CacheHelper.h"
#include "CookieManager.h"
#include "JSDOMWindow.h"
#include "MemoryCache.h"
@@ -28,7 +28,6 @@
#include "SurfacePool.h"
#include "WebKitVersion.h"
-#include <BlackBerryPlatformClient.h>
#include <BlackBerryPlatformLog.h>
#include <BlackBerryPlatformMemory.h>
#include <BlackBerryPlatformSettings.h>
@@ -39,6 +38,7 @@
#include <runtime/JSGlobalData.h>
#include <sys/stat.h>
#include <sys/utsname.h>
+#include <wtf/text/CString.h>
using namespace WebCore;
@@ -142,7 +142,6 @@ static String configPage()
page += numberToHTMLTr("allowCenterScrollAdjustmentForInputFields", settings->allowCenterScrollAdjustmentForInputFields());
page += numberToHTMLTr("unrestrictedResizeEvents", settings->unrestrictedResizeEvents());
page += numberToHTMLTr("isBridgeBrowser", settings->isBridgeBrowser());
- page += numberToHTMLTr("isWebGLSupported", settings->isWebGLSupported());
page += numberToHTMLTr("showImageLocationOptionsInGCM", settings->showImageLocationOptionsInGCM());
page += numberToHTMLTr("forceGLES2WindowUsage", settings->forceGLES2WindowUsage());
page += numberToHTMLTr("maxClickableSpeed", settings->maxClickableSpeed());
@@ -458,27 +457,14 @@ static String cachePage(String cacheCommand)
result.append(String("<html><head><title>BlackBerry Browser Disk Cache</title></head><body>"));
- BlackBerry::Platform::Client* client = BlackBerry::Platform::Client::get();
- ASSERT(client);
-
if (cacheCommand.isEmpty())
- result.append(String(client->generateHtmlFragmentForCacheKeys().data()));
+ result.append(String(BlackBerry::Platform::generateHtmlFragmentForCacheKeys().data()));
else if (cacheCommand.startsWith("?query=", false)) {
std::string key(cacheCommand.substring(7).utf8().data()); // 7 is length of "query=".
result.append(String(key.data()));
result.append(String("<hr>"));
- result.append(String(client->generateHtmlFragmentForCacheHeaders(key).data()));
- }
-#if !defined(PUBLIC_BUILD) || !PUBLIC_BUILD
- else if (equalIgnoringCase(cacheCommand, "/disable")) {
- client->setDiskCacheEnabled(false);
- result.append("Http disk cache is disabled.");
- } else if (equalIgnoringCase(cacheCommand, "/enable")) {
- client->setDiskCacheEnabled(true);
- result.append("Http disk cache is enabled.");
- }
-#endif
- else {
+ result.append(String(BlackBerry::Platform::generateHtmlFragmentForCacheHeaders(key).data()));
+ } else {
// Unknown cache command.
return String();
}
@@ -506,6 +492,7 @@ static String buildPage()
result.append(String(BlackBerry::Platform::BUILDINFO_WEBKIT));
result.append(String(BlackBerry::Platform::BUILDINFO_PLATFORM));
result.append(String(BlackBerry::Platform::BUILDINFO_LIBWEBVIEW));
+ result.append(String(BlackBerry::Platform::BUILDINFO_WEBPLATFORM));
result.append(String("</body></html>"));
return result;