| 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 260 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 271 if (InspectorController* ic = inspectorController()) | 271 if (InspectorController* ic = inspectorController()) |
| 272 ic->didComposite(); | 272 ic->didComposite(); |
| 273 } | 273 } |
| 274 | 274 |
| 275 void WebDevToolsAgentImpl::didCreateScriptContext(WebFrameImpl* webframe, int wo
rldId) | 275 void WebDevToolsAgentImpl::didCreateScriptContext(WebFrameImpl* webframe, int wo
rldId) |
| 276 { | 276 { |
| 277 // Skip non main world contexts. | 277 // Skip non main world contexts. |
| 278 if (worldId) | 278 if (worldId) |
| 279 return; | 279 return; |
| 280 if (WebCore::Frame* frame = webframe->frame()) | 280 if (WebCore::Frame* frame = webframe->frame()) |
| 281 frame->script()->setContextDebugId(m_hostId); | 281 frame->script().setContextDebugId(m_hostId); |
| 282 } | 282 } |
| 283 | 283 |
| 284 void WebDevToolsAgentImpl::webViewResized(const WebSize& size) | 284 void WebDevToolsAgentImpl::webViewResized(const WebSize& size) |
| 285 { | 285 { |
| 286 if (InspectorController* ic = inspectorController()) | 286 if (InspectorController* ic = inspectorController()) |
| 287 ic->webViewResized(IntSize()); | 287 ic->webViewResized(IntSize()); |
| 288 } | 288 } |
| 289 | 289 |
| 290 bool WebDevToolsAgentImpl::handleInputEvent(WebCore::Page* page, const WebInputE
vent& inputEvent) | 290 bool WebDevToolsAgentImpl::handleInputEvent(WebCore::Page* page, const WebInputE
vent& inputEvent) |
| 291 { | 291 { |
| (...skipping 288 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 580 || commandName == InspectorBackendDispatcher::commandNames[InspectorBack
endDispatcher::kProfiler_getCPUProfileCmd] | 580 || commandName == InspectorBackendDispatcher::commandNames[InspectorBack
endDispatcher::kProfiler_getCPUProfileCmd] |
| 581 || commandName == InspectorBackendDispatcher::commandNames[InspectorBack
endDispatcher::kHeapProfiler_getHeapSnapshotCmd]; | 581 || commandName == InspectorBackendDispatcher::commandNames[InspectorBack
endDispatcher::kHeapProfiler_getHeapSnapshotCmd]; |
| 582 } | 582 } |
| 583 | 583 |
| 584 void WebDevToolsAgent::processPendingMessages() | 584 void WebDevToolsAgent::processPendingMessages() |
| 585 { | 585 { |
| 586 PageScriptDebugServer::shared().runPendingTasks(); | 586 PageScriptDebugServer::shared().runPendingTasks(); |
| 587 } | 587 } |
| 588 | 588 |
| 589 } // namespace WebKit | 589 } // namespace WebKit |
| OLD | NEW |