OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2010 Google Inc. All rights reserved. | 2 * Copyright (C) 2010 Google Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
6 * met: | 6 * met: |
7 * | 7 * |
8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
(...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
167 dispatcherObject = v8::Handle<v8::Object>::Cast(inspectorBackendApiValue
); | 167 dispatcherObject = v8::Handle<v8::Object>::Cast(inspectorBackendApiValue
); |
168 dispatchFunction = dispatcherObject->Get(v8::String::New("dispatch")); | 168 dispatchFunction = dispatcherObject->Get(v8::String::New("dispatch")); |
169 if (!dispatchFunction->IsFunction()) | 169 if (!dispatchFunction->IsFunction()) |
170 return; | 170 return; |
171 } | 171 } |
172 v8::Handle<v8::Function> function = v8::Handle<v8::Function>::Cast(dispatchF
unction); | 172 v8::Handle<v8::Function> function = v8::Handle<v8::Function>::Cast(dispatchF
unction); |
173 Vector< v8::Handle<v8::Value> > args; | 173 Vector< v8::Handle<v8::Value> > args; |
174 args.append(v8String(message, isolate)); | 174 args.append(v8String(message, isolate)); |
175 v8::TryCatch tryCatch; | 175 v8::TryCatch tryCatch; |
176 tryCatch.SetVerbose(true); | 176 tryCatch.SetVerbose(true); |
177 ScriptController::callFunctionWithInstrumentation(frame->frame() ? frame->fr
ame()->document() : 0, function, dispatcherObject, args.size(), args.data()); | 177 ScriptController::callFunctionWithInstrumentation(frame->frame() ? frame->fr
ame()->document() : 0, function, dispatcherObject, args.size(), args.data(), iso
late); |
178 } | 178 } |
179 | 179 |
180 } // namespace WebKit | 180 } // namespace WebKit |
OLD | NEW |