| 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 417 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 428 if (InspectorController* ic = inspectorController()) | 428 if (InspectorController* ic = inspectorController()) |
| 429 ic->willComposite(); | 429 ic->willComposite(); |
| 430 } | 430 } |
| 431 | 431 |
| 432 void WebDevToolsAgentImpl::didComposite() | 432 void WebDevToolsAgentImpl::didComposite() |
| 433 { | 433 { |
| 434 if (InspectorController* ic = inspectorController()) | 434 if (InspectorController* ic = inspectorController()) |
| 435 ic->didComposite(); | 435 ic->didComposite(); |
| 436 } | 436 } |
| 437 | 437 |
| 438 void WebDevToolsAgentImpl::willUpdateLayer(int layerId) |
| 439 { |
| 440 if (InspectorController* ic = inspectorController()) |
| 441 ic->willUpdateLayer(layerId); |
| 442 } |
| 443 |
| 444 void WebDevToolsAgentImpl::didUpdateLayer() |
| 445 { |
| 446 if (InspectorController* ic = inspectorController()) |
| 447 ic->didUpdateLayer(); |
| 448 } |
| 449 |
| 438 void WebDevToolsAgentImpl::didCreateScriptContext(WebFrameImpl* webframe, int wo
rldId) | 450 void WebDevToolsAgentImpl::didCreateScriptContext(WebFrameImpl* webframe, int wo
rldId) |
| 439 { | 451 { |
| 440 // Skip non main world contexts. | 452 // Skip non main world contexts. |
| 441 if (worldId) | 453 if (worldId) |
| 442 return; | 454 return; |
| 443 if (WebCore::Frame* frame = webframe->frame()) | 455 if (WebCore::Frame* frame = webframe->frame()) |
| 444 frame->script()->setContextDebugId(m_hostId); | 456 frame->script()->setContextDebugId(m_hostId); |
| 445 } | 457 } |
| 446 | 458 |
| 447 void WebDevToolsAgentImpl::mainFrameViewCreated(WebFrameImpl* webFrame) | 459 void WebDevToolsAgentImpl::mainFrameViewCreated(WebFrameImpl* webFrame) |
| (...skipping 303 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 751 || commandName == InspectorBackendDispatcher::commandNames[InspectorBack
endDispatcher::kProfiler_getCPUProfileCmd] | 763 || commandName == InspectorBackendDispatcher::commandNames[InspectorBack
endDispatcher::kProfiler_getCPUProfileCmd] |
| 752 || commandName == InspectorBackendDispatcher::commandNames[InspectorBack
endDispatcher::kHeapProfiler_getHeapSnapshotCmd]; | 764 || commandName == InspectorBackendDispatcher::commandNames[InspectorBack
endDispatcher::kHeapProfiler_getHeapSnapshotCmd]; |
| 753 } | 765 } |
| 754 | 766 |
| 755 void WebDevToolsAgent::processPendingMessages() | 767 void WebDevToolsAgent::processPendingMessages() |
| 756 { | 768 { |
| 757 PageScriptDebugServer::shared().runPendingTasks(); | 769 PageScriptDebugServer::shared().runPendingTasks(); |
| 758 } | 770 } |
| 759 | 771 |
| 760 } // namespace WebKit | 772 } // namespace WebKit |
| OLD | NEW |