| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2010 Google Inc. All rights reserved. | 2 * Copyright (C) 2010 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 30 matching lines...) Expand all Loading... |
| 41 #include "public/web/WebDevToolsAgent.h" | 41 #include "public/web/WebDevToolsAgent.h" |
| 42 #include "web/InspectorEmulationAgent.h" | 42 #include "web/InspectorEmulationAgent.h" |
| 43 #include "wtf/Forward.h" | 43 #include "wtf/Forward.h" |
| 44 #include "wtf/OwnPtr.h" | 44 #include "wtf/OwnPtr.h" |
| 45 #include "wtf/Vector.h" | 45 #include "wtf/Vector.h" |
| 46 | 46 |
| 47 namespace blink { | 47 namespace blink { |
| 48 | 48 |
| 49 class GraphicsLayer; | 49 class GraphicsLayer; |
| 50 class InspectedFrames; | 50 class InspectedFrames; |
| 51 class InspectorInspectorAgent; | |
| 52 class InspectorOverlay; | 51 class InspectorOverlay; |
| 53 class InspectorResourceContentLoader; | 52 class InspectorResourceContentLoader; |
| 54 class LocalFrame; | 53 class LocalFrame; |
| 55 class Page; | 54 class Page; |
| 56 class PageConsoleAgent; | |
| 57 class PageRuntimeAgent; | |
| 58 class PlatformGestureEvent; | 55 class PlatformGestureEvent; |
| 59 class PlatformKeyboardEvent; | 56 class PlatformKeyboardEvent; |
| 60 class PlatformMouseEvent; | 57 class PlatformMouseEvent; |
| 61 class PlatformTouchEvent; | 58 class PlatformTouchEvent; |
| 62 class WebDevToolsAgentClient; | 59 class WebDevToolsAgentClient; |
| 63 class WebFrameWidgetImpl; | 60 class WebFrameWidgetImpl; |
| 64 class WebInputEvent; | 61 class WebInputEvent; |
| 65 class WebLayerTreeView; | 62 class WebLayerTreeView; |
| 66 class WebLocalFrameImpl; | 63 class WebLocalFrameImpl; |
| 67 class WebString; | 64 class WebString; |
| (...skipping 16 matching lines...) Expand all Loading... |
| 84 static PassOwnPtrWillBeRawPtr<WebDevToolsAgentImpl> create(WebLocalFrameImpl
*, WebDevToolsAgentClient*); | 81 static PassOwnPtrWillBeRawPtr<WebDevToolsAgentImpl> create(WebLocalFrameImpl
*, WebDevToolsAgentClient*); |
| 85 ~WebDevToolsAgentImpl() override; | 82 ~WebDevToolsAgentImpl() override; |
| 86 void dispose(); | 83 void dispose(); |
| 87 DECLARE_VIRTUAL_TRACE(); | 84 DECLARE_VIRTUAL_TRACE(); |
| 88 | 85 |
| 89 void willBeDestroyed(); | 86 void willBeDestroyed(); |
| 90 WebDevToolsAgentClient* client() { return m_client; } | 87 WebDevToolsAgentClient* client() { return m_client; } |
| 91 InspectorOverlay* overlay() const { return m_overlay.get(); } | 88 InspectorOverlay* overlay() const { return m_overlay.get(); } |
| 92 void flushPendingProtocolNotifications(); | 89 void flushPendingProtocolNotifications(); |
| 93 void dispatchMessageFromFrontend(int sessionId, const String& message); | 90 void dispatchMessageFromFrontend(int sessionId, const String& message); |
| 94 void registerAgent(PassOwnPtrWillBeRawPtr<InspectorAgent>); | |
| 95 static void webViewImplClosed(WebViewImpl*); | 91 static void webViewImplClosed(WebViewImpl*); |
| 96 static void webFrameWidgetImplClosed(WebFrameWidgetImpl*); | 92 static void webFrameWidgetImplClosed(WebFrameWidgetImpl*); |
| 97 | 93 |
| 98 // Instrumentation from web/ layer. | 94 // Instrumentation from web/ layer. |
| 99 void didCommitLoadForLocalFrame(LocalFrame*); | 95 void didCommitLoadForLocalFrame(LocalFrame*); |
| 100 bool screencastEnabled(); | 96 bool screencastEnabled(); |
| 101 void willAddPageOverlay(const GraphicsLayer*); | 97 void willAddPageOverlay(const GraphicsLayer*); |
| 102 void didRemovePageOverlay(const GraphicsLayer*); | 98 void didRemovePageOverlay(const GraphicsLayer*); |
| 103 void layerTreeViewChanged(WebLayerTreeView*); | 99 void layerTreeViewChanged(WebLayerTreeView*); |
| 104 | 100 |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 149 bool m_attached; | 145 bool m_attached; |
| 150 #if ENABLE(ASSERT) | 146 #if ENABLE(ASSERT) |
| 151 bool m_hasBeenDisposed; | 147 bool m_hasBeenDisposed; |
| 152 #endif | 148 #endif |
| 153 | 149 |
| 154 RefPtrWillBeMember<InstrumentingAgents> m_instrumentingAgents; | 150 RefPtrWillBeMember<InstrumentingAgents> m_instrumentingAgents; |
| 155 OwnPtrWillBeMember<InspectorResourceContentLoader> m_resourceContentLoader; | 151 OwnPtrWillBeMember<InspectorResourceContentLoader> m_resourceContentLoader; |
| 156 OwnPtrWillBeMember<InspectorOverlay> m_overlay; | 152 OwnPtrWillBeMember<InspectorOverlay> m_overlay; |
| 157 OwnPtrWillBeMember<InspectedFrames> m_inspectedFrames; | 153 OwnPtrWillBeMember<InspectedFrames> m_inspectedFrames; |
| 158 | 154 |
| 159 RawPtrWillBeMember<InspectorInspectorAgent> m_inspectorAgent; | |
| 160 RawPtrWillBeMember<InspectorDOMAgent> m_domAgent; | 155 RawPtrWillBeMember<InspectorDOMAgent> m_domAgent; |
| 161 RawPtrWillBeMember<InspectorPageAgent> m_pageAgent; | 156 RawPtrWillBeMember<InspectorPageAgent> m_pageAgent; |
| 162 RawPtrWillBeMember<InspectorResourceAgent> m_resourceAgent; | 157 RawPtrWillBeMember<InspectorResourceAgent> m_resourceAgent; |
| 163 RawPtrWillBeMember<InspectorLayerTreeAgent> m_layerTreeAgent; | 158 RawPtrWillBeMember<InspectorLayerTreeAgent> m_layerTreeAgent; |
| 164 RawPtrWillBeMember<InspectorTracingAgent> m_tracingAgent; | 159 RawPtrWillBeMember<InspectorTracingAgent> m_tracingAgent; |
| 165 RawPtrWillBeMember<PageRuntimeAgent> m_pageRuntimeAgent; | |
| 166 RawPtrWillBeMember<PageConsoleAgent> m_pageConsoleAgent; | |
| 167 | 160 |
| 168 OwnPtr<protocol::Dispatcher> m_inspectorBackendDispatcher; | 161 OwnPtr<protocol::Dispatcher> m_inspectorBackendDispatcher; |
| 169 OwnPtr<protocol::Frontend> m_inspectorFrontend; | 162 OwnPtr<protocol::Frontend> m_inspectorFrontend; |
| 170 InspectorAgentRegistry m_agents; | 163 InspectorAgentRegistry m_agents; |
| 171 bool m_deferredAgentsInitialized; | 164 bool m_deferredAgentsInitialized; |
| 172 | 165 |
| 173 typedef Vector<std::pair<int, OwnPtr<protocol::Value>>> NotificationQueue; | 166 typedef Vector<std::pair<int, OwnPtr<protocol::Value>>> NotificationQueue; |
| 174 NotificationQueue m_notificationQueue; | 167 NotificationQueue m_notificationQueue; |
| 175 int m_sessionId; | 168 int m_sessionId; |
| 176 String m_stateCookie; | 169 String m_stateCookie; |
| 177 bool m_stateMuted; | 170 bool m_stateMuted; |
| 171 int m_layerTreeId; |
| 178 }; | 172 }; |
| 179 | 173 |
| 180 } // namespace blink | 174 } // namespace blink |
| 181 | 175 |
| 182 #endif | 176 #endif |
| OLD | NEW |