Changeset 61909 in webkit
- Timestamp:
- Jun 25, 2010 3:34:27 PM (14 years ago)
- Location:
- trunk/WebKitTools
- Files:
-
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/WebKitTools/ChangeLog
r61906 r61909 1 2010-06-25 Prasad Tammana <prasadt@chromium.org> 2 3 Reviewed by Dmitry Titov. 4 5 Add empty abortModal() method to all platforms. 6 https://bugs.webkit.org/show_bug.cgi?id=40864 7 8 Add an empty abortModal() stub to LayoutTestController on all platforms to get rid of platform specific #ifs in 9 platform independent LayoutTestController code. Without this change, layout tests using LayoutTestController tests 10 that use abortModal will become mac specific which is not desirable. 11 12 * DumpRenderTree/LayoutTestController.cpp: 13 (abortModalCallback): 14 (LayoutTestController::staticFunctions): 15 * DumpRenderTree/LayoutTestController.h: 16 * DumpRenderTree/chromium/LayoutTestController.cpp: 17 (LayoutTestController::LayoutTestController): 18 (LayoutTestController::abortModal): 19 * DumpRenderTree/chromium/LayoutTestController.h: 20 * DumpRenderTree/gtk/LayoutTestControllerGtk.cpp: 21 (LayoutTestController::abortModal): 22 * DumpRenderTree/qt/LayoutTestControllerQt.h: 23 (LayoutTestController::abortModal): 24 * DumpRenderTree/win/LayoutTestControllerWin.cpp: 25 (LayoutTestController::abortModal): 26 * DumpRenderTree/wx/LayoutTestControllerWx.cpp: 27 (LayoutTestController::abortModal): 28 1 29 2010-06-25 Sam Weinig <sam@webkit.org> 2 30 -
trunk/WebKitTools/DumpRenderTree/LayoutTestController.cpp
r61670 r61909 1514 1514 1515 1515 1516 #if PLATFORM(MAC)1517 1516 static JSValueRef abortModalCallback(JSContextRef context, JSObjectRef function, JSObjectRef thisObject, size_t argumentCount, const JSValueRef arguments[], JSValueRef* exception) 1518 1517 { … … 1521 1520 return JSValueMakeUndefined(context); 1522 1521 } 1523 #endif1524 1522 1525 1523 static JSValueRef markerTextForListItemCallback(JSContextRef context, JSObjectRef, JSObjectRef thisObject, size_t argumentCount, const JSValueRef arguments[], JSValueRef* exception) … … 1649 1647 { 1650 1648 static JSStaticFunction staticFunctions[] = { 1651 #if PLATFORM(MAC)1652 1649 { "abortModal", abortModalCallback, kJSPropertyAttributeReadOnly | kJSPropertyAttributeDontDelete }, 1653 #endif1654 1650 { "addDisallowedURL", addDisallowedURLCallback, kJSPropertyAttributeReadOnly | kJSPropertyAttributeDontDelete }, 1655 1651 { "addUserScript", addUserScriptCallback, kJSPropertyAttributeReadOnly | kJSPropertyAttributeDontDelete }, -
trunk/WebKitTools/DumpRenderTree/LayoutTestController.h
r61670 r61909 261 261 void setWebViewEditable(bool); 262 262 263 264 #if PLATFORM(MAC)265 263 void abortModal(); 266 #endif267 264 268 265 // The following API test functions should probably be moved to platform-specific -
trunk/WebKitTools/DumpRenderTree/chromium/LayoutTestController.cpp
r60683 r61909 166 166 bindMethod("setMockGeolocationPosition", &LayoutTestController::setMockGeolocationPosition); 167 167 bindMethod("setMockGeolocationError", &LayoutTestController::setMockGeolocationError); 168 bindMethod("abortModal", &LayoutTestController::abortModal); 168 169 169 170 // The fallback method is called when an unknown method is invoked. … … 1313 1314 WebGeolocationServiceMock::setMockGeolocationError(arguments[0].toInt32(), cppVariantToWebString(arguments[1])); 1314 1315 } 1316 1317 void LayoutTestController::abortModal(const CppArgumentList& arguments, CppVariant* result) 1318 { 1319 result->setNull(); 1320 } -
trunk/WebKitTools/DumpRenderTree/chromium/LayoutTestController.h
r60032 r61909 287 287 void setMockGeolocationError(const CppArgumentList&, CppVariant*); 288 288 289 // Empty stub method to keep parity with object model exposed by global LayoutTestController. 290 void abortModal(const CppArgumentList&, CppVariant*); 291 289 292 public: 290 293 // The following methods are not exposed to JavaScript. -
trunk/WebKitTools/DumpRenderTree/gtk/LayoutTestControllerGtk.cpp
r61670 r61909 730 730 g_object_set(G_OBJECT(settings), "editing-behavior", WEBKIT_EDITING_BEHAVIOR_MAC, NULL); 731 731 } 732 733 void LayoutTestController::abortModal() 734 { 735 } -
trunk/WebKitTools/DumpRenderTree/qt/LayoutTestControllerQt.h
r61879 r61909 195 195 bool geolocationPermission() const { return m_geolocationPermission; } 196 196 197 // Empty stub method to keep parity with object model exposed by global LayoutTestController. 198 void abortModal() {} 199 197 200 /* 198 201 Policy values: 'on', 'auto' or 'off'. -
trunk/WebKitTools/DumpRenderTree/win/LayoutTestControllerWin.cpp
r61670 r61909 1309 1309 preferences->setEditingBehavior(WebKitEditingWinBehavior); 1310 1310 } 1311 1312 void LayoutTestController::abortModal() 1313 { 1314 } -
trunk/WebKitTools/DumpRenderTree/wx/LayoutTestControllerWx.cpp
r61723 r61909 453 453 } 454 454 455 void LayoutTestController::abortModal() 456 { 457 } 458 455 459 JSRetainPtr<JSStringRef> LayoutTestController::pageProperty(const char* propertyName, int pageNumber) const 456 460 {
Note: See TracChangeset
for help on using the changeset viewer.