|
Lines 993-998
static JSValueRef setFrameFlatteningEnabledCallback(JSContextRef context, JSObje
a/WebKitTools/DumpRenderTree/LayoutTestController.cpp_sec1
|
| 993 |
return JSValueMakeUndefined(context); |
993 |
return JSValueMakeUndefined(context); |
| 994 |
} |
994 |
} |
| 995 |
|
995 |
|
|
|
996 |
static JSValueRef visibleValidationMessageForElementByIdCallback(JSContextRef context, JSObjectRef function, JSObjectRef thisObject, size_t argumentCount, const JSValueRef arguments[], JSValueRef* exception) |
| 997 |
{ |
| 998 |
if (argumentCount < 1) |
| 999 |
return JSValueMakeUndefined(context); |
| 1000 |
JSRetainPtr<JSStringRef> elementId(Adopt, JSValueToStringCopy(context, arguments[0], exception)); |
| 1001 |
ASSERT(!*exception); |
| 1002 |
|
| 1003 |
LayoutTestController* controller = static_cast<LayoutTestController*>(JSObjectGetPrivate(thisObject)); |
| 1004 |
JSRetainPtr<JSStringRef> message(controller->visibleValidationMessageForElementById(elementId.get())); |
| 1005 |
if (!message.get()) |
| 1006 |
return JSValueMakeUndefined(context); |
| 1007 |
return JSValueMakeString(context, message.get()); |
| 1008 |
} |
| 1009 |
|
| 996 |
static JSValueRef setAllowUniversalAccessFromFileURLsCallback(JSContextRef context, JSObjectRef function, JSObjectRef thisObject, size_t argumentCount, const JSValueRef arguments[], JSValueRef* exception) |
1010 |
static JSValueRef setAllowUniversalAccessFromFileURLsCallback(JSContextRef context, JSObjectRef function, JSObjectRef thisObject, size_t argumentCount, const JSValueRef arguments[], JSValueRef* exception) |
| 997 |
{ |
1011 |
{ |
| 998 |
// Has mac & windows implementation |
1012 |
// Has mac & windows implementation |
|
Lines 1665-1670
JSStaticFunction* LayoutTestController::staticFunctions()
a/WebKitTools/DumpRenderTree/LayoutTestController.cpp_sec2
|
| 1665 |
{ "showWebInspector", showWebInspectorCallback, kJSPropertyAttributeReadOnly | kJSPropertyAttributeDontDelete }, |
1679 |
{ "showWebInspector", showWebInspectorCallback, kJSPropertyAttributeReadOnly | kJSPropertyAttributeDontDelete }, |
| 1666 |
{ "testOnscreen", testOnscreenCallback, kJSPropertyAttributeReadOnly | kJSPropertyAttributeDontDelete }, |
1680 |
{ "testOnscreen", testOnscreenCallback, kJSPropertyAttributeReadOnly | kJSPropertyAttributeDontDelete }, |
| 1667 |
{ "testRepaint", testRepaintCallback, kJSPropertyAttributeReadOnly | kJSPropertyAttributeDontDelete }, |
1681 |
{ "testRepaint", testRepaintCallback, kJSPropertyAttributeReadOnly | kJSPropertyAttributeDontDelete }, |
|
|
1682 |
{ "visibleValidationMessageForElementById", visibleValidationMessageForElementByIdCallback, kJSPropertyAttributeReadOnly | kJSPropertyAttributeDontDelete }, |
| 1668 |
{ "waitForPolicyDelegate", waitForPolicyDelegateCallback, kJSPropertyAttributeReadOnly | kJSPropertyAttributeDontDelete }, |
1683 |
{ "waitForPolicyDelegate", waitForPolicyDelegateCallback, kJSPropertyAttributeReadOnly | kJSPropertyAttributeDontDelete }, |
| 1669 |
{ "waitUntilDone", waitUntilDoneCallback, kJSPropertyAttributeReadOnly | kJSPropertyAttributeDontDelete }, |
1684 |
{ "waitUntilDone", waitUntilDoneCallback, kJSPropertyAttributeReadOnly | kJSPropertyAttributeDontDelete }, |
| 1670 |
{ "windowCount", windowCountCallback, kJSPropertyAttributeReadOnly | kJSPropertyAttributeDontDelete }, |
1685 |
{ "windowCount", windowCountCallback, kJSPropertyAttributeReadOnly | kJSPropertyAttributeDontDelete }, |