| 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 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 48 #include "core/inspector/InspectorLayerTreeAgent.h" | 48 #include "core/inspector/InspectorLayerTreeAgent.h" |
| 49 #include "core/inspector/InspectorLogAgent.h" | 49 #include "core/inspector/InspectorLogAgent.h" |
| 50 #include "core/inspector/InspectorMemoryAgent.h" | 50 #include "core/inspector/InspectorMemoryAgent.h" |
| 51 #include "core/inspector/InspectorNetworkAgent.h" | 51 #include "core/inspector/InspectorNetworkAgent.h" |
| 52 #include "core/inspector/InspectorPageAgent.h" | 52 #include "core/inspector/InspectorPageAgent.h" |
| 53 #include "core/inspector/InspectorResourceContainer.h" | 53 #include "core/inspector/InspectorResourceContainer.h" |
| 54 #include "core/inspector/InspectorResourceContentLoader.h" | 54 #include "core/inspector/InspectorResourceContentLoader.h" |
| 55 #include "core/inspector/InspectorTaskRunner.h" | 55 #include "core/inspector/InspectorTaskRunner.h" |
| 56 #include "core/inspector/InspectorTracingAgent.h" | 56 #include "core/inspector/InspectorTracingAgent.h" |
| 57 #include "core/inspector/InspectorWorkerAgent.h" | 57 #include "core/inspector/InspectorWorkerAgent.h" |
| 58 #include "core/inspector/LayoutEditor.h" | |
| 59 #include "core/inspector/MainThreadDebugger.h" | 58 #include "core/inspector/MainThreadDebugger.h" |
| 60 #include "core/layout/api/LayoutViewItem.h" | 59 #include "core/layout/api/LayoutViewItem.h" |
| 61 #include "core/page/FocusController.h" | 60 #include "core/page/FocusController.h" |
| 62 #include "core/page/Page.h" | 61 #include "core/page/Page.h" |
| 63 #include "modules/accessibility/InspectorAccessibilityAgent.h" | 62 #include "modules/accessibility/InspectorAccessibilityAgent.h" |
| 64 #include "modules/cachestorage/InspectorCacheStorageAgent.h" | 63 #include "modules/cachestorage/InspectorCacheStorageAgent.h" |
| 65 #include "modules/device_orientation/DeviceOrientationInspectorAgent.h" | 64 #include "modules/device_orientation/DeviceOrientationInspectorAgent.h" |
| 66 #include "modules/indexeddb/InspectorIndexedDBAgent.h" | 65 #include "modules/indexeddb/InspectorIndexedDBAgent.h" |
| 67 #include "modules/storage/InspectorDOMStorageAgent.h" | 66 #include "modules/storage/InspectorDOMStorageAgent.h" |
| 68 #include "modules/webdatabase/InspectorDatabaseAgent.h" | 67 #include "modules/webdatabase/InspectorDatabaseAgent.h" |
| (...skipping 379 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 448 // is ready. | 447 // is ready. |
| 449 Page* page = m_webLocalFrameImpl->viewImpl()->page(); | 448 Page* page = m_webLocalFrameImpl->viewImpl()->page(); |
| 450 m_session->append(InspectorDatabaseAgent::create(page)); | 449 m_session->append(InspectorDatabaseAgent::create(page)); |
| 451 m_session->append(DeviceOrientationInspectorAgent::create(page)); | 450 m_session->append(DeviceOrientationInspectorAgent::create(page)); |
| 452 m_session->append(new InspectorAccessibilityAgent(page, m_domAgent)); | 451 m_session->append(new InspectorAccessibilityAgent(page, m_domAgent)); |
| 453 m_session->append(InspectorDOMStorageAgent::create(page)); | 452 m_session->append(InspectorDOMStorageAgent::create(page)); |
| 454 m_session->append(InspectorCacheStorageAgent::create()); | 453 m_session->append(InspectorCacheStorageAgent::create()); |
| 455 } | 454 } |
| 456 | 455 |
| 457 if (m_overlay) | 456 if (m_overlay) |
| 458 m_overlay->init(cssAgent, m_session->v8Session(), m_domAgent); | 457 m_overlay->init(m_session->v8Session(), m_domAgent); |
| 459 | 458 |
| 460 Platform::current()->currentThread()->addTaskObserver(this); | 459 Platform::current()->currentThread()->addTaskObserver(this); |
| 461 } | 460 } |
| 462 | 461 |
| 463 void WebDevToolsAgentImpl::destroySession() { | 462 void WebDevToolsAgentImpl::destroySession() { |
| 464 if (m_overlay) | 463 if (m_overlay) |
| 465 m_overlay->clear(); | 464 m_overlay->clear(); |
| 466 | 465 |
| 467 m_tracingAgent.clear(); | 466 m_tracingAgent.clear(); |
| 468 m_layerTreeAgent.clear(); | 467 m_layerTreeAgent.clear(); |
| (...skipping 231 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 700 } | 699 } |
| 701 | 700 |
| 702 bool WebDevToolsAgent::shouldInterruptForMethod(const WebString& method) { | 701 bool WebDevToolsAgent::shouldInterruptForMethod(const WebString& method) { |
| 703 return method == "Debugger.pause" || method == "Debugger.setBreakpoint" || | 702 return method == "Debugger.pause" || method == "Debugger.setBreakpoint" || |
| 704 method == "Debugger.setBreakpointByUrl" || | 703 method == "Debugger.setBreakpointByUrl" || |
| 705 method == "Debugger.removeBreakpoint" || | 704 method == "Debugger.removeBreakpoint" || |
| 706 method == "Debugger.setBreakpointsActive"; | 705 method == "Debugger.setBreakpointsActive"; |
| 707 } | 706 } |
| 708 | 707 |
| 709 } // namespace blink | 708 } // namespace blink |
| OLD | NEW |