[Webkit-unassigned] [Bug 69572] [Qt] QTouchWebView missing navigationPolicyForUrl
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Thu Oct 13 06:49:12 PDT 2011
https://bugs.webkit.org/show_bug.cgi?id=69572
Chang Shu <cshu at webkit.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |kenneth at webkit.org
--- Comment #6 from Chang Shu <cshu at webkit.org> 2011-10-13 06:49:12 PST ---
I am still not convinced that we have to manipulate the lower level C++ code which throws away the class inheritance just to satisfy a drawback in the higher level qml binding. What prevents PolicyInterface.h being available to qml?
(In reply to comment #3)
> The PolicyAction enums defined in PolicyInterface.h is not available to qml. The current implementation enables the following in qml:
>
> TouchWebView {
> id: webView
> ......
> .....
> function navigationPolicyForUrl(url, button, modifiers) {
> // link delegation
> if (button == Qt.LeftButton && pageLoaded) {
> return webView.TouchWebView.IgnorePolicy
> }
> return webView.TouchWebView.UsePolicy
> }
> }
--
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the webkit-unassigned
mailing list