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