| 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 "wtf/Forward.h" | 42 #include "wtf/Forward.h" |
| 43 #include "wtf/OwnPtr.h" | 43 #include "wtf/OwnPtr.h" |
| 44 #include "wtf/Vector.h" | 44 #include "wtf/Vector.h" |
| 45 | 45 |
| 46 namespace blink { | 46 namespace blink { |
| 47 | 47 |
| 48 class DebuggerTask; | 48 class DebuggerTask; |
| 49 class GraphicsLayer; | 49 class GraphicsLayer; |
| 50 class InspectorInspectorAgent; | 50 class InspectorInspectorAgent; |
| 51 class InspectorOverlayImpl; | 51 class InspectorOverlay; |
| 52 class InspectorPageAgent; | 52 class InspectorPageAgent; |
| 53 class InspectorResourceContentLoader; | 53 class InspectorResourceContentLoader; |
| 54 class LocalFrame; | 54 class LocalFrame; |
| 55 class Page; | 55 class Page; |
| 56 class PageConsoleAgent; | 56 class PageConsoleAgent; |
| 57 class PlatformGestureEvent; | 57 class PlatformGestureEvent; |
| 58 class PlatformKeyboardEvent; | 58 class PlatformKeyboardEvent; |
| 59 class PlatformMouseEvent; | 59 class PlatformMouseEvent; |
| 60 class PlatformTouchEvent; | 60 class PlatformTouchEvent; |
| 61 class WebDevToolsAgentClient; | 61 class WebDevToolsAgentClient; |
| (...skipping 13 matching lines...) Expand all Loading... |
| 75 , public InspectorFrontendChannel | 75 , public InspectorFrontendChannel |
| 76 , private WebThread::TaskObserver { | 76 , private WebThread::TaskObserver { |
| 77 public: | 77 public: |
| 78 static PassOwnPtrWillBeRawPtr<WebDevToolsAgentImpl> create(WebLocalFrameImpl
*, WebDevToolsAgentClient*); | 78 static PassOwnPtrWillBeRawPtr<WebDevToolsAgentImpl> create(WebLocalFrameImpl
*, WebDevToolsAgentClient*); |
| 79 ~WebDevToolsAgentImpl() override; | 79 ~WebDevToolsAgentImpl() override; |
| 80 void dispose(); | 80 void dispose(); |
| 81 DECLARE_VIRTUAL_TRACE(); | 81 DECLARE_VIRTUAL_TRACE(); |
| 82 | 82 |
| 83 void willBeDestroyed(); | 83 void willBeDestroyed(); |
| 84 WebDevToolsAgentClient* client() { return m_client; } | 84 WebDevToolsAgentClient* client() { return m_client; } |
| 85 InspectorOverlayImpl* overlay() const { return m_overlay.get(); } | 85 InspectorOverlay* overlay() const { return m_overlay.get(); } |
| 86 void flushPendingProtocolNotifications(); | 86 void flushPendingProtocolNotifications(); |
| 87 void dispatchMessageFromFrontend(const String& message); | 87 void dispatchMessageFromFrontend(const String& message); |
| 88 void registerAgent(PassOwnPtrWillBeRawPtr<InspectorAgent>); | 88 void registerAgent(PassOwnPtrWillBeRawPtr<InspectorAgent>); |
| 89 static void webViewImplClosed(WebViewImpl*); | 89 static void webViewImplClosed(WebViewImpl*); |
| 90 static void webFrameWidgetImplClosed(WebFrameWidgetImpl*); | 90 static void webFrameWidgetImplClosed(WebFrameWidgetImpl*); |
| 91 | 91 |
| 92 // Instrumentation from web/ layer. | 92 // Instrumentation from web/ layer. |
| 93 void didCommitLoadForLocalFrame(LocalFrame*); | 93 void didCommitLoadForLocalFrame(LocalFrame*); |
| 94 bool screencastEnabled(); | 94 bool screencastEnabled(); |
| 95 void willAddPageOverlay(const GraphicsLayer*); | 95 void willAddPageOverlay(const GraphicsLayer*); |
| 96 void didRemovePageOverlay(const GraphicsLayer*); | 96 void didRemovePageOverlay(const GraphicsLayer*); |
| 97 void layerTreeViewChanged(WebLayerTreeView*); | 97 void layerTreeViewChanged(WebLayerTreeView*); |
| 98 | 98 |
| 99 // WebDevToolsAgent implementation. | 99 // WebDevToolsAgent implementation. |
| 100 void attach(const WebString& hostId) override; | 100 void attach(const WebString& hostId) override; |
| 101 void reattach(const WebString& hostId, const WebString& savedState) override
; | 101 void reattach(const WebString& hostId, const WebString& savedState) override
; |
| 102 void detach() override; | 102 void detach() override; |
| 103 void continueProgram() override; | 103 void continueProgram() override; |
| 104 void dispatchOnInspectorBackend(const WebString& message) override; | 104 void dispatchOnInspectorBackend(const WebString& message) override; |
| 105 void inspectElementAt(const WebPoint&) override; | 105 void inspectElementAt(const WebPoint&) override; |
| 106 void evaluateInWebInspector(long callId, const WebString& script) override; | 106 void evaluateInWebInspector(long callId, const WebString& script) override; |
| 107 | 107 |
| 108 private: | 108 private: |
| 109 WebDevToolsAgentImpl(WebLocalFrameImpl*, WebDevToolsAgentClient*, PassOwnPtr
WillBeRawPtr<InspectorOverlayImpl>); | 109 WebDevToolsAgentImpl(WebLocalFrameImpl*, WebDevToolsAgentClient*, PassOwnPtr
WillBeRawPtr<InspectorOverlay>); |
| 110 | 110 |
| 111 // InspectorStateClient implementation. | 111 // InspectorStateClient implementation. |
| 112 void updateInspectorStateCookie(const WTF::String&) override; | 112 void updateInspectorStateCookie(const WTF::String&) override; |
| 113 | 113 |
| 114 // InspectorTracingAgent::Client implementation. | 114 // InspectorTracingAgent::Client implementation. |
| 115 void enableTracing(const WTF::String& categoryFilter) override; | 115 void enableTracing(const WTF::String& categoryFilter) override; |
| 116 void disableTracing() override; | 116 void disableTracing() override; |
| 117 | 117 |
| 118 // InspectorRuntimeAgent::Client implementation. | 118 // InspectorRuntimeAgent::Client implementation. |
| 119 void resumeStartup() override; | 119 void resumeStartup() override; |
| (...skipping 13 matching lines...) Expand all Loading... |
| 133 RawPtrWillBeMember<WebLocalFrameImpl> m_webLocalFrameImpl; | 133 RawPtrWillBeMember<WebLocalFrameImpl> m_webLocalFrameImpl; |
| 134 bool m_attached; | 134 bool m_attached; |
| 135 #if ENABLE(ASSERT) | 135 #if ENABLE(ASSERT) |
| 136 bool m_hasBeenDisposed; | 136 bool m_hasBeenDisposed; |
| 137 #endif | 137 #endif |
| 138 | 138 |
| 139 RefPtrWillBeMember<InstrumentingAgents> m_instrumentingAgents; | 139 RefPtrWillBeMember<InstrumentingAgents> m_instrumentingAgents; |
| 140 OwnPtrWillBeMember<InjectedScriptManager> m_injectedScriptManager; | 140 OwnPtrWillBeMember<InjectedScriptManager> m_injectedScriptManager; |
| 141 OwnPtrWillBeMember<InspectorResourceContentLoader> m_resourceContentLoader; | 141 OwnPtrWillBeMember<InspectorResourceContentLoader> m_resourceContentLoader; |
| 142 OwnPtrWillBeMember<InspectorCompositeState> m_state; | 142 OwnPtrWillBeMember<InspectorCompositeState> m_state; |
| 143 OwnPtrWillBeMember<InspectorOverlayImpl> m_overlay; | 143 OwnPtrWillBeMember<InspectorOverlay> m_overlay; |
| 144 | 144 |
| 145 RawPtrWillBeMember<InspectorInspectorAgent> m_inspectorAgent; | 145 RawPtrWillBeMember<InspectorInspectorAgent> m_inspectorAgent; |
| 146 RawPtrWillBeMember<InspectorDOMAgent> m_domAgent; | 146 RawPtrWillBeMember<InspectorDOMAgent> m_domAgent; |
| 147 RawPtrWillBeMember<InspectorPageAgent> m_pageAgent; | 147 RawPtrWillBeMember<InspectorPageAgent> m_pageAgent; |
| 148 RawPtrWillBeMember<InspectorCSSAgent> m_cssAgent; | 148 RawPtrWillBeMember<InspectorCSSAgent> m_cssAgent; |
| 149 RawPtrWillBeMember<InspectorResourceAgent> m_resourceAgent; | 149 RawPtrWillBeMember<InspectorResourceAgent> m_resourceAgent; |
| 150 RawPtrWillBeMember<InspectorLayerTreeAgent> m_layerTreeAgent; | 150 RawPtrWillBeMember<InspectorLayerTreeAgent> m_layerTreeAgent; |
| 151 RawPtrWillBeMember<InspectorTracingAgent> m_tracingAgent; | 151 RawPtrWillBeMember<InspectorTracingAgent> m_tracingAgent; |
| 152 RawPtrWillBeMember<PageRuntimeAgent> m_pageRuntimeAgent; | 152 RawPtrWillBeMember<PageRuntimeAgent> m_pageRuntimeAgent; |
| 153 RawPtrWillBeMember<PageConsoleAgent> m_pageConsoleAgent; | 153 RawPtrWillBeMember<PageConsoleAgent> m_pageConsoleAgent; |
| 154 | 154 |
| 155 RefPtrWillBeMember<InspectorBackendDispatcher> m_inspectorBackendDispatcher; | 155 RefPtrWillBeMember<InspectorBackendDispatcher> m_inspectorBackendDispatcher; |
| 156 OwnPtr<InspectorFrontend> m_inspectorFrontend; | 156 OwnPtr<InspectorFrontend> m_inspectorFrontend; |
| 157 InspectorAgentRegistry m_agents; | 157 InspectorAgentRegistry m_agents; |
| 158 OwnPtrWillBeMember<AsyncCallTracker> m_asyncCallTracker; | 158 OwnPtrWillBeMember<AsyncCallTracker> m_asyncCallTracker; |
| 159 bool m_deferredAgentsInitialized; | 159 bool m_deferredAgentsInitialized; |
| 160 | 160 |
| 161 typedef Vector<RefPtr<JSONObject>> NotificationQueue; | 161 typedef Vector<RefPtr<JSONObject>> NotificationQueue; |
| 162 NotificationQueue m_notificationQueue; | 162 NotificationQueue m_notificationQueue; |
| 163 String m_stateCookie; | 163 String m_stateCookie; |
| 164 | 164 |
| 165 friend class DebuggerTask; | 165 friend class DebuggerTask; |
| 166 }; | 166 }; |
| 167 | 167 |
| 168 } // namespace blink | 168 } // namespace blink |
| 169 | 169 |
| 170 #endif | 170 #endif |
| OLD | NEW |