summaryrefslogtreecommitdiffstats
path: root/webkit/glue/webkitclient_impl.cc
diff options
context:
space:
mode:
authordarin@chromium.org <darin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-03-10 18:52:09 +0000
committerdarin@chromium.org <darin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-03-10 18:52:09 +0000
commita3d79ab709a169177f8f82852e6bfe4ab81bc1a1 (patch)
treedc3aae86477e201324bb463285b612c40892df16 /webkit/glue/webkitclient_impl.cc
parentb4fc9c198c85039e15907ccbf99f4d7259d2f085 (diff)
downloadchromium_src-a3d79ab709a169177f8f82852e6bfe4ab81bc1a1.zip
chromium_src-a3d79ab709a169177f8f82852e6bfe4ab81bc1a1.tar.gz
chromium_src-a3d79ab709a169177f8f82852e6bfe4ab81bc1a1.tar.bz2
Adds WebThemeEngine, WebColor, and WebCanvas to the WebKit API (chrome-side).
R=dglazkov Review URL: http://codereview.chromium.org/40330 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@11351 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/glue/webkitclient_impl.cc')
-rw-r--r--webkit/glue/webkitclient_impl.cc18
1 files changed, 15 insertions, 3 deletions
diff --git a/webkit/glue/webkitclient_impl.cc b/webkit/glue/webkitclient_impl.cc
index 8966381..3eaa180 100644
--- a/webkit/glue/webkitclient_impl.cc
+++ b/webkit/glue/webkitclient_impl.cc
@@ -12,6 +12,10 @@
#include "grit/webkit_resources.h"
#include "webkit/glue/webkit_glue.h"
+using WebKit::WebClipboard;
+using WebKit::WebCString;
+using WebKit::WebThemeEngine;
+
namespace webkit_glue {
WebKitClientImpl::WebKitClientImpl()
@@ -19,10 +23,18 @@ WebKitClientImpl::WebKitClientImpl()
shared_timer_func_(NULL) {
}
-WebKit::WebClipboard* WebKitClientImpl::clipboard() {
+WebClipboard* WebKitClientImpl::clipboard() {
return &clipboard_;
}
+WebThemeEngine* WebKitClientImpl::themeEngine() {
+#if defined(OS_WIN)
+ return &theme_engine_;
+#else
+ return NULL;
+#endif
+}
+
void WebKitClientImpl::decrementStatsCounter(const char* name) {
StatsCounter(name).Decrement();
}
@@ -41,7 +53,7 @@ void WebKitClientImpl::traceEventEnd(const char* name, void* id,
TRACE_EVENT_END(name, id, extra);
}
-WebKit::WebCString WebKitClientImpl::loadResource(const char* name) {
+WebCString WebKitClientImpl::loadResource(const char* name) {
struct {
const char* name;
int id;
@@ -62,7 +74,7 @@ WebKit::WebCString WebKitClientImpl::loadResource(const char* name) {
return webkit_glue::GetDataResource(resources[i].id);
}
NOTREACHED() << "Unknown image resource " << name;
- return WebKit::WebCString();
+ return WebCString();
}
double WebKitClientImpl::currentTime() {