OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2009 Apple Inc. All rights reserved. | 2 * Copyright (C) 2009 Apple Inc. All rights reserved. |
3 * Copyright (C) 2011 Google Inc. All rights reserved. | 3 * Copyright (C) 2011 Google Inc. All rights reserved. |
4 * Copyright (C) 2009 Joseph Pecoraro | 4 * Copyright (C) 2009 Joseph Pecoraro |
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 203 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
214 | 214 |
215 String InspectorDOMAgent::toErrorString(const ExceptionCode& ec) | 215 String InspectorDOMAgent::toErrorString(const ExceptionCode& ec) |
216 { | 216 { |
217 if (ec) { | 217 if (ec) { |
218 ExceptionCodeDescription description(ec); | 218 ExceptionCodeDescription description(ec); |
219 return description.name; | 219 return description.name; |
220 } | 220 } |
221 return ""; | 221 return ""; |
222 } | 222 } |
223 | 223 |
224 InspectorDOMAgent::InspectorDOMAgent(InstrumentingAgents* instrumentingAgents, I
nspectorPageAgent* pageAgent, InspectorCompositeState* inspectorState, InjectedS
criptManager* injectedScriptManager, InspectorOverlay* overlay, InspectorClient*
client) | 224 PassRefPtr<InspectorDOMAgent> InspectorDOMAgent::create(InstrumentingAgents* ins
trumentingAgents, InspectorState* inspectorState, PassRefPtr<InspectorPageAgent>
pageAgent, InjectedScriptManager* injectedScriptManager, InspectorOverlay* over
lay, InspectorClient* client) |
225 : InspectorBaseAgent<InspectorDOMAgent>("DOM", instrumentingAgents, inspecto
rState) | 225 { |
| 226 return adoptRef(new InspectorDOMAgent(instrumentingAgents, inspectorState, p
ageAgent, injectedScriptManager, overlay, client)); |
| 227 } |
| 228 |
| 229 InspectorDOMAgent::InspectorDOMAgent(InstrumentingAgents* instrumentingAgents, I
nspectorState* inspectorState, PassRefPtr<InspectorPageAgent> pageAgent, Injecte
dScriptManager* injectedScriptManager, InspectorOverlay* overlay, InspectorClien
t* client) |
| 230 : InspectorBaseAgent(instrumentingAgents, inspectorState) |
226 , m_pageAgent(pageAgent) | 231 , m_pageAgent(pageAgent) |
227 , m_injectedScriptManager(injectedScriptManager) | 232 , m_injectedScriptManager(injectedScriptManager) |
228 , m_overlay(overlay) | 233 , m_overlay(overlay) |
229 , m_client(client) | 234 , m_client(client) |
230 , m_frontend(0) | 235 , m_frontend(0) |
231 , m_domListener(0) | 236 , m_domListener(0) |
232 , m_lastNodeId(1) | 237 , m_lastNodeId(1) |
233 , m_lastBackendNodeId(-1) | 238 , m_lastBackendNodeId(-1) |
234 , m_searchingForNode(false) | 239 , m_searchingForNode(false) |
235 , m_suppressAttributeModifiedEvent(false) | 240 , m_suppressAttributeModifiedEvent(false) |
(...skipping 1593 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1829 if (!frame) | 1834 if (!frame) |
1830 return 0; | 1835 return 0; |
1831 | 1836 |
1832 InjectedScript injectedScript = m_injectedScriptManager->injectedScriptFor(m
ainWorldScriptState(frame)); | 1837 InjectedScript injectedScript = m_injectedScriptManager->injectedScriptFor(m
ainWorldScriptState(frame)); |
1833 if (injectedScript.hasNoValue()) | 1838 if (injectedScript.hasNoValue()) |
1834 return 0; | 1839 return 0; |
1835 | 1840 |
1836 return injectedScript.wrapNode(node, objectGroup); | 1841 return injectedScript.wrapNode(node, objectGroup); |
1837 } | 1842 } |
1838 | 1843 |
| 1844 InspectorDOMFactory::InspectorDOMFactory(InstrumentingAgents* instrumentingAgent
s, InspectorCompositeState* compositeState, InspectorPageFactory* pageFactory, I
njectedScriptManager* injectedScriptManager, InspectorOverlay* overlay, Inspecto
rClient* client) |
| 1845 : InspectorBaseFactory<InspectorDOMFactory, InspectorDOMAgent>("DOM", instru
mentingAgents, compositeState) |
| 1846 { |
| 1847 setAgent(InspectorDOMAgent::create(m_instrumentingAgents, m_state, pageFacto
ry->agent(), injectedScriptManager, overlay, client)); |
| 1848 } |
| 1849 |
1839 } // namespace WebCore | 1850 } // namespace WebCore |
1840 | 1851 |
OLD | NEW |