| 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 20 matching lines...) Expand all Loading... |
| 31 #include "config.h" | 31 #include "config.h" |
| 32 #include "WebDevToolsAgentImpl.h" | 32 #include "WebDevToolsAgentImpl.h" |
| 33 | 33 |
| 34 #include "InspectorBackendDispatcher.h" | 34 #include "InspectorBackendDispatcher.h" |
| 35 #include "InspectorFrontend.h" | 35 #include "InspectorFrontend.h" |
| 36 #include "InspectorProtocolVersion.h" | 36 #include "InspectorProtocolVersion.h" |
| 37 #include "RuntimeEnabledFeatures.h" | 37 #include "RuntimeEnabledFeatures.h" |
| 38 #include "WebDataSource.h" | 38 #include "WebDataSource.h" |
| 39 #include "WebDevToolsAgentClient.h" | 39 #include "WebDevToolsAgentClient.h" |
| 40 #include "WebDeviceEmulationParams.h" | 40 #include "WebDeviceEmulationParams.h" |
| 41 #include "WebFrameImpl.h" | |
| 42 #include "WebInputEventConversion.h" | 41 #include "WebInputEventConversion.h" |
| 42 #include "WebLocalFrameImpl.h" |
| 43 #include "WebMemoryUsageInfo.h" | 43 #include "WebMemoryUsageInfo.h" |
| 44 #include "WebSettings.h" | 44 #include "WebSettings.h" |
| 45 #include "WebViewClient.h" | 45 #include "WebViewClient.h" |
| 46 #include "WebViewImpl.h" | 46 #include "WebViewImpl.h" |
| 47 #include "bindings/v8/PageScriptDebugServer.h" | 47 #include "bindings/v8/PageScriptDebugServer.h" |
| 48 #include "bindings/v8/ScriptController.h" | 48 #include "bindings/v8/ScriptController.h" |
| 49 #include "bindings/v8/V8Binding.h" | 49 #include "bindings/v8/V8Binding.h" |
| 50 #include "core/dom/ExceptionCode.h" | 50 #include "core/dom/ExceptionCode.h" |
| 51 #include "core/fetch/MemoryCache.h" | 51 #include "core/fetch/MemoryCache.h" |
| 52 #include "core/frame/FrameView.h" | 52 #include "core/frame/FrameView.h" |
| (...skipping 222 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 275 if (InspectorController* ic = inspectorController()) | 275 if (InspectorController* ic = inspectorController()) |
| 276 ic->willComposite(); | 276 ic->willComposite(); |
| 277 } | 277 } |
| 278 | 278 |
| 279 void WebDevToolsAgentImpl::didComposite() | 279 void WebDevToolsAgentImpl::didComposite() |
| 280 { | 280 { |
| 281 if (InspectorController* ic = inspectorController()) | 281 if (InspectorController* ic = inspectorController()) |
| 282 ic->didComposite(); | 282 ic->didComposite(); |
| 283 } | 283 } |
| 284 | 284 |
| 285 void WebDevToolsAgentImpl::didCreateScriptContext(WebFrameImpl* webframe, int wo
rldId) | 285 void WebDevToolsAgentImpl::didCreateScriptContext(WebLocalFrameImpl* webframe, i
nt worldId) |
| 286 { | 286 { |
| 287 // Skip non main world contexts. | 287 // Skip non main world contexts. |
| 288 if (worldId) | 288 if (worldId) |
| 289 return; | 289 return; |
| 290 if (WebCore::LocalFrame* frame = webframe->frame()) | 290 if (WebCore::LocalFrame* frame = webframe->frame()) |
| 291 frame->script().setContextDebugId(m_hostId); | 291 frame->script().setContextDebugId(m_hostId); |
| 292 } | 292 } |
| 293 | 293 |
| 294 void WebDevToolsAgentImpl::webViewResized(const WebSize& size) | 294 void WebDevToolsAgentImpl::webViewResized(const WebSize& size) |
| 295 { | 295 { |
| (...skipping 423 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 719 || commandName == InspectorBackendDispatcher::commandName(InspectorBacke
ndDispatcher::kDebugger_removeBreakpointCmd) | 719 || commandName == InspectorBackendDispatcher::commandName(InspectorBacke
ndDispatcher::kDebugger_removeBreakpointCmd) |
| 720 || commandName == InspectorBackendDispatcher::commandName(InspectorBacke
ndDispatcher::kDebugger_setBreakpointsActiveCmd); | 720 || commandName == InspectorBackendDispatcher::commandName(InspectorBacke
ndDispatcher::kDebugger_setBreakpointsActiveCmd); |
| 721 } | 721 } |
| 722 | 722 |
| 723 void WebDevToolsAgent::processPendingMessages() | 723 void WebDevToolsAgent::processPendingMessages() |
| 724 { | 724 { |
| 725 PageScriptDebugServer::shared().runPendingTasks(); | 725 PageScriptDebugServer::shared().runPendingTasks(); |
| 726 } | 726 } |
| 727 | 727 |
| 728 } // namespace blink | 728 } // namespace blink |
| OLD | NEW |