| 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 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 69 #include "core/inspector/PageDebuggerAgent.h" | 69 #include "core/inspector/PageDebuggerAgent.h" |
| 70 #include "core/inspector/PageRuntimeAgent.h" | 70 #include "core/inspector/PageRuntimeAgent.h" |
| 71 #include "core/layout/LayoutView.h" | 71 #include "core/layout/LayoutView.h" |
| 72 #include "core/page/FocusController.h" | 72 #include "core/page/FocusController.h" |
| 73 #include "core/page/Page.h" | 73 #include "core/page/Page.h" |
| 74 #include "modules/accessibility/InspectorAccessibilityAgent.h" | 74 #include "modules/accessibility/InspectorAccessibilityAgent.h" |
| 75 #include "modules/cachestorage/InspectorCacheStorageAgent.h" | 75 #include "modules/cachestorage/InspectorCacheStorageAgent.h" |
| 76 #include "modules/device_orientation/DeviceOrientationInspectorAgent.h" | 76 #include "modules/device_orientation/DeviceOrientationInspectorAgent.h" |
| 77 #include "modules/filesystem/InspectorFileSystemAgent.h" | 77 #include "modules/filesystem/InspectorFileSystemAgent.h" |
| 78 #include "modules/indexeddb/InspectorIndexedDBAgent.h" | 78 #include "modules/indexeddb/InspectorIndexedDBAgent.h" |
| 79 #include "modules/screen_orientation/ScreenOrientationInspectorAgent.h" | |
| 80 #include "modules/storage/InspectorDOMStorageAgent.h" | 79 #include "modules/storage/InspectorDOMStorageAgent.h" |
| 81 #include "modules/webdatabase/InspectorDatabaseAgent.h" | 80 #include "modules/webdatabase/InspectorDatabaseAgent.h" |
| 82 #include "platform/JSONValues.h" | 81 #include "platform/JSONValues.h" |
| 83 #include "platform/RuntimeEnabledFeatures.h" | 82 #include "platform/RuntimeEnabledFeatures.h" |
| 84 #include "platform/TraceEvent.h" | 83 #include "platform/TraceEvent.h" |
| 85 #include "platform/graphics/GraphicsContext.h" | 84 #include "platform/graphics/GraphicsContext.h" |
| 86 #include "platform/graphics/paint/DisplayItemList.h" | 85 #include "platform/graphics/paint/DisplayItemList.h" |
| 87 #include "public/platform/Platform.h" | 86 #include "public/platform/Platform.h" |
| 88 #include "public/platform/WebLayerTreeView.h" | 87 #include "public/platform/WebLayerTreeView.h" |
| 89 #include "public/platform/WebRect.h" | 88 #include "public/platform/WebRect.h" |
| (...skipping 268 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 358 m_pageConsoleAgent = pageConsoleAgentPtr.get(); | 357 m_pageConsoleAgent = pageConsoleAgentPtr.get(); |
| 359 | 358 |
| 360 OwnPtrWillBeRawPtr<InspectorWorkerAgent> workerAgentPtr = InspectorWorkerAge
nt::create(pageConsoleAgentPtr.get()); | 359 OwnPtrWillBeRawPtr<InspectorWorkerAgent> workerAgentPtr = InspectorWorkerAge
nt::create(pageConsoleAgentPtr.get()); |
| 361 | 360 |
| 362 OwnPtrWillBeRawPtr<InspectorTracingAgent> tracingAgentPtr = InspectorTracing
Agent::create(this, workerAgentPtr.get(), m_pageAgent); | 361 OwnPtrWillBeRawPtr<InspectorTracingAgent> tracingAgentPtr = InspectorTracing
Agent::create(this, workerAgentPtr.get(), m_pageAgent); |
| 363 m_tracingAgent = tracingAgentPtr.get(); | 362 m_tracingAgent = tracingAgentPtr.get(); |
| 364 m_agents.append(tracingAgentPtr.release()); | 363 m_agents.append(tracingAgentPtr.release()); |
| 365 | 364 |
| 366 m_agents.append(workerAgentPtr.release()); | 365 m_agents.append(workerAgentPtr.release()); |
| 367 m_agents.append(pageConsoleAgentPtr.release()); | 366 m_agents.append(pageConsoleAgentPtr.release()); |
| 368 | |
| 369 m_agents.append(ScreenOrientationInspectorAgent::create(*m_webLocalFrameImpl
->frame())); | |
| 370 } | 367 } |
| 371 | 368 |
| 372 WebDevToolsAgentImpl::~WebDevToolsAgentImpl() | 369 WebDevToolsAgentImpl::~WebDevToolsAgentImpl() |
| 373 { | 370 { |
| 374 ASSERT(m_hasBeenDisposed); | 371 ASSERT(m_hasBeenDisposed); |
| 375 } | 372 } |
| 376 | 373 |
| 377 void WebDevToolsAgentImpl::dispose() | 374 void WebDevToolsAgentImpl::dispose() |
| 378 { | 375 { |
| 379 // Explicitly dispose of the agent before destructing to ensure | 376 // Explicitly dispose of the agent before destructing to ensure |
| (...skipping 364 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 744 if (!InspectorBackendDispatcher::getCommandName(message, &commandName)) | 741 if (!InspectorBackendDispatcher::getCommandName(message, &commandName)) |
| 745 return false; | 742 return false; |
| 746 return commandName == InspectorBackendDispatcher::commandName(InspectorBacke
ndDispatcher::kDebugger_pauseCmd) | 743 return commandName == InspectorBackendDispatcher::commandName(InspectorBacke
ndDispatcher::kDebugger_pauseCmd) |
| 747 || commandName == InspectorBackendDispatcher::commandName(InspectorBacke
ndDispatcher::kDebugger_setBreakpointCmd) | 744 || commandName == InspectorBackendDispatcher::commandName(InspectorBacke
ndDispatcher::kDebugger_setBreakpointCmd) |
| 748 || commandName == InspectorBackendDispatcher::commandName(InspectorBacke
ndDispatcher::kDebugger_setBreakpointByUrlCmd) | 745 || commandName == InspectorBackendDispatcher::commandName(InspectorBacke
ndDispatcher::kDebugger_setBreakpointByUrlCmd) |
| 749 || commandName == InspectorBackendDispatcher::commandName(InspectorBacke
ndDispatcher::kDebugger_removeBreakpointCmd) | 746 || commandName == InspectorBackendDispatcher::commandName(InspectorBacke
ndDispatcher::kDebugger_removeBreakpointCmd) |
| 750 || commandName == InspectorBackendDispatcher::commandName(InspectorBacke
ndDispatcher::kDebugger_setBreakpointsActiveCmd); | 747 || commandName == InspectorBackendDispatcher::commandName(InspectorBacke
ndDispatcher::kDebugger_setBreakpointsActiveCmd); |
| 751 } | 748 } |
| 752 | 749 |
| 753 } // namespace blink | 750 } // namespace blink |
| OLD | NEW |