Title: [148008] trunk/Source/WebKit2
- Revision
- 148008
- Author
- [email protected]
- Date
- 2013-04-09 04:48:24 -0700 (Tue, 09 Apr 2013)
Log Message
[Qt][WK2] Use C API to enable Navigator Qt Object.
https://bugs.webkit.org/show_bug.cgi?id=112810
Reviewed by Andreas Kling.
Replace the direct reference to the WebPageProxy with use of
C API.
* UIProcess/API/qt/qquickwebview.cpp:
(QQuickWebViewPrivate::setNavigatorQtObjectEnabled):
Modified Paths
Diff
Modified: trunk/Source/WebKit2/ChangeLog (148007 => 148008)
--- trunk/Source/WebKit2/ChangeLog 2013-04-09 11:42:56 UTC (rev 148007)
+++ trunk/Source/WebKit2/ChangeLog 2013-04-09 11:48:24 UTC (rev 148008)
@@ -1,5 +1,18 @@
2013-04-09 Michael BrĂ¼ning <[email protected]>
+ [Qt][WK2] Use C API to enable Navigator Qt Object.
+ https://bugs.webkit.org/show_bug.cgi?id=112810
+
+ Reviewed by Andreas Kling.
+
+ Replace the direct reference to the WebPageProxy with use of
+ C API.
+
+ * UIProcess/API/qt/qquickwebview.cpp:
+ (QQuickWebViewPrivate::setNavigatorQtObjectEnabled):
+
+2013-04-09 Michael BrĂ¼ning <[email protected]>
+
[WK2] Add C API to copy selected files from WebOpenPanelParameters.
https://bugs.webkit.org/show_bug.cgi?id=112339
Modified: trunk/Source/WebKit2/UIProcess/API/qt/qquickwebview.cpp (148007 => 148008)
--- trunk/Source/WebKit2/UIProcess/API/qt/qquickwebview.cpp 2013-04-09 11:42:56 UTC (rev 148007)
+++ trunk/Source/WebKit2/UIProcess/API/qt/qquickwebview.cpp 2013-04-09 11:48:24 UTC (rev 148008)
@@ -66,6 +66,7 @@
#include <QtCore/QFile>
#include <QtQml/QJSValue>
#include <QtQuick/QQuickView>
+#include <WKNumber.h>
#include <WKOpenPanelResultListener.h>
#include <WKPageGroup.h>
#include <WKPreferences.h>
@@ -839,9 +840,9 @@
// FIXME: Currently we have to keep this information in both processes and the setting is asynchronous.
m_navigatorQtObjectEnabled = enabled;
- static String messageName("SetNavigatorQtObjectEnabled");
- RefPtr<WebBoolean> webEnabled = WebBoolean::create(enabled);
- webPageProxy->postMessageToInjectedBundle(messageName, webEnabled.get());
+ static WKStringRef messageName = WKStringCreateWithUTF8CString("SetNavigatorQtObjectEnabled");
+ WKRetainPtr<WKBooleanRef> wkEnabled = adoptWK(WKBooleanCreate(enabled));
+ WKPagePostMessageToInjectedBundle(webPage.get(), messageName, wkEnabled.get());
}
static WKRetainPtr<WKStringRef> readUserScript(const QUrl& url)
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes