From c62ce3e9f74a7b55b2d50c227555a3c198fd9cf3 Mon Sep 17 00:00:00 2001 From: "darin@chromium.org" Date: Thu, 26 Feb 2009 00:15:20 +0000 Subject: Chromium changes to use new WebKit, WebKitClient, and WebClipboard interfaces. A new WebKitClientImpl class is added to webkit/glue that consumers can use to help implement WebKitClient. In the future, consumers will likely subclass WebKitClientImpl. For now, that is not necessary. Since a WebImage may not hold a SkBitmap, I needed to modify ScopedClipboardWriterGlue to not deal in SkBitmaps. So, I just added a WriteBitmapFromPixels method in place of the WriteBitmap method. That method is actually named the same as the one from the base class, which is perhaps kind of nice since the purpose of ScopedClipboardWriterGlue is to override the default way of sending an image to the clipboard! R=dglazkov Review URL: http://codereview.chromium.org/28119 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@10416 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/renderer/render_thread.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'chrome/renderer/render_thread.h') diff --git a/chrome/renderer/render_thread.h b/chrome/renderer/render_thread.h index a23776e..cfc3d9a 100644 --- a/chrome/renderer/render_thread.h +++ b/chrome/renderer/render_thread.h @@ -24,6 +24,10 @@ class VisitedLinkSlave; struct ModalDialogEvent; struct WebPreferences; +namespace webkit_glue { +class WebKitClientImpl; +} + // The RenderThreadBase is the minimal interface that a RenderView/Widget // expects from a render thread. The interface basically abstracts a way to send // and receive messages. @@ -138,6 +142,8 @@ class RenderThread : public RenderThreadBase, scoped_ptr notification_service_; + scoped_ptr webkit_client_impl_; + DISALLOW_COPY_AND_ASSIGN(RenderThread); }; -- cgit v1.1