[CredentialManagement] Add IDL definitions for Credential, SiteBoundCredential, and...
authorjiewen_tan@apple.com <jiewen_tan@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 27 Feb 2017 19:01:13 +0000 (19:01 +0000)
committerjiewen_tan@apple.com <jiewen_tan@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 27 Feb 2017 19:01:13 +0000 (19:01 +0000)
commit6856f96c62a300633fd72ad843048c530a82ef34
tree316169dd10205a8d60ddf261240df03d18df2050
parent6e3133d97ac53418a2eb5a77b77869dcd9c81718
[CredentialManagement] Add IDL definitions for Credential, SiteBoundCredential, and PasswordCredential
https://bugs.webkit.org/show_bug.cgi?id=168616
<rdar://problem/30167149>

Reviewed by Daniel Bates.

Source/WebCore:

This patch adds IDL definitions for:
1. Credential(https://w3c.github.io/webappsec-credential-management/#interfaces-credential-types-credential),
2. SiteBoundCredential(https://w3c.github.io/webappsec-credential-management/#interfaces-credential-types-siteboundcredential), and
3. PasswordCredential(https://w3c.github.io/webappsec-credential-management/#interfaces-credential-types-passwordcredential).

Test: credentials/idlharness.html

* CMakeLists.txt:
* DerivedSources.make:
* Modules/credentials/BasicCredential.cpp: Added.
(WebCore::BasicCredential::BasicCredential):
(WebCore::BasicCredential::~BasicCredential):
(WebCore::BasicCredential::type):
* Modules/credentials/BasicCredential.h: Added.
(WebCore::BasicCredential::id):
* Modules/credentials/BasicCredential.idl: Added.
* Modules/credentials/CredentialData.h: Added.
* Modules/credentials/CredentialData.idl: Added.
* Modules/credentials/PasswordCredential.cpp: Added.
(WebCore::PasswordCredential::PasswordCredential):
(WebCore::PasswordCredential::PasswordCredential):
Dummy constructors for now.
* Modules/credentials/PasswordCredential.h: Added.
(WebCore::PasswordCredential::create):
(WebCore::PasswordCredential::create):
(WebCore::PasswordCredential::setIdName):
(WebCore::PasswordCredential::idName):
(WebCore::PasswordCredential::setPasswordName):
(WebCore::PasswordCredential::passwordName):
(WebCore::PasswordCredential::setAdditionalData):
(WebCore::PasswordCredential::additionalData):
* Modules/credentials/PasswordCredential.idl: Added.
* Modules/credentials/SiteBoundCredential.cpp: Added.
(WebCore::SiteBoundCredential::SiteBoundCredential):
(WebCore::SiteBoundCredential::~SiteBoundCredential):
* Modules/credentials/SiteBoundCredential.h: Added.
(WebCore::SiteBoundCredential::name):
(WebCore::SiteBoundCredential::iconURL):
(WebCore::SiteBoundCredential::setOrigin):
(WebCore::SiteBoundCredential::origin):
* Modules/credentials/SiteBoundCredential.idl: Added.
* Modules/credentials/SiteBoundCredentialData.h: Added.
* Modules/credentials/SiteBoundCredentialData.idl: Added.
* WebCore.xcodeproj/project.pbxproj:

LayoutTests:

* credentials/idlharness-expected.txt: Added.
* credentials/idlharness.html: Added.
* platform/mac-elcapitan/js/dom/global-constructors-attributes-expected.txt:
* platform/mac-wk1/js/dom/global-constructors-attributes-expected.txt:
* platform/mac-yosemite/js/dom/global-constructors-attributes-expected.txt:
* platform/mac/js/dom/global-constructors-attributes-expected.txt:
* resources/WebIDLParser.js: Added.
* resources/idlharness.js: Renamed from LayoutTests/imported/w3c/resources/idlharness.js.
Removed LayoutTests/imported/w3c/resources/idlharness.js since it is not needed any more.
Added resources/idlharness.js for idl harness.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@213081 268f45cc-cd09-0410-ab3c-d52691b4dbfc
26 files changed:
LayoutTests/ChangeLog
LayoutTests/credentials/idlharness-expected.txt [new file with mode: 0644]
LayoutTests/credentials/idlharness.html [new file with mode: 0644]
LayoutTests/platform/mac-elcapitan/js/dom/global-constructors-attributes-expected.txt
LayoutTests/platform/mac-wk1/js/dom/global-constructors-attributes-expected.txt
LayoutTests/platform/mac-yosemite/js/dom/global-constructors-attributes-expected.txt
LayoutTests/platform/mac/js/dom/global-constructors-attributes-expected.txt
LayoutTests/resources/WebIDLParser.js [new file with mode: 0644]
LayoutTests/resources/idlharness.js [moved from LayoutTests/imported/w3c/resources/idlharness.js with 92% similarity]
Source/WebCore/CMakeLists.txt
Source/WebCore/ChangeLog
Source/WebCore/DerivedSources.make
Source/WebCore/Modules/credentials/BasicCredential.cpp [new file with mode: 0644]
Source/WebCore/Modules/credentials/BasicCredential.h [new file with mode: 0644]
Source/WebCore/Modules/credentials/BasicCredential.idl [new file with mode: 0644]
Source/WebCore/Modules/credentials/CredentialData.h [new file with mode: 0644]
Source/WebCore/Modules/credentials/CredentialData.idl [new file with mode: 0644]
Source/WebCore/Modules/credentials/PasswordCredential.cpp [new file with mode: 0644]
Source/WebCore/Modules/credentials/PasswordCredential.h [new file with mode: 0644]
Source/WebCore/Modules/credentials/PasswordCredential.idl [new file with mode: 0644]
Source/WebCore/Modules/credentials/SiteBoundCredential.cpp [new file with mode: 0644]
Source/WebCore/Modules/credentials/SiteBoundCredential.h [new file with mode: 0644]
Source/WebCore/Modules/credentials/SiteBoundCredential.idl [new file with mode: 0644]
Source/WebCore/Modules/credentials/SiteBoundCredentialData.h [new file with mode: 0644]
Source/WebCore/Modules/credentials/SiteBoundCredentialData.idl [new file with mode: 0644]
Source/WebCore/WebCore.xcodeproj/project.pbxproj