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 238 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
249 void WebDevToolsAgentImpl::detach() | 249 void WebDevToolsAgentImpl::detach() |
250 { | 250 { |
251 blink::Platform::current()->currentThread()->removeTaskObserver(this); | 251 blink::Platform::current()->currentThread()->removeTaskObserver(this); |
252 | 252 |
253 // Prevent controller from sending messages to the frontend. | 253 // Prevent controller from sending messages to the frontend. |
254 InspectorController* ic = inspectorController(); | 254 InspectorController* ic = inspectorController(); |
255 ic->disconnectFrontend(); | 255 ic->disconnectFrontend(); |
256 m_attached = false; | 256 m_attached = false; |
257 } | 257 } |
258 | 258 |
259 void WebDevToolsAgentImpl::didNavigate() | |
260 { | |
261 ClientMessageLoopAdapter::didNavigate(); | |
262 } | |
263 | |
264 void WebDevToolsAgentImpl::continueProgram() | 259 void WebDevToolsAgentImpl::continueProgram() |
265 { | 260 { |
266 ClientMessageLoopAdapter::didNavigate(); | 261 ClientMessageLoopAdapter::didNavigate(); |
267 } | 262 } |
268 | 263 |
269 void WebDevToolsAgentImpl::didBeginFrame(int frameId) | 264 void WebDevToolsAgentImpl::didBeginFrame(int frameId) |
270 { | 265 { |
271 TRACE_EVENT_INSTANT1(TRACE_DISABLED_BY_DEFAULT("devtools.timeline"), "BeginM
ainThreadFrame", "layerTreeId", m_layerTreeId); | 266 TRACE_EVENT_INSTANT1(TRACE_DISABLED_BY_DEFAULT("devtools.timeline"), "BeginM
ainThreadFrame", "layerTreeId", m_layerTreeId); |
272 if (InspectorController* ic = inspectorController()) | 267 if (InspectorController* ic = inspectorController()) |
273 ic->didBeginFrame(frameId); | 268 ic->didBeginFrame(frameId); |
(...skipping 453 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
727 || commandName == InspectorBackendDispatcher::commandName(InspectorBacke
ndDispatcher::kDebugger_removeBreakpointCmd) | 722 || commandName == InspectorBackendDispatcher::commandName(InspectorBacke
ndDispatcher::kDebugger_removeBreakpointCmd) |
728 || commandName == InspectorBackendDispatcher::commandName(InspectorBacke
ndDispatcher::kDebugger_setBreakpointsActiveCmd); | 723 || commandName == InspectorBackendDispatcher::commandName(InspectorBacke
ndDispatcher::kDebugger_setBreakpointsActiveCmd); |
729 } | 724 } |
730 | 725 |
731 void WebDevToolsAgent::processPendingMessages() | 726 void WebDevToolsAgent::processPendingMessages() |
732 { | 727 { |
733 PageScriptDebugServer::shared().runPendingTasks(); | 728 PageScriptDebugServer::shared().runPendingTasks(); |
734 } | 729 } |
735 | 730 |
736 } // namespace blink | 731 } // namespace blink |
OLD | NEW |