Bug 50750 - [Qt][WK2] Add the QWKContext API class to wrap the WebContext.
Summary: [Qt][WK2] Add the QWKContext API class to wrap the WebContext.
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: New Bugs (show other bugs)
Version: 528+ (Nightly build)
Hardware: Other OS X 10.5
: P2 Normal
Assignee: Jocelyn Turcotte
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-12-09 05:14 PST by Jocelyn Turcotte
Modified: 2010-12-10 04:03 PST (History)
1 user (show)

See Also:


Attachments
Patch (16.49 KB, patch)
2010-12-09 05:22 PST, Jocelyn Turcotte
no flags Details | Formatted Diff | Diff
Patch v2 (15.52 KB, patch)
2010-12-10 01:25 PST, Jocelyn Turcotte
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Jocelyn Turcotte 2010-12-09 05:14:29 PST
[Qt][WK2] Add the QWKContext API class to wrap the WebContext.
Comment 1 Jocelyn Turcotte 2010-12-09 05:22:01 PST
Created attachment 76048 [details]
Patch
Comment 2 Kenneth Rohde Christiansen 2010-12-10 00:38:03 PST
Comment on attachment 76048 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=76048&action=review

> WebKit2/UIProcess/API/qt/qwkcontext.h:36
> +    // Bridge from the C API
> +    QWKContext(WKPageNamespaceRef pageNamespaceRef, QObject* parent = 0);

Do we need this if the namespace is going away anyway?

> WebKit2/UIProcess/API/qt/qwkcontext_p.h:37
> +    RefPtr<WebKit::WebPageNamespace> pageNamespace;
> +

unneeded newspace
Comment 3 Jocelyn Turcotte 2010-12-10 01:25:58 PST
Created attachment 76175 [details]
Patch v2

(In reply to comment #2)
> (From update of attachment 76048 [details])
> View in context: https://bugs.webkit.org/attachment.cgi?id=76048&action=review
> 
> > WebKit2/UIProcess/API/qt/qwkcontext.h:36
> > +    // Bridge from the C API
> > +    QWKContext(WKPageNamespaceRef pageNamespaceRef, QObject* parent = 0);
> 
> Do we need this if the namespace is going away anyway?
> 
This namespace is given to us in WebKitTools/WebKitTestRunner/qt/PlatformWebViewQt.cpp.
It shouldn't be public so we might have to find a different way sooner or later.
Having this contstructor in QWKContextPrivate and have a non-public friend factory method kind of trick could do it.

> > WebKit2/UIProcess/API/qt/qwkcontext_p.h:37
> > +    RefPtr<WebKit::WebPageNamespace> pageNamespace;
> > +
> 
> unneeded newspace
Fixed
Comment 4 WebKit Review Bot 2010-12-10 04:03:35 PST
Comment on attachment 76175 [details]
Patch v2

Clearing flags on attachment: 76175

Committed r73716: <http://trac.webkit.org/changeset/73716>
Comment 5 WebKit Review Bot 2010-12-10 04:03:42 PST
All reviewed patches have been landed.  Closing bug.