Add transfer map argument to Intent constructor
authorcommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 11 Apr 2012 01:15:30 +0000 (01:15 +0000)
committercommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 11 Apr 2012 01:15:30 +0000 (01:15 +0000)
commitaa6b9885ec8e1455c1fb7d1ecd8480db77db6ab3
treef2f1bae468afad5995e01b538748729701fd0b3c
parentd37daa20ffb47e618619a82f2917b8491d6b4e1e
Add transfer map argument to Intent constructor
http://dvcs.w3.org/hg/web-intents/raw-file/tip/spec/Overview.html
This adds the ability to pass transferables (i.e. MessagePorts)
through web intents, and puts the calling convention in line
with the Web Messaging spec:
http://dev.w3.org/html5/postmsg/

Implementation in chromium API follows the port-passing method
of PlatformMessagePortChannel.

https://bugs.webkit.org/show_bug.cgi?id=80200

Patch by Greg Billock <gbillock@google.com> on 2012-04-10
Reviewed by Adam Barth.

* Modules/intents/Intent.cpp:
(WebCore::Intent::create):
* Modules/intents/Intent.idl:
* WebCore.gypi:
* bindings/v8/custom/V8IntentCustom.cpp: Added.
(WebCore):
(WebCore::V8Intent::constructorCallback):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@113799 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/webintents/web-intents-invoke-port-expected.txt [new file with mode: 0644]
LayoutTests/webintents/web-intents-invoke-port.html [new file with mode: 0644]
Source/WebCore/ChangeLog
Source/WebCore/Modules/intents/Intent.cpp
Source/WebCore/Modules/intents/Intent.h
Source/WebCore/Modules/intents/Intent.idl
Source/WebCore/bindings/scripts/CodeGeneratorV8.pm
Source/WebCore/bindings/scripts/test/V8/V8TestSerializedScriptValueInterface.cpp
Source/WebKit/chromium/public/WebIntent.h
Source/WebKit/chromium/src/WebIntent.cpp
Tools/DumpRenderTree/chromium/WebViewHost.cpp