Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(139)

Side by Side Diff: Source/bindings/v8/ScriptDebugServer.cpp

Issue 47623002: Fix more warnings on linux (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fix RenderImage.cpp. Created 7 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | Source/core/dom/DOMURLUtils.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « no previous file | Source/core/dom/DOMURLUtils.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698