| Index: Source/bindings/v8/custom/V8InjectedScriptHostCustom.cpp
|
| diff --git a/Source/bindings/v8/custom/V8InjectedScriptHostCustom.cpp b/Source/bindings/v8/custom/V8InjectedScriptHostCustom.cpp
|
| index b9e1381af474f559b1b9cfc42bae1c72713e85a1..3cf2bd4ae8216831c403841b51489f7f0f819a45 100644
|
| --- a/Source/bindings/v8/custom/V8InjectedScriptHostCustom.cpp
|
| +++ b/Source/bindings/v8/custom/V8InjectedScriptHostCustom.cpp
|
| @@ -380,7 +380,7 @@ static bool getFunctionLocation(const v8::FunctionCallbackInfo<v8::Value>& args,
|
| return true;
|
| }
|
|
|
| -void V8InjectedScriptHost::setBreakpointMethodCustom(const v8::FunctionCallbackInfo<v8::Value>& args)
|
| +void V8InjectedScriptHost::setDebugBreakpointMethodCustom(const v8::FunctionCallbackInfo<v8::Value>& args)
|
| {
|
| String scriptId;
|
| int lineNumber;
|
| @@ -389,10 +389,10 @@ void V8InjectedScriptHost::setBreakpointMethodCustom(const v8::FunctionCallbackI
|
| return;
|
|
|
| InjectedScriptHost* host = V8InjectedScriptHost::toNative(args.Holder());
|
| - host->setBreakpoint(scriptId, lineNumber, columnNumber);
|
| + host->setDebugBreakpoint(scriptId, lineNumber, columnNumber);
|
| }
|
|
|
| -void V8InjectedScriptHost::removeBreakpointMethodCustom(const v8::FunctionCallbackInfo<v8::Value>& args)
|
| +void V8InjectedScriptHost::removeDebugBreakpointMethodCustom(const v8::FunctionCallbackInfo<v8::Value>& args)
|
| {
|
| String scriptId;
|
| int lineNumber;
|
| @@ -401,9 +401,32 @@ void V8InjectedScriptHost::removeBreakpointMethodCustom(const v8::FunctionCallba
|
| return;
|
|
|
| InjectedScriptHost* host = V8InjectedScriptHost::toNative(args.Holder());
|
| - host->removeBreakpoint(scriptId, lineNumber, columnNumber);
|
| + host->removeDebugBreakpoint(scriptId, lineNumber, columnNumber);
|
| }
|
|
|
| +void V8InjectedScriptHost::setMonitorBreakpointMethodCustom(const v8::FunctionCallbackInfo<v8::Value>& args)
|
| +{
|
| + String scriptId;
|
| + int lineNumber;
|
| + int columnNumber;
|
| + if (args.Length() < 2 || !getFunctionLocation(args, &scriptId, &lineNumber, &columnNumber))
|
| + return;
|
| +
|
| + InjectedScriptHost* host = V8InjectedScriptHost::toNative(args.Holder());
|
| + host->setMonitorBreakpoint(scriptId, lineNumber, columnNumber, toWebCoreStringWithUndefinedOrNullCheck(args[1]));
|
| +}
|
| +
|
| +void V8InjectedScriptHost::removeMonitorBreakpointMethodCustom(const v8::FunctionCallbackInfo<v8::Value>& args)
|
| +{
|
| + String scriptId;
|
| + int lineNumber;
|
| + int columnNumber;
|
| + if (!getFunctionLocation(args, &scriptId, &lineNumber, &columnNumber))
|
| + return;
|
| +
|
| + InjectedScriptHost* host = V8InjectedScriptHost::toNative(args.Holder());
|
| + host->removeMonitorBreakpoint(scriptId, lineNumber, columnNumber);
|
| +}
|
|
|
| } // namespace WebCore
|
|
|
|
|