Expose the BundlePage on the BundleFrame in the API.
authorjberlin@webkit.org <jberlin@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 23 Sep 2010 17:37:24 +0000 (17:37 +0000)
committerjberlin@webkit.org <jberlin@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 23 Sep 2010 17:37:24 +0000 (17:37 +0000)
https://bugs.webkit.org/show_bug.cgi?id=46366

Reviewed by Sam Weinig.

* WebProcess/InjectedBundle/API/c/WKBundleFrame.cpp:
(WKBundleFrameGetPage):
* WebProcess/InjectedBundle/API/c/WKBundleFrame.h:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@68162 268f45cc-cd09-0410-ab3c-d52691b4dbfc

WebKit2/ChangeLog
WebKit2/WebProcess/InjectedBundle/API/c/WKBundleFrame.cpp
WebKit2/WebProcess/InjectedBundle/API/c/WKBundleFrame.h

index b5a90a2..d59801b 100644 (file)
@@ -1,3 +1,14 @@
+2010-09-23  Jessie Berlin  <jberlin@apple.com>
+
+        Reviewed by Sam Weinig.
+
+        Expose the BundlePage on the BundleFrame in the API.
+        https://bugs.webkit.org/show_bug.cgi?id=46366
+
+        * WebProcess/InjectedBundle/API/c/WKBundleFrame.cpp:
+        (WKBundleFrameGetPage):
+        * WebProcess/InjectedBundle/API/c/WKBundleFrame.h:
+
 2010-09-23  Kenneth Rohde Christiansen  <kenneth.christiansen@openbossa.org>
 
         Reviewed by Andreas Kling.
index aaba297..ffc46a1 100644 (file)
@@ -113,3 +113,8 @@ unsigned WKBundleFrameGetPendingUnloadCount(WKBundleFrameRef frameRef)
 {
     return toWK(frameRef)->pendingUnloadCount();
 }
+
+WKBundlePageRef WKBundleFrameGetPage(WKBundleFrameRef frameRef)
+{
+    return toRef(toWK(frameRef)->page());
+}
index 6a2cf00..b9d700d 100644 (file)
@@ -48,6 +48,8 @@ WK_EXPORT JSGlobalContextRef WKBundleFrameGetJavaScriptContextForWorld(WKBundleF
 WK_EXPORT JSValueRef WKBundleFrameGetJavaScriptWrapperForNodeForWorld(WKBundleFrameRef frame, WKBundleNodeHandleRef nodeHandle, WKBundleScriptWorldRef world);
 WK_EXPORT JSValueRef WKBundleFrameGetJavaScriptWrapperForRangeForWorld(WKBundleFrameRef frame, WKBundleRangeHandleRef rangeHandle, WKBundleScriptWorldRef world);
 
+WK_EXPORT WKBundlePageRef WKBundleFrameGetPage(WKBundleFrameRef frame);
+
 #ifdef __cplusplus
 }
 #endif