| 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 482 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 493 void WebDevToolsAgentImpl::attach(const WebString& hostId) | 493 void WebDevToolsAgentImpl::attach(const WebString& hostId) |
| 494 { | 494 { |
| 495 if (m_attached) | 495 if (m_attached) |
| 496 return; | 496 return; |
| 497 | 497 |
| 498 // Set the attached bit first so that sync notifications were delivered. | 498 // Set the attached bit first so that sync notifications were delivered. |
| 499 m_attached = true; | 499 m_attached = true; |
| 500 | 500 |
| 501 initializeDeferredAgents(); | 501 initializeDeferredAgents(); |
| 502 m_resourceAgent->setHostId(hostId); | 502 m_resourceAgent->setHostId(hostId); |
| 503 m_overlay->setLayoutEditor(LayoutEditor::create(m_cssAgent.get())); | 503 m_overlay->setLayoutEditor(LayoutEditor::create(m_cssAgent.get(), m_domAgent
.get())); |
| 504 | 504 |
| 505 m_inspectorFrontend = adoptPtr(new InspectorFrontend(this)); | 505 m_inspectorFrontend = adoptPtr(new InspectorFrontend(this)); |
| 506 // We can reconnect to existing front-end -> unmute state. | 506 // We can reconnect to existing front-end -> unmute state. |
| 507 m_state->unmute(); | 507 m_state->unmute(); |
| 508 m_agents.setFrontend(m_inspectorFrontend.get()); | 508 m_agents.setFrontend(m_inspectorFrontend.get()); |
| 509 | 509 |
| 510 InspectorInstrumentation::registerInstrumentingAgents(m_instrumentingAgents.
get()); | 510 InspectorInstrumentation::registerInstrumentingAgents(m_instrumentingAgents.
get()); |
| 511 InspectorInstrumentation::frontendCreated(); | 511 InspectorInstrumentation::frontendCreated(); |
| 512 | 512 |
| 513 m_inspectorBackendDispatcher = InspectorBackendDispatcher::create(this); | 513 m_inspectorBackendDispatcher = InspectorBackendDispatcher::create(this); |
| (...skipping 240 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 754 if (!InspectorBackendDispatcher::getCommandName(message, &commandName)) | 754 if (!InspectorBackendDispatcher::getCommandName(message, &commandName)) |
| 755 return false; | 755 return false; |
| 756 return commandName == InspectorBackendDispatcher::commandName(InspectorBacke
ndDispatcher::kDebugger_pauseCmd) | 756 return commandName == InspectorBackendDispatcher::commandName(InspectorBacke
ndDispatcher::kDebugger_pauseCmd) |
| 757 || commandName == InspectorBackendDispatcher::commandName(InspectorBacke
ndDispatcher::kDebugger_setBreakpointCmd) | 757 || commandName == InspectorBackendDispatcher::commandName(InspectorBacke
ndDispatcher::kDebugger_setBreakpointCmd) |
| 758 || commandName == InspectorBackendDispatcher::commandName(InspectorBacke
ndDispatcher::kDebugger_setBreakpointByUrlCmd) | 758 || commandName == InspectorBackendDispatcher::commandName(InspectorBacke
ndDispatcher::kDebugger_setBreakpointByUrlCmd) |
| 759 || commandName == InspectorBackendDispatcher::commandName(InspectorBacke
ndDispatcher::kDebugger_removeBreakpointCmd) | 759 || commandName == InspectorBackendDispatcher::commandName(InspectorBacke
ndDispatcher::kDebugger_removeBreakpointCmd) |
| 760 || commandName == InspectorBackendDispatcher::commandName(InspectorBacke
ndDispatcher::kDebugger_setBreakpointsActiveCmd); | 760 || commandName == InspectorBackendDispatcher::commandName(InspectorBacke
ndDispatcher::kDebugger_setBreakpointsActiveCmd); |
| 761 } | 761 } |
| 762 | 762 |
| 763 } // namespace blink | 763 } // namespace blink |
| OLD | NEW |