| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (c) 2010-2011 Google Inc. All rights reserved. | 2 * Copyright (c) 2010-2011 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 397 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 408 } | 408 } |
| 409 | 409 |
| 410 void ScriptDebugServer::v8DebugEventCallback(const v8::Debug::EventDetails& even
tDetails) | 410 void ScriptDebugServer::v8DebugEventCallback(const v8::Debug::EventDetails& even
tDetails) |
| 411 { | 411 { |
| 412 ScriptDebugServer* thisPtr = toScriptDebugServer(eventDetails.GetCallbackDat
a()); | 412 ScriptDebugServer* thisPtr = toScriptDebugServer(eventDetails.GetCallbackDat
a()); |
| 413 thisPtr->handleV8DebugEvent(eventDetails); | 413 thisPtr->handleV8DebugEvent(eventDetails); |
| 414 } | 414 } |
| 415 | 415 |
| 416 bool ScriptDebugServer::executeSkipPauseRequest(ScriptDebugListener::SkipPauseRe
quest request, v8::Handle<v8::Object> executionState) | 416 bool ScriptDebugServer::executeSkipPauseRequest(ScriptDebugListener::SkipPauseRe
quest request, v8::Handle<v8::Object> executionState) |
| 417 { | 417 { |
| 418 const char* v8MethodName; | |
| 419 switch (request) { | 418 switch (request) { |
| 420 case ScriptDebugListener::NoSkip: | 419 case ScriptDebugListener::NoSkip: |
| 421 return false; | 420 return false; |
| 422 case ScriptDebugListener::Continue: | 421 case ScriptDebugListener::Continue: |
| 423 return true; | 422 return true; |
| 424 case ScriptDebugListener::StepInto: | 423 case ScriptDebugListener::StepInto: |
| 425 v8MethodName = stepIntoV8MethodName; | |
| 426 case ScriptDebugListener::StepOut: | 424 case ScriptDebugListener::StepOut: |
| 427 v8MethodName = stepOutV8MethodName; | 425 break; |
| 428 } | 426 } |
| 429 v8::Handle<v8::Value> argv[] = { executionState }; | 427 v8::Handle<v8::Value> argv[] = { executionState }; |
| 430 callDebuggerMethod(stepIntoV8MethodName, 1, argv); | 428 callDebuggerMethod(stepIntoV8MethodName, 1, argv); |
| 431 return true; | 429 return true; |
| 432 } | 430 } |
| 433 | 431 |
| 434 void ScriptDebugServer::handleV8DebugEvent(const v8::Debug::EventDetails& eventD
etails) | 432 void ScriptDebugServer::handleV8DebugEvent(const v8::Debug::EventDetails& eventD
etails) |
| 435 { | 433 { |
| 436 v8::DebugEvent event = eventDetails.GetEvent(); | 434 v8::DebugEvent event = eventDetails.GetEvent(); |
| 437 | 435 |
| (...skipping 190 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 628 { | 626 { |
| 629 return PassOwnPtr<ScriptSourceCode>(); | 627 return PassOwnPtr<ScriptSourceCode>(); |
| 630 } | 628 } |
| 631 | 629 |
| 632 String ScriptDebugServer::preprocessEventListener(Frame*, const String& source,
const String& url, const String& functionName) | 630 String ScriptDebugServer::preprocessEventListener(Frame*, const String& source,
const String& url, const String& functionName) |
| 633 { | 631 { |
| 634 return source; | 632 return source; |
| 635 } | 633 } |
| 636 | 634 |
| 637 } // namespace WebCore | 635 } // namespace WebCore |
| OLD | NEW |