| 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 64 matching lines...) Expand 10 before | Expand all | Expand 10 after 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 InspectorOverlay* overlay() const { return m_overlay.get(); } |
| 85 bool handleInputEvent(const WebInputEvent&); | 86 bool handleInputEvent(const WebInputEvent&); |
| 86 void flushPendingProtocolNotifications(); | 87 void flushPendingProtocolNotifications(); |
| 87 void dispatchMessageFromFrontend(const String& message); | 88 void dispatchMessageFromFrontend(const String& message); |
| 88 void registerAgent(PassOwnPtrWillBeRawPtr<InspectorAgent>); | 89 void registerAgent(PassOwnPtrWillBeRawPtr<InspectorAgent>); |
| 89 static void webViewImplClosed(WebViewImpl*); | 90 static void webViewImplClosed(WebViewImpl*); |
| 90 static void webFrameWidgetImplClosed(WebFrameWidgetImpl*); | 91 static void webFrameWidgetImplClosed(WebFrameWidgetImpl*); |
| 91 | 92 |
| 92 // Instrumentation from web/ layer. | 93 // Instrumentation from web/ layer. |
| 93 void didCommitLoadForLocalFrame(LocalFrame*); | 94 void didCommitLoadForLocalFrame(LocalFrame*); |
| 94 bool screencastEnabled(); | 95 bool screencastEnabled(); |
| 95 void willAddPageOverlay(const GraphicsLayer*); | 96 void willAddPageOverlay(const GraphicsLayer*); |
| 96 void didRemovePageOverlay(const GraphicsLayer*); | 97 void didRemovePageOverlay(const GraphicsLayer*); |
| 97 void layerTreeViewChanged(WebLayerTreeView*); | 98 void layerTreeViewChanged(WebLayerTreeView*); |
| 98 | 99 |
| 99 // WebDevToolsAgent implementation. | 100 // WebDevToolsAgent implementation. |
| 100 void attach(const WebString& hostId) override; | 101 void attach(const WebString& hostId) override; |
| 101 void reattach(const WebString& hostId, const WebString& savedState) override
; | 102 void reattach(const WebString& hostId, const WebString& savedState) override
; |
| 102 void detach() override; | 103 void detach() override; |
| 103 void continueProgram() override; | 104 void continueProgram() override; |
| 104 void dispatchOnInspectorBackend(const WebString& message) override; | 105 void dispatchOnInspectorBackend(const WebString& message) override; |
| 105 void inspectElementAt(const WebPoint&) override; | 106 void inspectElementAt(const WebPoint&) override; |
| 106 void evaluateInWebInspector(long callId, const WebString& script) override; | 107 void evaluateInWebInspector(long callId, const WebString& script) override; |
| 107 | 108 |
| 108 private: | 109 private: |
| 109 WebDevToolsAgentImpl(WebLocalFrameImpl*, WebDevToolsAgentClient*, InspectorO
verlay*); | 110 WebDevToolsAgentImpl(WebLocalFrameImpl*, WebDevToolsAgentClient*, PassOwnPtr
WillBeRawPtr<InspectorOverlay>); |
| 110 | 111 |
| 111 // InspectorStateClient implementation. | 112 // InspectorStateClient implementation. |
| 112 void updateInspectorStateCookie(const WTF::String&) override; | 113 void updateInspectorStateCookie(const WTF::String&) override; |
| 113 | 114 |
| 114 // InspectorTracingAgent::Client implementation. | 115 // InspectorTracingAgent::Client implementation. |
| 115 void enableTracing(const WTF::String& categoryFilter) override; | 116 void enableTracing(const WTF::String& categoryFilter) override; |
| 116 void disableTracing() override; | 117 void disableTracing() override; |
| 117 | 118 |
| 118 // InspectorRuntimeAgent::Client implementation. | 119 // InspectorRuntimeAgent::Client implementation. |
| 119 void resumeStartup() override; | 120 void resumeStartup() override; |
| (...skipping 16 matching lines...) Expand all Loading... |
| 136 RawPtrWillBeMember<WebLocalFrameImpl> m_webLocalFrameImpl; | 137 RawPtrWillBeMember<WebLocalFrameImpl> m_webLocalFrameImpl; |
| 137 bool m_attached; | 138 bool m_attached; |
| 138 #if ENABLE(ASSERT) | 139 #if ENABLE(ASSERT) |
| 139 bool m_hasBeenDisposed; | 140 bool m_hasBeenDisposed; |
| 140 #endif | 141 #endif |
| 141 | 142 |
| 142 RefPtrWillBeMember<InstrumentingAgents> m_instrumentingAgents; | 143 RefPtrWillBeMember<InstrumentingAgents> m_instrumentingAgents; |
| 143 OwnPtrWillBeMember<InjectedScriptManager> m_injectedScriptManager; | 144 OwnPtrWillBeMember<InjectedScriptManager> m_injectedScriptManager; |
| 144 OwnPtrWillBeMember<InspectorResourceContentLoader> m_resourceContentLoader; | 145 OwnPtrWillBeMember<InspectorResourceContentLoader> m_resourceContentLoader; |
| 145 OwnPtrWillBeMember<InspectorCompositeState> m_state; | 146 OwnPtrWillBeMember<InspectorCompositeState> m_state; |
| 146 RawPtrWillBeMember<InspectorOverlay> m_overlay; | 147 OwnPtrWillBeMember<InspectorOverlay> m_overlay; |
| 147 | 148 |
| 148 RawPtrWillBeMember<InspectorInspectorAgent> m_inspectorAgent; | 149 RawPtrWillBeMember<InspectorInspectorAgent> m_inspectorAgent; |
| 149 RawPtrWillBeMember<InspectorDOMAgent> m_domAgent; | 150 RawPtrWillBeMember<InspectorDOMAgent> m_domAgent; |
| 150 RawPtrWillBeMember<InspectorPageAgent> m_pageAgent; | 151 RawPtrWillBeMember<InspectorPageAgent> m_pageAgent; |
| 151 RawPtrWillBeMember<InspectorCSSAgent> m_cssAgent; | 152 RawPtrWillBeMember<InspectorCSSAgent> m_cssAgent; |
| 152 RawPtrWillBeMember<InspectorResourceAgent> m_resourceAgent; | 153 RawPtrWillBeMember<InspectorResourceAgent> m_resourceAgent; |
| 153 RawPtrWillBeMember<InspectorLayerTreeAgent> m_layerTreeAgent; | 154 RawPtrWillBeMember<InspectorLayerTreeAgent> m_layerTreeAgent; |
| 154 RawPtrWillBeMember<InspectorTracingAgent> m_tracingAgent; | 155 RawPtrWillBeMember<InspectorTracingAgent> m_tracingAgent; |
| 155 RawPtrWillBeMember<PageRuntimeAgent> m_pageRuntimeAgent; | 156 RawPtrWillBeMember<PageRuntimeAgent> m_pageRuntimeAgent; |
| 156 RawPtrWillBeMember<PageConsoleAgent> m_pageConsoleAgent; | 157 RawPtrWillBeMember<PageConsoleAgent> m_pageConsoleAgent; |
| 157 | 158 |
| 158 RefPtrWillBeMember<InspectorBackendDispatcher> m_inspectorBackendDispatcher; | 159 RefPtrWillBeMember<InspectorBackendDispatcher> m_inspectorBackendDispatcher; |
| 159 OwnPtr<InspectorFrontend> m_inspectorFrontend; | 160 OwnPtr<InspectorFrontend> m_inspectorFrontend; |
| 160 InspectorAgentRegistry m_agents; | 161 InspectorAgentRegistry m_agents; |
| 161 OwnPtrWillBeMember<AsyncCallTracker> m_asyncCallTracker; | 162 OwnPtrWillBeMember<AsyncCallTracker> m_asyncCallTracker; |
| 162 bool m_deferredAgentsInitialized; | 163 bool m_deferredAgentsInitialized; |
| 163 | 164 |
| 164 typedef Vector<RefPtr<JSONObject>> NotificationQueue; | 165 typedef Vector<RefPtr<JSONObject>> NotificationQueue; |
| 165 NotificationQueue m_notificationQueue; | 166 NotificationQueue m_notificationQueue; |
| 166 String m_stateCookie; | 167 String m_stateCookie; |
| 167 | 168 |
| 168 friend class DebuggerTask; | 169 friend class DebuggerTask; |
| 169 }; | 170 }; |
| 170 | 171 |
| 171 } // namespace blink | 172 } // namespace blink |
| 172 | 173 |
| 173 #endif | 174 #endif |
| OLD | NEW |