Skip to content
  • weinig@apple.com's avatar
    Add dictionary API type · 79dc7d5f
    weinig@apple.com authored
    https://bugs.webkit.org/show_bug.cgi?id=43990
    
    Reviewed by Brady Eidson.
    
    Add an immutable dictionary type (WKStringRef -> WKTypeRef).
    
    * Shared/APIObject.h:
    (WebKit::APIObject::):
    Add new APIType.
    
    * Shared/ImmutableDictionary.cpp: Added.
    (WebKit::ImmutableDictionary::ImmutableDictionary):
    (WebKit::ImmutableDictionary::~ImmutableDictionary):
    * Shared/ImmutableDictionary.h: Added.
    (WebKit::ImmutableDictionary::create):
    (WebKit::ImmutableDictionary::adopt):
    (WebKit::ImmutableDictionary::get):
    (WebKit::ImmutableDictionary::size):
    (WebKit::ImmutableDictionary::):
    (WebKit::ImmutableDictionary::type):
    Add basic implementation
    
    * UIProcess/API/C/WKAPICast.h:
    (WebKit::):
    Add new mappings.
    
    * UIProcess/API/C/WKBase.h:
    Add new opaque type.
    
    * UIProcess/API/C/WKDictionary.cpp: Added.
    (WKDictionaryGetTypeID):
    (WKDictionaryGetItemForKey):
    (WKDictionaryGetSize):
    (WKDictionaryRetain):
    (WKDictionaryRelease):
    * UIProcess/API/C/WKDictionary.h: Added.
    Add API wrappings.
        
    * UIProcess/API/C/WebKit2.h:
    Add missing public headers.
    
    * WebKit2.xcodeproj/project.pbxproj:
    * win/WebKit2.vcproj:
    * win/WebKit2Generated.make:
    Add new files.
    
    
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@65339 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    79dc7d5f