Skip to content
  • commit-queue@webkit.org's avatar
    Web Intents code only supports V8 · 73aff5d6
    commit-queue@webkit.org authored
    https://bugs.webkit.org/show_bug.cgi?id=85954
    
    Patch by Christophe Dumez <christophe.dumez@intel.com> on 2012-05-11
    Reviewed by Adam Barth.
    
    .:
    
    Add ENABLE_WEB_INTENTS flag to CMake.
    
    * Source/cmake/WebKitFeatures.cmake:
    * Source/cmakeconfig.h.cmake:
    
    Source/WebCore:
    
    Add necessary abstraction for js Dictionary and ScriptValue so that
    the Web Intents code in WebCore compiles with JSC, not just V8.
    
    This required changes in the JSC bindings generator to pass
    callback arguments of type SerializedScriptValue as raw pointers
    instead of RefPtr. This matches the change made to the V8 bindings
    generator in r104531.
    
    * CMakeLists.txt:
    * Modules/intents/Intent.cpp:
    * Modules/intents/Intent.h:
    * bindings/js/Dictionary.cpp:
    (WebCore::Dictionary::Dictionary):
    (WebCore):
    (WebCore::Dictionary::getOwnPropertiesAsStringHashMap):
    * bindings/js/Dictionary.h:
    (Dictionary):
    * bindings/js/JSBindingsAllInOne.cpp:
    * bindings/js/JSDictionary.cpp:
    (WebCore::JSDictionary::convertValue):
    (WebCore):
    * bindings/js/JSDictionary.h:
    (WebCore):
    (WebCore::JSDictionary::initializerObject):
    * bindings/js/ScriptValue.cpp:
    (WebCore::ScriptValue::serialize):
    (WebCore):
    * bindings/js/ScriptValue.h:
    (ScriptValue):
    * bindings/scripts/CodeGeneratorJS.pm:
    (AddIncludesForType):
    (GenerateCallbackHeader):
    (GenerateCallbackImplementation):
    (GetNativeTypeForCallbacks):
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@116763 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    73aff5d6