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

Side by Side Diff: Source/core/inspector/InspectorDebuggerAgent.cpp

Issue 14294004: Implementing console command 'debug'. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Added test. Created 7 years, 8 months 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 | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2010 Apple Inc. All rights reserved. 2 * Copyright (C) 2010 Apple Inc. All rights reserved.
3 * Copyright (C) 2010-2011 Google Inc. All rights reserved. 3 * Copyright (C) 2010-2011 Google Inc. All rights reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
8 * 8 *
9 * 1. Redistributions of source code must retain the above copyright 9 * 1. Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 749 matching lines...) Expand 10 before | Expand all | Expand 10 after
760 } 760 }
761 761
762 void ScriptDebugListener::Script::reportMemoryUsage(MemoryObjectInfo* memoryObje ctInfo) const 762 void ScriptDebugListener::Script::reportMemoryUsage(MemoryObjectInfo* memoryObje ctInfo) const
763 { 763 {
764 MemoryClassInfo info(memoryObjectInfo, this, WebCoreMemoryTypes::InspectorDe buggerAgent); 764 MemoryClassInfo info(memoryObjectInfo, this, WebCoreMemoryTypes::InspectorDe buggerAgent);
765 info.addMember(url, "url"); 765 info.addMember(url, "url");
766 info.addMember(source, "source"); 766 info.addMember(source, "source");
767 info.addMember(sourceMappingURL, "sourceMappingURL"); 767 info.addMember(sourceMappingURL, "sourceMappingURL");
768 } 768 }
769 769
770 void InspectorDebuggerAgent::setBreakpointInFrontend(const String& scriptId, int lineNumber, int columnNumber)
771 {
772 RefPtr<TypeBuilder::Debugger::Location> location = TypeBuilder::Debugger::Lo cation::create()
773 .setScriptId(scriptId)
774 .setLineNumber(lineNumber);
775 location->setColumnNumber(columnNumber);
776 m_frontend->setBreakpointRequested(location);
777 }
778
770 void InspectorDebuggerAgent::reset() 779 void InspectorDebuggerAgent::reset()
771 { 780 {
772 m_scripts.clear(); 781 m_scripts.clear();
773 m_breakpointIdToDebugServerBreakpointIds.clear(); 782 m_breakpointIdToDebugServerBreakpointIds.clear();
774 if (m_frontend) 783 if (m_frontend)
775 m_frontend->globalObjectCleared(); 784 m_frontend->globalObjectCleared();
776 } 785 }
777 786
778 } // namespace WebCore 787 } // namespace WebCore
779 788
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698