Changeset 148008 in webkit
- Timestamp:
- Apr 9, 2013 4:48:24 AM (11 years ago)
- Location:
- trunk/Source/WebKit2
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebKit2/ChangeLog
r148005 r148008 1 2013-04-09 Michael Brüning <michael.bruning@digia.com> 2 3 [Qt][WK2] Use C API to enable Navigator Qt Object. 4 https://bugs.webkit.org/show_bug.cgi?id=112810 5 6 Reviewed by Andreas Kling. 7 8 Replace the direct reference to the WebPageProxy with use of 9 C API. 10 11 * UIProcess/API/qt/qquickwebview.cpp: 12 (QQuickWebViewPrivate::setNavigatorQtObjectEnabled): 13 1 14 2013-04-09 Michael Brüning <michael.bruning@digia.com> 2 15 -
trunk/Source/WebKit2/UIProcess/API/qt/qquickwebview.cpp
r147637 r148008 67 67 #include <QtQml/QJSValue> 68 68 #include <QtQuick/QQuickView> 69 #include <WKNumber.h> 69 70 #include <WKOpenPanelResultListener.h> 70 71 #include <WKPageGroup.h> … … 840 841 m_navigatorQtObjectEnabled = enabled; 841 842 842 static String messageName("SetNavigatorQtObjectEnabled");843 RefPtr<WebBoolean> webEnabled = WebBoolean::create(enabled);844 webPageProxy->postMessageToInjectedBundle(messageName, webEnabled.get());843 static WKStringRef messageName = WKStringCreateWithUTF8CString("SetNavigatorQtObjectEnabled"); 844 WKRetainPtr<WKBooleanRef> wkEnabled = adoptWK(WKBooleanCreate(enabled)); 845 WKPagePostMessageToInjectedBundle(webPage.get(), messageName, wkEnabled.get()); 845 846 } 846 847
Note: See TracChangeset
for help on using the changeset viewer.