[Webkit-unassigned] [Bug 14678] [gdk] API Drafting

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sun Jul 22 12:52:11 PDT 2007


http://bugs.webkit.org/show_bug.cgi?id=14678


aroben at apple.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #15624|review?                     |review-
               Flag|                            |




------- Comment #7 from aroben at apple.com  2007-07-22 12:52 PDT -------
(From update of attachment 15624)
Index: WebCore/loader/gdk/FrameLoaderClientGdk.cpp

Now that a WebKit/gtk is starting to exist, all these client implementations
should move out of WebCore and into WebKit/gtk. ChromeClientGdk.cpp is missing
from your patch but it looks like you put it in platform/gdk, which is
definitely not the right place (even through that's where some of the other
clients are at the moment).

+    WebKitGtkFrame* frame = static_cast<FrameGdk*>(m_frame)->gtkFrame();

In Mac/Windows WebKit we have a set of overloaded kit()/core() functions to do
this kind of translation between WebKit and WebCore types.

+typedef struct _WebKitGtkPage WebKitGtkPage;

You can just say `struct WebKitGtkPage` since this is C++ code.

+typedef struct _WebKitGtkFrame WebKitGtkFrame;

Ditto.

+    WebKitGtkFrame* gtkFrame() const { return m_gtkFrame; }

You shouldn't be holding onto WebKit types inside WebCore.  On Windows we get
back to the WebFrame* through the FrameLoaderClient* pointer (a little ugly,
but it keeps the separation).

I'm not going to look at the code in Api/ since I'm unfamiliar with Gtk+. It
looks like this patch is a big step forward, but r- based on
ChromeClientGdk.cpp being in platform/gdk.


-- 
Configure bugmail: http://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.



More information about the webkit-unassigned mailing list