Changeset 69524 in webkit
- Timestamp:
- Oct 11, 2010 2:08:30 PM (14 years ago)
- Location:
- trunk
- Files:
-
- 10 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/WebKit/mac/ChangeLog
r69415 r69524 1 2010-10-11 Jessie Berlin <jberlin@apple.com> 2 3 Reviewed by Darin Adler. 4 5 Add Private API for creating a WebKit2 WebSerializedScriptValue from the internal 6 representation of a WebKit1 WebSerializedJSValue. 7 https://bugs.webkit.org/show_bug.cgi?id=47439 8 9 * WebView/WebSerializedJSValue.mm: 10 (-[WebSerializedJSValue internalRepresentation]): 11 * WebView/WebSerializedJSValuePrivate.h: 12 1 13 2010-10-07 Jessie Berlin <jberlin@apple.com> 2 14 -
trunk/WebKit/mac/WebView/WebSerializedJSValue.mm
r69415 r69524 104 104 } 105 105 106 - (void*)internalRepresentation 107 { 108 if (!_private) 109 return 0; 110 return _private->value.get(); 111 } 112 106 113 @end 107 114 -
trunk/WebKit/mac/WebView/WebSerializedJSValuePrivate.h
r69415 r69524 31 31 @interface WebSerializedJSValue(WebPrivate) 32 32 - (id)initWithInternalRepresentation:(void*)internalRepresenatation; 33 - (void*)internalRepresentation; 33 34 @end -
trunk/WebKit/win/ChangeLog
r69415 r69524 1 2010-10-11 Jessie Berlin <jberlin@apple.com> 2 3 Reviewed by Darin Adler. 4 5 Add Private API for creating a WebKit2 WebSerializedScriptValue from the internal 6 representation of a WebKit1 WebSerializedJSValue. 7 https://bugs.webkit.org/show_bug.cgi?id=47439 8 9 * Interfaces/IWebSerializedJSValuePrivate.idl: 10 Because it is taking a void** parameter, getInternalRepresentation must be declared [local]. 11 12 * WebSerializedJSValue.cpp: 13 (WebSerializedJSValue::getInternalRepresentation): 14 * WebSerializedJSValue.h: 15 1 16 2010-10-07 Jessie Berlin <jberlin@apple.com> 2 17 -
trunk/WebKit/win/Interfaces/IWebSerializedJSValuePrivate.idl
r69415 r69524 42 42 { 43 43 [local] HRESULT setInternalRepresentation([in] void* internalRepresentation); 44 [local] HRESULT getInternalRepresentation([out, retval] void** internalRepresentation); 44 45 } -
trunk/WebKit/win/WebSerializedJSValue.cpp
r69415 r69524 118 118 return S_OK; 119 119 } 120 121 HRESULT WebSerializedJSValue::getInternalRepresentation(void** internalRepresentation) 122 { 123 if (!m_value) 124 return E_POINTER; 125 126 *internalRepresentation = m_value.get(); 127 return S_OK; 128 } 129 -
trunk/WebKit/win/WebSerializedJSValue.h
r69415 r69524 45 45 virtual HRESULT STDMETHODCALLTYPE deserialize(JSContextRef, JSValueRef* result); 46 46 virtual HRESULT STDMETHODCALLTYPE setInternalRepresentation(void* internalRepresentation); 47 virtual HRESULT STDMETHODCALLTYPE getInternalRepresentation(void** internalRepresentation); 47 48 48 49 private: -
trunk/WebKit2/ChangeLog
r69511 r69524 1 2010-10-11 Jessie Berlin <jberlin@apple.com> 2 3 Reviewed by Darin Adler. 4 5 Add Private API for creating a WebKit2 WebSerializedScriptValue from the internal 6 representation of a WebKit1 WebSerializedJSValue. 7 https://bugs.webkit.org/show_bug.cgi?id=47439 8 9 * Shared/API/c/WKSerializedScriptValue.cpp: 10 (WKSerializedScriptValueCreateWithInternalRepresentation): 11 Use the existing WebSerializedScriptValue constructor that takes a pointer to the internal 12 representation (a WebCore::SerializedScriptValue). 13 * Shared/API/c/WKSerializedScriptValuePrivate.h: 14 1 15 2010-10-11 Mike Thole <mthole@apple.com> 2 16 -
trunk/WebKit2/Shared/API/c/WKSerializedScriptValue.cpp
r69415 r69524 43 43 } 44 44 45 WKSerializedScriptValueRef WKSerializedScriptValueCreateWithInternalRepresentation(void* internalRepresentation) 46 { 47 RefPtr<WebSerializedScriptValue> serializedValue = WebSerializedScriptValue::create(static_cast<WebCore::SerializedScriptValue*>(internalRepresentation)); 48 return toAPI(serializedValue.release().leakRef()); 49 } 50 45 51 JSValueRef WKSerializedScriptValueDeserialize(WKSerializedScriptValueRef scriptValueRef, JSContextRef contextRef, JSValueRef* exception) 46 52 { -
trunk/WebKit2/Shared/API/c/WKSerializedScriptValuePrivate.h
r69415 r69524 34 34 35 35 WK_EXPORT void* WKSerializedScriptValueGetInternalRepresentation(WKSerializedScriptValueRef scriptValueRef); 36 WK_EXPORT WKSerializedScriptValueRef WKSerializedScriptValueCreateWithInternalRepresentation(void*); 36 37 37 38 #ifdef __cplusplus
Note: See TracChangeset
for help on using the changeset viewer.