Add transfer map argument to Intent constructor
authorcommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 10 Apr 2012 01:46:40 +0000 (01:46 +0000)
committercommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 10 Apr 2012 01:46:40 +0000 (01:46 +0000)
commit592e13072e0033a28a60b995eb1b5d74452e3160
tree2a6dddf5671ccf6b4eebd00103ac1cdd019eb89e
parentc3dab016908901bc598a599af47928aa08220e08
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-09
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@113656 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