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

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

Issue 300393002: Merge DevTools Refactor CL to Blink36 (Closed) Base URL: svn://svn.chromium.org/blink/branches/dart/1985
Patch Set: PTAL Created 6 years, 6 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) 2007, 2008 Apple Inc. All rights reserved. 2 * Copyright (C) 2007, 2008 Apple Inc. All rights reserved.
3 * Copyright (C) 2008 Matt Lilek <webkit@mattlilek.com> 3 * Copyright (C) 2008 Matt Lilek <webkit@mattlilek.com>
4 * Copyright (C) 2010 Google Inc. All rights reserved. 4 * Copyright (C) 2010 Google Inc. All rights reserved.
5 * 5 *
6 * Redistribution and use in source and binary forms, with or without 6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions 7 * modification, are permitted provided that the following conditions
8 * are met: 8 * are met:
9 * 9 *
10 * 1. Redistributions of source code must retain the above copyright 10 * 1. Redistributions of source code must retain the above copyright
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
106 m_inspectedObjects.clear(); 106 m_inspectedObjects.clear();
107 } 107 }
108 108
109 InjectedScriptHost::InspectableObject* InjectedScriptHost::inspectedObject(unsig ned num) 109 InjectedScriptHost::InspectableObject* InjectedScriptHost::inspectedObject(unsig ned num)
110 { 110 {
111 if (num >= m_inspectedObjects.size()) 111 if (num >= m_inspectedObjects.size())
112 return m_defaultInspectableObject.get(); 112 return m_defaultInspectableObject.get();
113 return m_inspectedObjects[num].get(); 113 return m_inspectedObjects[num].get();
114 } 114 }
115 115
116 unsigned InjectedScriptHost::numInspectedObjects()
117 {
118 return m_inspectedObjects.size();
119 }
120
116 void InjectedScriptHost::debugFunction(const String& scriptId, int lineNumber, i nt columnNumber) 121 void InjectedScriptHost::debugFunction(const String& scriptId, int lineNumber, i nt columnNumber)
117 { 122 {
118 if (InspectorDebuggerAgent* debuggerAgent = m_instrumentingAgents ? m_instru mentingAgents->inspectorDebuggerAgent() : 0) 123 if (InspectorDebuggerAgent* debuggerAgent = m_instrumentingAgents ? m_instru mentingAgents->inspectorDebuggerAgent() : 0)
119 debuggerAgent->setBreakpoint(scriptId, lineNumber, columnNumber, Inspect orDebuggerAgent::DebugCommandBreakpointSource); 124 debuggerAgent->setBreakpoint(scriptId, lineNumber, columnNumber, Inspect orDebuggerAgent::DebugCommandBreakpointSource);
120 } 125 }
121 126
122 void InjectedScriptHost::undebugFunction(const String& scriptId, int lineNumber, int columnNumber) 127 void InjectedScriptHost::undebugFunction(const String& scriptId, int lineNumber, int columnNumber)
123 { 128 {
124 if (InspectorDebuggerAgent* debuggerAgent = m_instrumentingAgents ? m_instru mentingAgents->inspectorDebuggerAgent() : 0) 129 if (InspectorDebuggerAgent* debuggerAgent = m_instrumentingAgents ? m_instru mentingAgents->inspectorDebuggerAgent() : 0)
125 debuggerAgent->removeBreakpoint(scriptId, lineNumber, columnNumber, Insp ectorDebuggerAgent::DebugCommandBreakpointSource); 130 debuggerAgent->removeBreakpoint(scriptId, lineNumber, columnNumber, Insp ectorDebuggerAgent::DebugCommandBreakpointSource);
(...skipping 13 matching lines...) Expand all
139 } 144 }
140 145
141 void InjectedScriptHost::unmonitorFunction(const String& scriptId, int lineNumbe r, int columnNumber) 146 void InjectedScriptHost::unmonitorFunction(const String& scriptId, int lineNumbe r, int columnNumber)
142 { 147 {
143 if (InspectorDebuggerAgent* debuggerAgent = m_instrumentingAgents ? m_instru mentingAgents->inspectorDebuggerAgent() : 0) 148 if (InspectorDebuggerAgent* debuggerAgent = m_instrumentingAgents ? m_instru mentingAgents->inspectorDebuggerAgent() : 0)
144 debuggerAgent->removeBreakpoint(scriptId, lineNumber, columnNumber, Insp ectorDebuggerAgent::MonitorCommandBreakpointSource); 149 debuggerAgent->removeBreakpoint(scriptId, lineNumber, columnNumber, Insp ectorDebuggerAgent::MonitorCommandBreakpointSource);
145 } 150 }
146 151
147 } // namespace WebCore 152 } // namespace WebCore
148 153
OLDNEW
« no previous file with comments | « Source/core/inspector/InjectedScriptHost.h ('k') | Source/core/inspector/InjectedScriptManager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698