Changeset 160811 in webkit
- Timestamp:
- Dec 18, 2013 5:22:56 PM (10 years ago)
- Location:
- trunk
- Files:
-
- 12 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebKit2/ChangeLog
r160809 r160811 1 2013-12-18 Anders Carlsson <andersca@apple.com> 2 3 Deprecate some WKMutableDictionary functions 4 https://bugs.webkit.org/show_bug.cgi?id=125962 5 6 Reviewed by Tim Horton. 7 8 * Shared/API/c/WKDeprecatedFunctions.cpp: 9 (WKDictionaryIsMutable): 10 (WKDictionaryAddItem): 11 (WKDictionaryRemoveItem): 12 * Shared/API/c/WKMutableDictionary.cpp: 13 * Shared/API/c/WKMutableDictionary.h: 14 1 15 2013-12-18 Dan Bernstein <mitz@apple.com> 2 16 -
trunk/Source/WebKit2/Shared/API/c/WKDeprecatedFunctions.cpp
r159882 r160811 26 26 #include "config.h" 27 27 28 #include "MutableDictionary.h" 28 29 #include "WKArray.h" 30 #include "WKMutableDictionary.h" 31 #include "WKSharedAPICast.h" 29 32 30 33 // Deprecated functions that should be removed from the framework once nobody uses them. 31 34 35 using namespace WebKit; 36 32 37 extern "C" { 33 38 WK_EXPORT bool WKArrayIsMutable(WKArrayRef array); 39 40 WK_EXPORT bool WKDictionaryAddItem(WKMutableDictionaryRef dictionary, WKStringRef key, WKTypeRef item); 41 WK_EXPORT bool WKDictionaryIsMutable(WKDictionaryRef dictionary); 42 WK_EXPORT void WKDictionaryRemoveItem(WKMutableDictionaryRef dictionary, WKStringRef key); 34 43 35 44 #if PLATFORM(MAC) … … 43 52 } 44 53 54 bool WKDictionaryIsMutable(WKDictionaryRef dictionaryRef) 55 { 56 return toImpl(dictionaryRef)->isMutable(); 57 } 58 59 bool WKDictionaryAddItem(WKMutableDictionaryRef dictionaryRef, WKStringRef keyRef, WKTypeRef itemRef) 60 { 61 return toImpl(dictionaryRef)->add(toImpl(keyRef)->string(), toImpl(itemRef)); 62 } 63 64 void WKDictionaryRemoveItem(WKMutableDictionaryRef dictionaryRef, WKStringRef keyRef) 65 { 66 toImpl(dictionaryRef)->remove(toImpl(keyRef)->string()); 67 } 68 69 45 70 #if PLATFORM(MAC) 46 71 CGContextRef WKGraphicsContextGetCGContext(WKGraphicsContextRef graphicsContext) -
trunk/Source/WebKit2/Shared/API/c/WKMutableDictionary.cpp
r99239 r160811 38 38 } 39 39 40 bool WKDictionaryIsMutable(WKDictionaryRef dictionaryRef)41 {42 return toImpl(dictionaryRef)->isMutable();43 }44 45 bool WKDictionaryAddItem(WKMutableDictionaryRef dictionaryRef, WKStringRef keyRef, WKTypeRef itemRef)46 {47 return toImpl(dictionaryRef)->add(toImpl(keyRef)->string(), toImpl(itemRef));48 }49 50 40 bool WKDictionarySetItem(WKMutableDictionaryRef dictionaryRef, WKStringRef keyRef, WKTypeRef itemRef) 51 41 { … … 53 43 } 54 44 55 void WKDictionaryRemoveItem(WKMutableDictionaryRef dictionaryRef, WKStringRef keyRef)56 {57 toImpl(dictionaryRef)->remove(toImpl(keyRef)->string());58 } -
trunk/Source/WebKit2/Shared/API/c/WKMutableDictionary.h
r95901 r160811 39 39 WK_EXPORT WKMutableDictionaryRef WKMutableDictionaryCreate(); 40 40 41 WK_EXPORT bool WKDictionaryIsMutable(WKDictionaryRef dictionary);42 43 WK_EXPORT bool WKDictionaryAddItem(WKMutableDictionaryRef dictionary, WKStringRef key, WKTypeRef item);44 41 WK_EXPORT bool WKDictionarySetItem(WKMutableDictionaryRef dictionary, WKStringRef key, WKTypeRef item); 45 WK_EXPORT void WKDictionaryRemoveItem(WKMutableDictionaryRef dictionary, WKStringRef key);46 42 47 43 #ifdef __cplusplus -
trunk/Tools/ChangeLog
r160805 r160811 1 2013-12-18 Anders Carlsson <andersca@apple.com> 2 3 Deprecate some WKMutableDictionary functions 4 https://bugs.webkit.org/show_bug.cgi?id=125962 5 6 Reviewed by Tim Horton. 7 8 * TestWebKitAPI/PlatformUtilities.cpp: 9 (TestWebKitAPI::Util::createInitializationDictionaryForInjectedBundleTest): 10 * TestWebKitAPI/Tests/WebKit2/DidAssociateFormControls_Bundle.cpp: 11 (TestWebKitAPI::didAssociateFormControls): 12 * TestWebKitAPI/Tests/WebKit2/WillLoad_Bundle.cpp: 13 (TestWebKitAPI::WillLoadTest::willLoadURLRequest): 14 (TestWebKitAPI::WillLoadTest::willLoadDataRequest): 15 * WebKitTestRunner/InjectedBundle/EventSendingController.cpp: 16 (WTR::createMouseMessageBody): 17 (WTR::EventSendingController::mouseMoveTo): 18 (WTR::EventSendingController::leapForward): 19 (WTR::createKeyDownMessageBody): 20 (WTR::EventSendingController::mouseScrollBy): 21 (WTR::EventSendingController::continuousMouseScrollBy): 22 (WTR::EventSendingController::addTouchPoint): 23 (WTR::EventSendingController::updateTouchPoint): 24 (WTR::EventSendingController::setTouchModifier): 25 (WTR::EventSendingController::setTouchPointRadius): 26 (WTR::EventSendingController::touchStart): 27 (WTR::EventSendingController::touchMove): 28 (WTR::EventSendingController::touchEnd): 29 (WTR::EventSendingController::touchCancel): 30 (WTR::EventSendingController::clearTouchPoints): 31 (WTR::EventSendingController::releaseTouchPoint): 32 (WTR::EventSendingController::cancelTouchPoint): 33 * WebKitTestRunner/InjectedBundle/InjectedBundle.cpp: 34 (WTR::InjectedBundle::done): 35 (WTR::InjectedBundle::setMockGeolocationPosition): 36 (WTR::InjectedBundle::setCustomPolicyDelegate): 37 (WTR::InjectedBundle::setVisibilityState): 38 (WTR::InjectedBundle::queueLoad): 39 (WTR::InjectedBundle::queueLoadHTMLString): 40 * WebKitTestRunner/TestController.cpp: 41 (WTR::TestController::initialize): 42 (WTR::TestController::resetStateToConsistentValues): 43 * WebKitTestRunner/TestInvocation.cpp: 44 (WTR::updateThreadedScrollingForCurrentTest): 45 (WTR::updateLayoutType): 46 (WTR::TestInvocation::invoke): 47 1 48 2013-12-18 Martin Robinson <mrobinson@igalia.com> 2 49 -
trunk/Tools/TestWebKitAPI/PlatformUtilities.cpp
r156100 r160811 46 46 WKRetainPtr<WKStringRef> testNameKey(AdoptWK, WKStringCreateWithUTF8CString("TestName")); 47 47 WKRetainPtr<WKStringRef> testNameString(AdoptWK, WKStringCreateWithUTF8CString(testName.c_str())); 48 WKDictionary AddItem(initializationDictionary, testNameKey.get(), testNameString.get());48 WKDictionarySetItem(initializationDictionary, testNameKey.get(), testNameString.get()); 49 49 50 50 WKRetainPtr<WKStringRef> userDataKey(AdoptWK, WKStringCreateWithUTF8CString("UserData")); 51 WKDictionary AddItem(initializationDictionary, userDataKey.get(), userData);51 WKDictionarySetItem(initializationDictionary, userDataKey.get(), userData); 52 52 53 53 return initializationDictionary; -
trunk/Tools/TestWebKitAPI/Tests/WebKit2/DidAssociateFormControls_Bundle.cpp
r160104 r160811 51 51 WKRetainPtr<WKMutableDictionaryRef> messageBody = adoptWK(WKMutableDictionaryCreate()); 52 52 53 WKDictionary AddItem(messageBody.get(), Util::toWK("Page").get(), page);53 WKDictionarySetItem(messageBody.get(), Util::toWK("Page").get(), page); 54 54 WKRetainPtr<WKUInt64Ref> numberOfElements = adoptWK(WKUInt64Create(WKArrayGetSize(elementHandles))); 55 WKDictionary AddItem(messageBody.get(), Util::toWK("NumberOfControls").get(), numberOfElements.get());55 WKDictionarySetItem(messageBody.get(), Util::toWK("NumberOfControls").get(), numberOfElements.get()); 56 56 57 57 WKBundlePostMessage(InjectedBundleController::shared().bundle(), Util::toWK("DidReceiveDidAssociateFormControls").get(), messageBody.get()); -
trunk/Tools/TestWebKitAPI/Tests/WebKit2/WillLoad_Bundle.cpp
r160104 r160811 45 45 WKRetainPtr<WKMutableDictionaryRef> messageBody = adoptWK(WKMutableDictionaryCreate()); 46 46 47 WKDictionary AddItem(messageBody.get(), Util::toWK("URLRequestReturn").get(), request);48 WKDictionary AddItem(messageBody.get(), Util::toWK("UserDataReturn").get(), userData);47 WKDictionarySetItem(messageBody.get(), Util::toWK("URLRequestReturn").get(), request); 48 WKDictionarySetItem(messageBody.get(), Util::toWK("UserDataReturn").get(), userData); 49 49 50 50 WKBundlePostMessage(InjectedBundleController::shared().bundle(), Util::toWK("WillLoadURLRequestReturn").get(), messageBody.get()); … … 55 55 WKRetainPtr<WKMutableDictionaryRef> messageBody = adoptWK(WKMutableDictionaryCreate()); 56 56 57 WKDictionary AddItem(messageBody.get(), Util::toWK("URLRequestReturn").get(), request);58 WKDictionary AddItem(messageBody.get(), Util::toWK("DataReturn").get(), data);59 WKDictionary AddItem(messageBody.get(), Util::toWK("MIMETypeReturn").get(), MIMEType);60 WKDictionary AddItem(messageBody.get(), Util::toWK("EncodingNameReturn").get(), encodingName);61 WKDictionary AddItem(messageBody.get(), Util::toWK("UnreachableURLReturn").get(), unreachableURL);62 WKDictionary AddItem(messageBody.get(), Util::toWK("UserDataReturn").get(), userData);57 WKDictionarySetItem(messageBody.get(), Util::toWK("URLRequestReturn").get(), request); 58 WKDictionarySetItem(messageBody.get(), Util::toWK("DataReturn").get(), data); 59 WKDictionarySetItem(messageBody.get(), Util::toWK("MIMETypeReturn").get(), MIMEType); 60 WKDictionarySetItem(messageBody.get(), Util::toWK("EncodingNameReturn").get(), encodingName); 61 WKDictionarySetItem(messageBody.get(), Util::toWK("UnreachableURLReturn").get(), unreachableURL); 62 WKDictionarySetItem(messageBody.get(), Util::toWK("UserDataReturn").get(), userData); 63 63 64 64 WKBundlePostMessage(InjectedBundleController::shared().bundle(), Util::toWK("WillLoadDataRequestReturn").get(), messageBody.get()); -
trunk/Tools/WebKitTestRunner/InjectedBundle/EventSendingController.cpp
r156100 r160811 193 193 WKRetainPtr<WKStringRef> subMessageKey(AdoptWK, WKStringCreateWithUTF8CString("SubMessage")); 194 194 WKRetainPtr<WKStringRef> subMessageName(AdoptWK, WKStringCreateWithUTF8CString(state == MouseUp ? "MouseUp" : "MouseDown")); 195 WKDictionary AddItem(EventSenderMessageBody, subMessageKey.get(), subMessageName.get());195 WKDictionarySetItem(EventSenderMessageBody, subMessageKey.get(), subMessageName.get()); 196 196 197 197 WKRetainPtr<WKStringRef> buttonKey = adoptWK(WKStringCreateWithUTF8CString("Button")); 198 198 WKRetainPtr<WKUInt64Ref> buttonRef = adoptWK(WKUInt64Create(button)); 199 WKDictionary AddItem(EventSenderMessageBody, buttonKey.get(), buttonRef.get());199 WKDictionarySetItem(EventSenderMessageBody, buttonKey.get(), buttonRef.get()); 200 200 201 201 WKRetainPtr<WKStringRef> modifiersKey = adoptWK(WKStringCreateWithUTF8CString("Modifiers")); 202 202 WKRetainPtr<WKUInt64Ref> modifiersRef = adoptWK(WKUInt64Create(modifiers)); 203 WKDictionary AddItem(EventSenderMessageBody, modifiersKey.get(), modifiersRef.get());203 WKDictionarySetItem(EventSenderMessageBody, modifiersKey.get(), modifiersRef.get()); 204 204 205 205 return EventSenderMessageBody; … … 239 239 WKRetainPtr<WKStringRef> subMessageKey(AdoptWK, WKStringCreateWithUTF8CString("SubMessage")); 240 240 WKRetainPtr<WKStringRef> subMessageName(AdoptWK, WKStringCreateWithUTF8CString("MouseMoveTo")); 241 WKDictionary AddItem(EventSenderMessageBody.get(), subMessageKey.get(), subMessageName.get());241 WKDictionarySetItem(EventSenderMessageBody.get(), subMessageKey.get(), subMessageName.get()); 242 242 243 243 WKRetainPtr<WKStringRef> xKey(AdoptWK, WKStringCreateWithUTF8CString("X")); 244 244 WKRetainPtr<WKDoubleRef> xRef(AdoptWK, WKDoubleCreate(x)); 245 WKDictionary AddItem(EventSenderMessageBody.get(), xKey.get(), xRef.get());245 WKDictionarySetItem(EventSenderMessageBody.get(), xKey.get(), xRef.get()); 246 246 247 247 WKRetainPtr<WKStringRef> yKey(AdoptWK, WKStringCreateWithUTF8CString("Y")); 248 248 WKRetainPtr<WKDoubleRef> yRef(AdoptWK, WKDoubleCreate(y)); 249 WKDictionary AddItem(EventSenderMessageBody.get(), yKey.get(), yRef.get());249 WKDictionarySetItem(EventSenderMessageBody.get(), yKey.get(), yRef.get()); 250 250 251 251 WKBundlePostSynchronousMessage(InjectedBundle::shared().bundle(), EventSenderMessageName.get(), EventSenderMessageBody.get(), 0); … … 259 259 WKRetainPtr<WKStringRef> subMessageKey(AdoptWK, WKStringCreateWithUTF8CString("SubMessage")); 260 260 WKRetainPtr<WKStringRef> subMessageName(AdoptWK, WKStringCreateWithUTF8CString("LeapForward")); 261 WKDictionary AddItem(EventSenderMessageBody.get(), subMessageKey.get(), subMessageName.get());261 WKDictionarySetItem(EventSenderMessageBody.get(), subMessageKey.get(), subMessageName.get()); 262 262 263 263 WKRetainPtr<WKStringRef> timeKey(AdoptWK, WKStringCreateWithUTF8CString("TimeInMilliseconds")); 264 264 WKRetainPtr<WKUInt64Ref> timeRef(AdoptWK, WKUInt64Create(milliseconds)); 265 WKDictionary AddItem(EventSenderMessageBody.get(), timeKey.get(), timeRef.get());265 WKDictionarySetItem(EventSenderMessageBody.get(), timeKey.get(), timeRef.get()); 266 266 267 267 WKBundlePostSynchronousMessage(InjectedBundle::shared().bundle(), EventSenderMessageName.get(), EventSenderMessageBody.get(), 0); … … 290 290 WKRetainPtr<WKStringRef> subMessageKey(AdoptWK, WKStringCreateWithUTF8CString("SubMessage")); 291 291 WKRetainPtr<WKStringRef> subMessageName(AdoptWK, WKStringCreateWithUTF8CString("KeyDown")); 292 WKDictionary AddItem(EventSenderMessageBody.get(), subMessageKey.get(), subMessageName.get());292 WKDictionarySetItem(EventSenderMessageBody.get(), subMessageKey.get(), subMessageName.get()); 293 293 294 294 WKRetainPtr<WKStringRef> keyKey(AdoptWK, WKStringCreateWithUTF8CString("Key")); 295 WKDictionary AddItem(EventSenderMessageBody.get(), keyKey.get(), toWK(key).get());295 WKDictionarySetItem(EventSenderMessageBody.get(), keyKey.get(), toWK(key).get()); 296 296 297 297 WKRetainPtr<WKStringRef> modifiersKey(AdoptWK, WKStringCreateWithUTF8CString("Modifiers")); 298 298 WKRetainPtr<WKUInt64Ref> modifiersRef(AdoptWK, WKUInt64Create(modifiers)); 299 WKDictionary AddItem(EventSenderMessageBody.get(), modifiersKey.get(), modifiersRef.get());299 WKDictionarySetItem(EventSenderMessageBody.get(), modifiersKey.get(), modifiersRef.get()); 300 300 301 301 WKRetainPtr<WKStringRef> locationKey(AdoptWK, WKStringCreateWithUTF8CString("Location")); 302 302 WKRetainPtr<WKUInt64Ref> locationRef(AdoptWK, WKUInt64Create(location)); 303 WKDictionary AddItem(EventSenderMessageBody.get(), locationKey.get(), locationRef.get());303 WKDictionarySetItem(EventSenderMessageBody.get(), locationKey.get(), locationRef.get()); 304 304 305 305 return EventSenderMessageBody; … … 334 334 WKRetainPtr<WKStringRef> subMessageKey(AdoptWK, WKStringCreateWithUTF8CString("SubMessage")); 335 335 WKRetainPtr<WKStringRef> subMessageName(AdoptWK, WKStringCreateWithUTF8CString("MouseScrollBy")); 336 WKDictionary AddItem(EventSenderMessageBody.get(), subMessageKey.get(), subMessageName.get());336 WKDictionarySetItem(EventSenderMessageBody.get(), subMessageKey.get(), subMessageName.get()); 337 337 338 338 WKRetainPtr<WKStringRef> xKey(AdoptWK, WKStringCreateWithUTF8CString("X")); 339 339 WKRetainPtr<WKDoubleRef> xRef(AdoptWK, WKDoubleCreate(x)); 340 WKDictionary AddItem(EventSenderMessageBody.get(), xKey.get(), xRef.get());340 WKDictionarySetItem(EventSenderMessageBody.get(), xKey.get(), xRef.get()); 341 341 342 342 WKRetainPtr<WKStringRef> yKey(AdoptWK, WKStringCreateWithUTF8CString("Y")); 343 343 WKRetainPtr<WKDoubleRef> yRef(AdoptWK, WKDoubleCreate(y)); 344 WKDictionary AddItem(EventSenderMessageBody.get(), yKey.get(), yRef.get());344 WKDictionarySetItem(EventSenderMessageBody.get(), yKey.get(), yRef.get()); 345 345 346 346 WKBundlePostSynchronousMessage(InjectedBundle::shared().bundle(), EventSenderMessageName.get(), EventSenderMessageBody.get(), 0); … … 354 354 WKRetainPtr<WKStringRef> subMessageKey(AdoptWK, WKStringCreateWithUTF8CString("SubMessage")); 355 355 WKRetainPtr<WKStringRef> subMessageName(AdoptWK, WKStringCreateWithUTF8CString("ContinuousMouseScrollBy")); 356 WKDictionary AddItem(EventSenderMessageBody.get(), subMessageKey.get(), subMessageName.get());356 WKDictionarySetItem(EventSenderMessageBody.get(), subMessageKey.get(), subMessageName.get()); 357 357 358 358 WKRetainPtr<WKStringRef> xKey(AdoptWK, WKStringCreateWithUTF8CString("X")); 359 359 WKRetainPtr<WKDoubleRef> xRef(AdoptWK, WKDoubleCreate(x)); 360 WKDictionary AddItem(EventSenderMessageBody.get(), xKey.get(), xRef.get());360 WKDictionarySetItem(EventSenderMessageBody.get(), xKey.get(), xRef.get()); 361 361 362 362 WKRetainPtr<WKStringRef> yKey(AdoptWK, WKStringCreateWithUTF8CString("Y")); 363 363 WKRetainPtr<WKDoubleRef> yRef(AdoptWK, WKDoubleCreate(y)); 364 WKDictionary AddItem(EventSenderMessageBody.get(), yKey.get(), yRef.get());364 WKDictionarySetItem(EventSenderMessageBody.get(), yKey.get(), yRef.get()); 365 365 366 366 WKRetainPtr<WKStringRef> pagedKey(AdoptWK, WKStringCreateWithUTF8CString("Paged")); 367 367 WKRetainPtr<WKUInt64Ref> pagedRef(AdoptWK, WKUInt64Create(paged)); 368 WKDictionary AddItem(EventSenderMessageBody.get(), pagedKey.get(), pagedRef.get());368 WKDictionarySetItem(EventSenderMessageBody.get(), pagedKey.get(), pagedRef.get()); 369 369 370 370 WKBundlePostSynchronousMessage(InjectedBundle::shared().bundle(), EventSenderMessageName.get(), EventSenderMessageBody.get(), 0); … … 448 448 WKRetainPtr<WKStringRef> subMessageKey(AdoptWK, WKStringCreateWithUTF8CString("SubMessage")); 449 449 WKRetainPtr<WKStringRef> subMessageName(AdoptWK, WKStringCreateWithUTF8CString("AddTouchPoint")); 450 WKDictionary AddItem(EventSenderMessageBody.get(), subMessageKey.get(), subMessageName.get());450 WKDictionarySetItem(EventSenderMessageBody.get(), subMessageKey.get(), subMessageName.get()); 451 451 452 452 WKRetainPtr<WKStringRef> xKey(AdoptWK, WKStringCreateWithUTF8CString("X")); 453 453 WKRetainPtr<WKUInt64Ref> xRef(AdoptWK, WKUInt64Create(x)); 454 WKDictionary AddItem(EventSenderMessageBody.get(), xKey.get(), xRef.get());454 WKDictionarySetItem(EventSenderMessageBody.get(), xKey.get(), xRef.get()); 455 455 456 456 WKRetainPtr<WKStringRef> yKey(AdoptWK, WKStringCreateWithUTF8CString("Y")); 457 457 WKRetainPtr<WKUInt64Ref> yRef(AdoptWK, WKUInt64Create(y)); 458 WKDictionary AddItem(EventSenderMessageBody.get(), yKey.get(), yRef.get());458 WKDictionarySetItem(EventSenderMessageBody.get(), yKey.get(), yRef.get()); 459 459 460 460 WKBundlePostSynchronousMessage(InjectedBundle::shared().bundle(), EventSenderMessageName.get(), EventSenderMessageBody.get(), 0); … … 468 468 WKRetainPtr<WKStringRef> subMessageKey(AdoptWK, WKStringCreateWithUTF8CString("SubMessage")); 469 469 WKRetainPtr<WKStringRef> subMessageName(AdoptWK, WKStringCreateWithUTF8CString("UpdateTouchPoint")); 470 WKDictionary AddItem(EventSenderMessageBody.get(), subMessageKey.get(), subMessageName.get());470 WKDictionarySetItem(EventSenderMessageBody.get(), subMessageKey.get(), subMessageName.get()); 471 471 472 472 WKRetainPtr<WKStringRef> indexKey(AdoptWK, WKStringCreateWithUTF8CString("Index")); 473 473 WKRetainPtr<WKUInt64Ref> indexRef(AdoptWK, WKUInt64Create(index)); 474 WKDictionary AddItem(EventSenderMessageBody.get(), indexKey.get(), indexRef.get());474 WKDictionarySetItem(EventSenderMessageBody.get(), indexKey.get(), indexRef.get()); 475 475 476 476 WKRetainPtr<WKStringRef> xKey(AdoptWK, WKStringCreateWithUTF8CString("X")); 477 477 WKRetainPtr<WKUInt64Ref> xRef(AdoptWK, WKUInt64Create(x)); 478 WKDictionary AddItem(EventSenderMessageBody.get(), xKey.get(), xRef.get());478 WKDictionarySetItem(EventSenderMessageBody.get(), xKey.get(), xRef.get()); 479 479 480 480 WKRetainPtr<WKStringRef> yKey(AdoptWK, WKStringCreateWithUTF8CString("Y")); 481 481 WKRetainPtr<WKUInt64Ref> yRef(AdoptWK, WKUInt64Create(y)); 482 WKDictionary AddItem(EventSenderMessageBody.get(), yKey.get(), yRef.get());482 WKDictionarySetItem(EventSenderMessageBody.get(), yKey.get(), yRef.get()); 483 483 484 484 WKBundlePostSynchronousMessage(InjectedBundle::shared().bundle(), EventSenderMessageName.get(), EventSenderMessageBody.get(), 0); … … 492 492 WKRetainPtr<WKStringRef> subMessageKey(AdoptWK, WKStringCreateWithUTF8CString("SubMessage")); 493 493 WKRetainPtr<WKStringRef> subMessageName(AdoptWK, WKStringCreateWithUTF8CString("SetTouchModifier")); 494 WKDictionary AddItem(EventSenderMessageBody.get(), subMessageKey.get(), subMessageName.get());494 WKDictionarySetItem(EventSenderMessageBody.get(), subMessageKey.get(), subMessageName.get()); 495 495 496 496 WKEventModifiers mod = 0; … … 506 506 WKRetainPtr<WKStringRef> modifierKey(AdoptWK, WKStringCreateWithUTF8CString("Modifier")); 507 507 WKRetainPtr<WKUInt64Ref> modifierRef(AdoptWK, WKUInt64Create(mod)); 508 WKDictionary AddItem(EventSenderMessageBody.get(), modifierKey.get(), modifierRef.get());508 WKDictionarySetItem(EventSenderMessageBody.get(), modifierKey.get(), modifierRef.get()); 509 509 510 510 WKRetainPtr<WKStringRef> enableKey(AdoptWK, WKStringCreateWithUTF8CString("Enable")); 511 511 WKRetainPtr<WKUInt64Ref> enableRef(AdoptWK, WKUInt64Create(enable)); 512 WKDictionary AddItem(EventSenderMessageBody.get(), enableKey.get(), enableRef.get());512 WKDictionarySetItem(EventSenderMessageBody.get(), enableKey.get(), enableRef.get()); 513 513 514 514 WKBundlePostSynchronousMessage(InjectedBundle::shared().bundle(), EventSenderMessageName.get(), EventSenderMessageBody.get(), 0); … … 523 523 WKRetainPtr<WKStringRef> subMessageKey(AdoptWK, WKStringCreateWithUTF8CString("SubMessage")); 524 524 WKRetainPtr<WKStringRef> subMessageName(AdoptWK, WKStringCreateWithUTF8CString("SetTouchPointRadius")); 525 WKDictionary AddItem(EventSenderMessageBody.get(), subMessageKey.get(), subMessageName.get());525 WKDictionarySetItem(EventSenderMessageBody.get(), subMessageKey.get(), subMessageName.get()); 526 526 527 527 WKRetainPtr<WKStringRef> xKey(AdoptWK, WKStringCreateWithUTF8CString("RadiusX")); 528 528 WKRetainPtr<WKUInt64Ref> xRef(AdoptWK, WKUInt64Create(radiusX)); 529 WKDictionary AddItem(EventSenderMessageBody.get(), xKey.get(), xRef.get());529 WKDictionarySetItem(EventSenderMessageBody.get(), xKey.get(), xRef.get()); 530 530 531 531 WKRetainPtr<WKStringRef> yKey(AdoptWK, WKStringCreateWithUTF8CString("RadiusY")); 532 532 WKRetainPtr<WKUInt64Ref> yRef(AdoptWK, WKUInt64Create(radiusY)); 533 WKDictionary AddItem(EventSenderMessageBody.get(), yKey.get(), yRef.get());533 WKDictionarySetItem(EventSenderMessageBody.get(), yKey.get(), yRef.get()); 534 534 535 535 WKBundlePostSynchronousMessage(InjectedBundle::shared().bundle(), EventSenderMessageName.get(), EventSenderMessageBody.get(), 0); … … 543 543 WKRetainPtr<WKStringRef> subMessageKey(AdoptWK, WKStringCreateWithUTF8CString("SubMessage")); 544 544 WKRetainPtr<WKStringRef> subMessageName(AdoptWK, WKStringCreateWithUTF8CString("TouchStart")); 545 WKDictionary AddItem(EventSenderMessageBody.get(), subMessageKey.get(), subMessageName.get());545 WKDictionarySetItem(EventSenderMessageBody.get(), subMessageKey.get(), subMessageName.get()); 546 546 547 547 WKBundlePostSynchronousMessage(InjectedBundle::shared().bundle(), EventSenderMessageName.get(), EventSenderMessageBody.get(), 0); … … 555 555 WKRetainPtr<WKStringRef> subMessageKey(AdoptWK, WKStringCreateWithUTF8CString("SubMessage")); 556 556 WKRetainPtr<WKStringRef> subMessageName(AdoptWK, WKStringCreateWithUTF8CString("TouchMove")); 557 WKDictionary AddItem(EventSenderMessageBody.get(), subMessageKey.get(), subMessageName.get());557 WKDictionarySetItem(EventSenderMessageBody.get(), subMessageKey.get(), subMessageName.get()); 558 558 559 559 WKBundlePostSynchronousMessage(InjectedBundle::shared().bundle(), EventSenderMessageName.get(), EventSenderMessageBody.get(), 0); … … 567 567 WKRetainPtr<WKStringRef> subMessageKey(AdoptWK, WKStringCreateWithUTF8CString("SubMessage")); 568 568 WKRetainPtr<WKStringRef> subMessageName(AdoptWK, WKStringCreateWithUTF8CString("TouchEnd")); 569 WKDictionary AddItem(EventSenderMessageBody.get(), subMessageKey.get(), subMessageName.get());569 WKDictionarySetItem(EventSenderMessageBody.get(), subMessageKey.get(), subMessageName.get()); 570 570 571 571 WKBundlePostSynchronousMessage(InjectedBundle::shared().bundle(), EventSenderMessageName.get(), EventSenderMessageBody.get(), 0); … … 579 579 WKRetainPtr<WKStringRef> subMessageKey(AdoptWK, WKStringCreateWithUTF8CString("SubMessage")); 580 580 WKRetainPtr<WKStringRef> subMessageName(AdoptWK, WKStringCreateWithUTF8CString("TouchCancel")); 581 WKDictionary AddItem(EventSenderMessageBody.get(), subMessageKey.get(), subMessageName.get());581 WKDictionarySetItem(EventSenderMessageBody.get(), subMessageKey.get(), subMessageName.get()); 582 582 583 583 WKBundlePostSynchronousMessage(InjectedBundle::shared().bundle(), EventSenderMessageName.get(), EventSenderMessageBody.get(), 0); … … 591 591 WKRetainPtr<WKStringRef> subMessageKey(AdoptWK, WKStringCreateWithUTF8CString("SubMessage")); 592 592 WKRetainPtr<WKStringRef> subMessageName(AdoptWK, WKStringCreateWithUTF8CString("ClearTouchPoints")); 593 WKDictionary AddItem(EventSenderMessageBody.get(), subMessageKey.get(), subMessageName.get());593 WKDictionarySetItem(EventSenderMessageBody.get(), subMessageKey.get(), subMessageName.get()); 594 594 595 595 WKBundlePostSynchronousMessage(InjectedBundle::shared().bundle(), EventSenderMessageName.get(), EventSenderMessageBody.get(), 0); … … 603 603 WKRetainPtr<WKStringRef> subMessageKey(AdoptWK, WKStringCreateWithUTF8CString("SubMessage")); 604 604 WKRetainPtr<WKStringRef> subMessageName(AdoptWK, WKStringCreateWithUTF8CString("ReleaseTouchPoint")); 605 WKDictionary AddItem(EventSenderMessageBody.get(), subMessageKey.get(), subMessageName.get());605 WKDictionarySetItem(EventSenderMessageBody.get(), subMessageKey.get(), subMessageName.get()); 606 606 607 607 WKRetainPtr<WKStringRef> indexKey(AdoptWK, WKStringCreateWithUTF8CString("Index")); 608 608 WKRetainPtr<WKUInt64Ref> indexRef(AdoptWK, WKUInt64Create(index)); 609 WKDictionary AddItem(EventSenderMessageBody.get(), indexKey.get(), indexRef.get());609 WKDictionarySetItem(EventSenderMessageBody.get(), indexKey.get(), indexRef.get()); 610 610 611 611 WKBundlePostSynchronousMessage(InjectedBundle::shared().bundle(), EventSenderMessageName.get(), EventSenderMessageBody.get(), 0); … … 619 619 WKRetainPtr<WKStringRef> subMessageKey(AdoptWK, WKStringCreateWithUTF8CString("SubMessage")); 620 620 WKRetainPtr<WKStringRef> subMessageName(AdoptWK, WKStringCreateWithUTF8CString("CancelTouchPoint")); 621 WKDictionary AddItem(EventSenderMessageBody.get(), subMessageKey.get(), subMessageName.get());621 WKDictionarySetItem(EventSenderMessageBody.get(), subMessageKey.get(), subMessageName.get()); 622 622 623 623 WKRetainPtr<WKStringRef> indexKey(AdoptWK, WKStringCreateWithUTF8CString("Index")); 624 624 WKRetainPtr<WKUInt64Ref> indexRef(AdoptWK, WKUInt64Create(index)); 625 WKDictionary AddItem(EventSenderMessageBody.get(), indexKey.get(), indexRef.get());625 WKDictionarySetItem(EventSenderMessageBody.get(), indexKey.get(), indexRef.get()); 626 626 627 627 WKBundlePostSynchronousMessage(InjectedBundle::shared().bundle(), EventSenderMessageName.get(), EventSenderMessageBody.get(), 0); -
trunk/Tools/WebKitTestRunner/InjectedBundle/InjectedBundle.cpp
r160104 r160811 294 294 295 295 WKRetainPtr<WKStringRef> pixelResultKey = adoptWK(WKStringCreateWithUTF8CString("PixelResult")); 296 WKDictionary AddItem(doneMessageBody.get(), pixelResultKey.get(), m_pixelResult.get());296 WKDictionarySetItem(doneMessageBody.get(), pixelResultKey.get(), m_pixelResult.get()); 297 297 298 298 WKRetainPtr<WKStringRef> repaintRectsKey = adoptWK(WKStringCreateWithUTF8CString("RepaintRects")); 299 WKDictionary AddItem(doneMessageBody.get(), repaintRectsKey.get(), m_repaintRects.get());299 WKDictionarySetItem(doneMessageBody.get(), repaintRectsKey.get(), m_repaintRects.get()); 300 300 301 301 WKRetainPtr<WKStringRef> audioResultKey = adoptWK(WKStringCreateWithUTF8CString("AudioResult")); 302 WKDictionary AddItem(doneMessageBody.get(), audioResultKey.get(), m_audioResult.get());302 WKDictionarySetItem(doneMessageBody.get(), audioResultKey.get(), m_audioResult.get()); 303 303 304 304 WKBundlePostMessage(m_bundle, doneMessageName.get(), doneMessageBody.get()); … … 399 399 WKRetainPtr<WKStringRef> latitudeKeyWK(AdoptWK, WKStringCreateWithUTF8CString("latitude")); 400 400 WKRetainPtr<WKDoubleRef> latitudeWK(AdoptWK, WKDoubleCreate(latitude)); 401 WKDictionary AddItem(messageBody.get(), latitudeKeyWK.get(), latitudeWK.get());401 WKDictionarySetItem(messageBody.get(), latitudeKeyWK.get(), latitudeWK.get()); 402 402 403 403 WKRetainPtr<WKStringRef> longitudeKeyWK(AdoptWK, WKStringCreateWithUTF8CString("longitude")); 404 404 WKRetainPtr<WKDoubleRef> longitudeWK(AdoptWK, WKDoubleCreate(longitude)); 405 WKDictionary AddItem(messageBody.get(), longitudeKeyWK.get(), longitudeWK.get());405 WKDictionarySetItem(messageBody.get(), longitudeKeyWK.get(), longitudeWK.get()); 406 406 407 407 WKRetainPtr<WKStringRef> accuracyKeyWK(AdoptWK, WKStringCreateWithUTF8CString("accuracy")); 408 408 WKRetainPtr<WKDoubleRef> accuracyWK(AdoptWK, WKDoubleCreate(accuracy)); 409 WKDictionary AddItem(messageBody.get(), accuracyKeyWK.get(), accuracyWK.get());409 WKDictionarySetItem(messageBody.get(), accuracyKeyWK.get(), accuracyWK.get()); 410 410 411 411 WKRetainPtr<WKStringRef> providesAltitudeKeyWK(AdoptWK, WKStringCreateWithUTF8CString("providesAltitude")); 412 412 WKRetainPtr<WKBooleanRef> providesAltitudeWK(AdoptWK, WKBooleanCreate(providesAltitude)); 413 WKDictionary AddItem(messageBody.get(), providesAltitudeKeyWK.get(), providesAltitudeWK.get());413 WKDictionarySetItem(messageBody.get(), providesAltitudeKeyWK.get(), providesAltitudeWK.get()); 414 414 415 415 WKRetainPtr<WKStringRef> altitudeKeyWK(AdoptWK, WKStringCreateWithUTF8CString("altitude")); 416 416 WKRetainPtr<WKDoubleRef> altitudeWK(AdoptWK, WKDoubleCreate(altitude)); 417 WKDictionary AddItem(messageBody.get(), altitudeKeyWK.get(), altitudeWK.get());417 WKDictionarySetItem(messageBody.get(), altitudeKeyWK.get(), altitudeWK.get()); 418 418 419 419 WKRetainPtr<WKStringRef> providesAltitudeAccuracyKeyWK(AdoptWK, WKStringCreateWithUTF8CString("providesAltitudeAccuracy")); 420 420 WKRetainPtr<WKBooleanRef> providesAltitudeAccuracyWK(AdoptWK, WKBooleanCreate(providesAltitudeAccuracy)); 421 WKDictionary AddItem(messageBody.get(), providesAltitudeAccuracyKeyWK.get(), providesAltitudeAccuracyWK.get());421 WKDictionarySetItem(messageBody.get(), providesAltitudeAccuracyKeyWK.get(), providesAltitudeAccuracyWK.get()); 422 422 423 423 WKRetainPtr<WKStringRef> altitudeAccuracyKeyWK(AdoptWK, WKStringCreateWithUTF8CString("altitudeAccuracy")); 424 424 WKRetainPtr<WKDoubleRef> altitudeAccuracyWK(AdoptWK, WKDoubleCreate(altitudeAccuracy)); 425 WKDictionary AddItem(messageBody.get(), altitudeAccuracyKeyWK.get(), altitudeAccuracyWK.get());425 WKDictionarySetItem(messageBody.get(), altitudeAccuracyKeyWK.get(), altitudeAccuracyWK.get()); 426 426 427 427 WKRetainPtr<WKStringRef> providesHeadingKeyWK(AdoptWK, WKStringCreateWithUTF8CString("providesHeading")); 428 428 WKRetainPtr<WKBooleanRef> providesHeadingWK(AdoptWK, WKBooleanCreate(providesHeading)); 429 WKDictionary AddItem(messageBody.get(), providesHeadingKeyWK.get(), providesHeadingWK.get());429 WKDictionarySetItem(messageBody.get(), providesHeadingKeyWK.get(), providesHeadingWK.get()); 430 430 431 431 WKRetainPtr<WKStringRef> headingKeyWK(AdoptWK, WKStringCreateWithUTF8CString("heading")); 432 432 WKRetainPtr<WKDoubleRef> headingWK(AdoptWK, WKDoubleCreate(heading)); 433 WKDictionary AddItem(messageBody.get(), headingKeyWK.get(), headingWK.get());433 WKDictionarySetItem(messageBody.get(), headingKeyWK.get(), headingWK.get()); 434 434 435 435 WKRetainPtr<WKStringRef> providesSpeedKeyWK(AdoptWK, WKStringCreateWithUTF8CString("providesSpeed")); 436 436 WKRetainPtr<WKBooleanRef> providesSpeedWK(AdoptWK, WKBooleanCreate(providesSpeed)); 437 WKDictionary AddItem(messageBody.get(), providesSpeedKeyWK.get(), providesSpeedWK.get());437 WKDictionarySetItem(messageBody.get(), providesSpeedKeyWK.get(), providesSpeedWK.get()); 438 438 439 439 WKRetainPtr<WKStringRef> speedKeyWK(AdoptWK, WKStringCreateWithUTF8CString("speed")); 440 440 WKRetainPtr<WKDoubleRef> speedWK(AdoptWK, WKDoubleCreate(speed)); 441 WKDictionary AddItem(messageBody.get(), speedKeyWK.get(), speedWK.get());441 WKDictionarySetItem(messageBody.get(), speedKeyWK.get(), speedWK.get()); 442 442 443 443 WKBundlePostMessage(m_bundle, messageName.get(), messageBody.get()); … … 458 458 WKRetainPtr<WKStringRef> enabledKeyWK(AdoptWK, WKStringCreateWithUTF8CString("enabled")); 459 459 WKRetainPtr<WKBooleanRef> enabledWK(AdoptWK, WKBooleanCreate(enabled)); 460 WKDictionary AddItem(messageBody.get(), enabledKeyWK.get(), enabledWK.get());460 WKDictionarySetItem(messageBody.get(), enabledKeyWK.get(), enabledWK.get()); 461 461 462 462 WKRetainPtr<WKStringRef> permissiveKeyWK(AdoptWK, WKStringCreateWithUTF8CString("permissive")); 463 463 WKRetainPtr<WKBooleanRef> permissiveWK(AdoptWK, WKBooleanCreate(permissive)); 464 WKDictionary AddItem(messageBody.get(), permissiveKeyWK.get(), permissiveWK.get());464 WKDictionarySetItem(messageBody.get(), permissiveKeyWK.get(), permissiveWK.get()); 465 465 466 466 WKBundlePostMessage(m_bundle, messageName.get(), messageBody.get()); … … 474 474 WKRetainPtr<WKStringRef> visibilityStateKeyWK(AdoptWK, WKStringCreateWithUTF8CString("visibilityState")); 475 475 WKRetainPtr<WKUInt64Ref> visibilityStateWK(AdoptWK, WKUInt64Create(visibilityState)); 476 WKDictionary AddItem(messageBody.get(), visibilityStateKeyWK.get(), visibilityStateWK.get());476 WKDictionarySetItem(messageBody.get(), visibilityStateKeyWK.get(), visibilityStateWK.get()); 477 477 478 478 WKRetainPtr<WKStringRef> isInitialKeyWK(AdoptWK, WKStringCreateWithUTF8CString("isInitialState")); 479 479 WKRetainPtr<WKBooleanRef> isInitialWK(AdoptWK, WKBooleanCreate(isInitialState)); 480 WKDictionary AddItem(messageBody.get(), isInitialKeyWK.get(), isInitialWK.get());480 WKDictionarySetItem(messageBody.get(), isInitialKeyWK.get(), isInitialWK.get()); 481 481 482 482 WKBundlePostMessage(m_bundle, messageName.get(), messageBody.get()); … … 529 529 530 530 WKRetainPtr<WKStringRef> urlKey(AdoptWK, WKStringCreateWithUTF8CString("url")); 531 WKDictionary AddItem(loadData.get(), urlKey.get(), url);531 WKDictionarySetItem(loadData.get(), urlKey.get(), url); 532 532 533 533 WKRetainPtr<WKStringRef> targetKey(AdoptWK, WKStringCreateWithUTF8CString("target")); 534 WKDictionary AddItem(loadData.get(), targetKey.get(), target);534 WKDictionarySetItem(loadData.get(), targetKey.get(), target); 535 535 536 536 WKBundlePostMessage(m_bundle, messageName.get(), loadData.get()); … … 546 546 547 547 WKRetainPtr<WKStringRef> contentKey(AdoptWK, WKStringCreateWithUTF8CString("content")); 548 WKDictionary AddItem(loadData.get(), contentKey.get(), content);548 WKDictionarySetItem(loadData.get(), contentKey.get(), content); 549 549 550 550 if (baseURL) { 551 551 WKRetainPtr<WKStringRef> baseURLKey(AdoptWK, WKStringCreateWithUTF8CString("baseURL")); 552 WKDictionary AddItem(loadData.get(), baseURLKey.get(), baseURL);552 WKDictionarySetItem(loadData.get(), baseURLKey.get(), baseURL); 553 553 } 554 554 555 555 if (unreachableURL) { 556 556 WKRetainPtr<WKStringRef> unreachableURLKey(AdoptWK, WKStringCreateWithUTF8CString("unreachableURL")); 557 WKDictionary AddItem(loadData.get(), unreachableURLKey.get(), unreachableURL);557 WKDictionarySetItem(loadData.get(), unreachableURLKey.get(), unreachableURL); 558 558 } 559 559 -
trunk/Tools/WebKitTestRunner/TestController.cpp
r160627 r160811 363 363 WKRetainPtr<WKStringRef> useRemoteLayerTreeKey = adoptWK(WKStringCreateWithUTF8CString("RemoteLayerTree")); 364 364 WKRetainPtr<WKBooleanRef> useRemoteLayerTreeValue = adoptWK(WKBooleanCreate(m_shouldUseRemoteLayerTree)); 365 WKDictionary AddItem(viewOptions.get(), useRemoteLayerTreeKey.get(), useRemoteLayerTreeValue.get());365 WKDictionarySetItem(viewOptions.get(), useRemoteLayerTreeKey.get(), useRemoteLayerTreeValue.get()); 366 366 } 367 367 … … 555 555 WKRetainPtr<WKStringRef> shouldGCKey = adoptWK(WKStringCreateWithUTF8CString("ShouldGC")); 556 556 WKRetainPtr<WKBooleanRef> shouldGCValue = adoptWK(WKBooleanCreate(m_gcBetweenTests)); 557 WKDictionary AddItem(resetMessageBody.get(), shouldGCKey.get(), shouldGCValue.get());557 WKDictionarySetItem(resetMessageBody.get(), shouldGCKey.get(), shouldGCValue.get()); 558 558 559 559 WKContextPostMessageToInjectedBundle(TestController::shared().context(), messageName.get(), resetMessageBody.get()); -
trunk/Tools/WebKitTestRunner/TestInvocation.cpp
r160459 r160811 150 150 WKRetainPtr<WKStringRef> useThreadedScrollingKey = adoptWK(WKStringCreateWithUTF8CString("ThreadedScrolling")); 151 151 WKRetainPtr<WKBooleanRef> useThreadedScrollingValue = adoptWK(WKBooleanCreate(shouldUseThreadedScrolling(pathOrURL))); 152 WKDictionary AddItem(viewOptions.get(), useThreadedScrollingKey.get(), useThreadedScrollingValue.get());152 WKDictionarySetItem(viewOptions.get(), useThreadedScrollingKey.get(), useThreadedScrollingValue.get()); 153 153 154 154 WKRetainPtr<WKStringRef> useRemoteLayerTreeKey = adoptWK(WKStringCreateWithUTF8CString("RemoteLayerTree")); 155 155 WKRetainPtr<WKBooleanRef> useRemoteLayerTreeValue = adoptWK(WKBooleanCreate(TestController::shared().shouldUseRemoteLayerTree())); 156 WKDictionary AddItem(viewOptions.get(), useRemoteLayerTreeKey.get(), useRemoteLayerTreeValue.get());156 WKDictionarySetItem(viewOptions.get(), useRemoteLayerTreeKey.get(), useRemoteLayerTreeValue.get()); 157 157 158 158 TestController::shared().ensureViewSupportsOptions(viewOptions.get()); … … 183 183 WKRetainPtr<WKStringRef> useFixedLayoutKey = adoptWK(WKStringCreateWithUTF8CString("UseFixedLayout")); 184 184 WKRetainPtr<WKBooleanRef> useFixedLayoutValue = adoptWK(WKBooleanCreate(shouldUseFixedLayout(pathOrURL))); 185 WKDictionary AddItem(viewOptions.get(), useFixedLayoutKey.get(), useFixedLayoutValue.get());185 WKDictionarySetItem(viewOptions.get(), useFixedLayoutKey.get(), useFixedLayoutValue.get()); 186 186 187 187 TestController::shared().ensureViewSupportsOptions(viewOptions.get()); … … 202 202 WKRetainPtr<WKStringRef> dumpFrameLoadDelegatesKey = adoptWK(WKStringCreateWithUTF8CString("DumpFrameLoadDelegates")); 203 203 WKRetainPtr<WKBooleanRef> dumpFrameLoadDelegatesValue = adoptWK(WKBooleanCreate(shouldLogFrameLoadDelegates(m_pathOrURL.c_str()))); 204 WKDictionary AddItem(beginTestMessageBody.get(), dumpFrameLoadDelegatesKey.get(), dumpFrameLoadDelegatesValue.get());204 WKDictionarySetItem(beginTestMessageBody.get(), dumpFrameLoadDelegatesKey.get(), dumpFrameLoadDelegatesValue.get()); 205 205 206 206 WKRetainPtr<WKStringRef> dumpPixelsKey = adoptWK(WKStringCreateWithUTF8CString("DumpPixels")); 207 207 WKRetainPtr<WKBooleanRef> dumpPixelsValue = adoptWK(WKBooleanCreate(m_dumpPixels)); 208 WKDictionary AddItem(beginTestMessageBody.get(), dumpPixelsKey.get(), dumpPixelsValue.get());208 WKDictionarySetItem(beginTestMessageBody.get(), dumpPixelsKey.get(), dumpPixelsValue.get()); 209 209 210 210 WKRetainPtr<WKStringRef> useWaitToDumpWatchdogTimerKey = adoptWK(WKStringCreateWithUTF8CString("UseWaitToDumpWatchdogTimer")); 211 211 WKRetainPtr<WKBooleanRef> useWaitToDumpWatchdogTimerValue = adoptWK(WKBooleanCreate(TestController::shared().useWaitToDumpWatchdogTimer())); 212 WKDictionary AddItem(beginTestMessageBody.get(), useWaitToDumpWatchdogTimerKey.get(), useWaitToDumpWatchdogTimerValue.get());212 WKDictionarySetItem(beginTestMessageBody.get(), useWaitToDumpWatchdogTimerKey.get(), useWaitToDumpWatchdogTimerValue.get()); 213 213 214 214 WKRetainPtr<WKStringRef> timeoutKey = adoptWK(WKStringCreateWithUTF8CString("Timeout")); 215 215 WKRetainPtr<WKUInt64Ref> timeoutValue = adoptWK(WKUInt64Create(m_timeout)); 216 WKDictionary AddItem(beginTestMessageBody.get(), timeoutKey.get(), timeoutValue.get());216 WKDictionarySetItem(beginTestMessageBody.get(), timeoutKey.get(), timeoutValue.get()); 217 217 218 218 WKContextPostMessageToInjectedBundle(TestController::shared().context(), messageName.get(), beginTestMessageBody.get());
Note: See TracChangeset
for help on using the changeset viewer.