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 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
63 #include "core/inspector/PageDebuggerAgent.h" | 63 #include "core/inspector/PageDebuggerAgent.h" |
64 #include "core/inspector/PageRuntimeAgent.h" | 64 #include "core/inspector/PageRuntimeAgent.h" |
65 #include "core/layout/LayoutView.h" | 65 #include "core/layout/LayoutView.h" |
66 #include "core/page/FocusController.h" | 66 #include "core/page/FocusController.h" |
67 #include "core/page/Page.h" | 67 #include "core/page/Page.h" |
68 #include "modules/accessibility/InspectorAccessibilityAgent.h" | 68 #include "modules/accessibility/InspectorAccessibilityAgent.h" |
69 #include "modules/cachestorage/InspectorCacheStorageAgent.h" | 69 #include "modules/cachestorage/InspectorCacheStorageAgent.h" |
70 #include "modules/device_orientation/DeviceOrientationInspectorAgent.h" | 70 #include "modules/device_orientation/DeviceOrientationInspectorAgent.h" |
71 #include "modules/filesystem/InspectorFileSystemAgent.h" | 71 #include "modules/filesystem/InspectorFileSystemAgent.h" |
72 #include "modules/indexeddb/InspectorIndexedDBAgent.h" | 72 #include "modules/indexeddb/InspectorIndexedDBAgent.h" |
73 #include "modules/screen_orientation/ScreenOrientationInspectorAgent.h" | |
74 #include "modules/storage/InspectorDOMStorageAgent.h" | 73 #include "modules/storage/InspectorDOMStorageAgent.h" |
75 #include "modules/webdatabase/InspectorDatabaseAgent.h" | 74 #include "modules/webdatabase/InspectorDatabaseAgent.h" |
76 #include "platform/JSONValues.h" | 75 #include "platform/JSONValues.h" |
77 #include "platform/RuntimeEnabledFeatures.h" | 76 #include "platform/RuntimeEnabledFeatures.h" |
78 #include "platform/TraceEvent.h" | 77 #include "platform/TraceEvent.h" |
79 #include "platform/graphics/GraphicsContext.h" | 78 #include "platform/graphics/GraphicsContext.h" |
80 #include "platform/graphics/paint/PaintController.h" | 79 #include "platform/graphics/paint/PaintController.h" |
81 #include "platform/inspector_protocol/Dispatcher.h" | 80 #include "platform/inspector_protocol/Dispatcher.h" |
82 #include "platform/inspector_protocol/Frontend.h" | 81 #include "platform/inspector_protocol/Frontend.h" |
83 #include "public/platform/Platform.h" | 82 #include "public/platform/Platform.h" |
(...skipping 297 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
381 m_pageConsoleAgent = pageConsoleAgentPtr.get(); | 380 m_pageConsoleAgent = pageConsoleAgentPtr.get(); |
382 | 381 |
383 OwnPtrWillBeRawPtr<InspectorWorkerAgent> workerAgentPtr = InspectorWorkerAge
nt::create(pageConsoleAgentPtr.get()); | 382 OwnPtrWillBeRawPtr<InspectorWorkerAgent> workerAgentPtr = InspectorWorkerAge
nt::create(pageConsoleAgentPtr.get()); |
384 | 383 |
385 OwnPtrWillBeRawPtr<InspectorTracingAgent> tracingAgentPtr = InspectorTracing
Agent::create(this, workerAgentPtr.get(), m_inspectedFrames.get()); | 384 OwnPtrWillBeRawPtr<InspectorTracingAgent> tracingAgentPtr = InspectorTracing
Agent::create(this, workerAgentPtr.get(), m_inspectedFrames.get()); |
386 m_tracingAgent = tracingAgentPtr.get(); | 385 m_tracingAgent = tracingAgentPtr.get(); |
387 m_agents.append(tracingAgentPtr.release()); | 386 m_agents.append(tracingAgentPtr.release()); |
388 | 387 |
389 m_agents.append(workerAgentPtr.release()); | 388 m_agents.append(workerAgentPtr.release()); |
390 m_agents.append(pageConsoleAgentPtr.release()); | 389 m_agents.append(pageConsoleAgentPtr.release()); |
391 | |
392 m_agents.append(ScreenOrientationInspectorAgent::create(*m_webLocalFrameImpl
->frame())); | |
393 } | 390 } |
394 | 391 |
395 WebDevToolsAgentImpl::~WebDevToolsAgentImpl() | 392 WebDevToolsAgentImpl::~WebDevToolsAgentImpl() |
396 { | 393 { |
397 ASSERT(m_hasBeenDisposed); | 394 ASSERT(m_hasBeenDisposed); |
398 } | 395 } |
399 | 396 |
400 void WebDevToolsAgentImpl::dispose() | 397 void WebDevToolsAgentImpl::dispose() |
401 { | 398 { |
402 // Explicitly dispose of the agent before destructing to ensure | 399 // Explicitly dispose of the agent before destructing to ensure |
(...skipping 355 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
758 if (!protocol::Dispatcher::getCommandName(message, &commandName)) | 755 if (!protocol::Dispatcher::getCommandName(message, &commandName)) |
759 return false; | 756 return false; |
760 return commandName == protocol::Dispatcher::commandName(protocol::Dispatcher
::kDebugger_pauseCmd) | 757 return commandName == protocol::Dispatcher::commandName(protocol::Dispatcher
::kDebugger_pauseCmd) |
761 || commandName == protocol::Dispatcher::commandName(protocol::Dispatcher
::kDebugger_setBreakpointCmd) | 758 || commandName == protocol::Dispatcher::commandName(protocol::Dispatcher
::kDebugger_setBreakpointCmd) |
762 || commandName == protocol::Dispatcher::commandName(protocol::Dispatcher
::kDebugger_setBreakpointByUrlCmd) | 759 || commandName == protocol::Dispatcher::commandName(protocol::Dispatcher
::kDebugger_setBreakpointByUrlCmd) |
763 || commandName == protocol::Dispatcher::commandName(protocol::Dispatcher
::kDebugger_removeBreakpointCmd) | 760 || commandName == protocol::Dispatcher::commandName(protocol::Dispatcher
::kDebugger_removeBreakpointCmd) |
764 || commandName == protocol::Dispatcher::commandName(protocol::Dispatcher
::kDebugger_setBreakpointsActiveCmd); | 761 || commandName == protocol::Dispatcher::commandName(protocol::Dispatcher
::kDebugger_setBreakpointsActiveCmd); |
765 } | 762 } |
766 | 763 |
767 } // namespace blink | 764 } // namespace blink |
OLD | NEW |