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 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
48 | 48 |
49 class GraphicsLayer; | 49 class GraphicsLayer; |
50 class InspectedFrames; | 50 class InspectedFrames; |
51 class InspectorOverlayAgent; | 51 class InspectorOverlayAgent; |
52 class InspectorResourceContainer; | 52 class InspectorResourceContainer; |
53 class InspectorResourceContentLoader; | 53 class InspectorResourceContentLoader; |
54 class InspectorTraceEvents; | 54 class InspectorTraceEvents; |
55 class LocalFrame; | 55 class LocalFrame; |
56 class WebDevToolsAgentClient; | 56 class WebDevToolsAgentClient; |
57 class WebLayerTreeView; | 57 class WebLayerTreeView; |
58 class WebLocalFrameImpl; | 58 class WebLocalFrameBase; |
59 class WebString; | 59 class WebString; |
60 | 60 |
61 class WebDevToolsAgentImpl final | 61 class WebDevToolsAgentImpl final |
62 : public GarbageCollectedFinalized<WebDevToolsAgentImpl>, | 62 : public GarbageCollectedFinalized<WebDevToolsAgentImpl>, |
63 public WebDevToolsAgent, | 63 public WebDevToolsAgent, |
64 public InspectorEmulationAgent::Client, | 64 public InspectorEmulationAgent::Client, |
65 public InspectorTracingAgent::Client, | 65 public InspectorTracingAgent::Client, |
66 public InspectorPageAgent::Client, | 66 public InspectorPageAgent::Client, |
67 public InspectorSession::Client, | 67 public InspectorSession::Client, |
68 private WebThread::TaskObserver { | 68 private WebThread::TaskObserver { |
69 public: | 69 public: |
70 static WebDevToolsAgentImpl* Create(WebLocalFrameImpl*, | 70 static WebDevToolsAgentImpl* Create(WebLocalFrameBase*, |
71 WebDevToolsAgentClient*); | 71 WebDevToolsAgentClient*); |
72 ~WebDevToolsAgentImpl() override; | 72 ~WebDevToolsAgentImpl() override; |
73 DECLARE_VIRTUAL_TRACE(); | 73 DECLARE_VIRTUAL_TRACE(); |
74 | 74 |
75 void WillBeDestroyed(); | 75 void WillBeDestroyed(); |
76 WebDevToolsAgentClient* Client() { return client_; } | 76 WebDevToolsAgentClient* Client() { return client_; } |
77 void FlushProtocolNotifications(); | 77 void FlushProtocolNotifications(); |
78 void PaintOverlay(); | 78 void PaintOverlay(); |
79 void LayoutOverlay(); | 79 void LayoutOverlay(); |
80 bool HandleInputEvent(const WebInputEvent&); | 80 bool HandleInputEvent(const WebInputEvent&); |
(...skipping 17 matching lines...) Expand all Loading... |
98 void ContinueProgram() override; | 98 void ContinueProgram() override; |
99 void DispatchOnInspectorBackend(int session_id, | 99 void DispatchOnInspectorBackend(int session_id, |
100 int call_id, | 100 int call_id, |
101 const WebString& method, | 101 const WebString& method, |
102 const WebString& message) override; | 102 const WebString& message) override; |
103 void InspectElementAt(int session_id, const WebPoint&) override; | 103 void InspectElementAt(int session_id, const WebPoint&) override; |
104 void FailedToRequestDevTools() override; | 104 void FailedToRequestDevTools() override; |
105 WebString EvaluateInWebInspectorOverlay(const WebString& script) override; | 105 WebString EvaluateInWebInspectorOverlay(const WebString& script) override; |
106 | 106 |
107 private: | 107 private: |
108 WebDevToolsAgentImpl(WebLocalFrameImpl*, | 108 WebDevToolsAgentImpl(WebLocalFrameBase*, |
109 WebDevToolsAgentClient*, | 109 WebDevToolsAgentClient*, |
110 bool include_view_agents); | 110 bool include_view_agents); |
111 | 111 |
112 // InspectorTracingAgent::Client implementation. | 112 // InspectorTracingAgent::Client implementation. |
113 void EnableTracing(const WTF::String& category_filter) override; | 113 void EnableTracing(const WTF::String& category_filter) override; |
114 void DisableTracing() override; | 114 void DisableTracing() override; |
115 void ShowReloadingBlanket() override; | 115 void ShowReloadingBlanket() override; |
116 void HideReloadingBlanket() override; | 116 void HideReloadingBlanket() override; |
117 | 117 |
118 // InspectorEmulationAgent::Client implementation. | 118 // InspectorEmulationAgent::Client implementation. |
(...skipping 20 matching lines...) Expand all Loading... |
139 const String& message); | 139 const String& message); |
140 | 140 |
141 friend class WebDevToolsAgent; | 141 friend class WebDevToolsAgent; |
142 static void RunDebuggerTask( | 142 static void RunDebuggerTask( |
143 int session_id, | 143 int session_id, |
144 std::unique_ptr<WebDevToolsAgent::MessageDescriptor>); | 144 std::unique_ptr<WebDevToolsAgent::MessageDescriptor>); |
145 | 145 |
146 bool Attached() const { return session_.Get(); } | 146 bool Attached() const { return session_.Get(); } |
147 | 147 |
148 WebDevToolsAgentClient* client_; | 148 WebDevToolsAgentClient* client_; |
149 Member<WebLocalFrameImpl> web_local_frame_impl_; | 149 Member<WebLocalFrameBase> web_local_frame_impl_; |
150 | 150 |
151 Member<CoreProbeSink> probe_sink_; | 151 Member<CoreProbeSink> probe_sink_; |
152 Member<InspectorResourceContentLoader> resource_content_loader_; | 152 Member<InspectorResourceContentLoader> resource_content_loader_; |
153 Member<InspectedFrames> inspected_frames_; | 153 Member<InspectedFrames> inspected_frames_; |
154 Member<InspectorResourceContainer> resource_container_; | 154 Member<InspectorResourceContainer> resource_container_; |
155 | 155 |
156 Member<InspectorPageAgent> page_agent_; | 156 Member<InspectorPageAgent> page_agent_; |
157 Member<InspectorNetworkAgent> network_agent_; | 157 Member<InspectorNetworkAgent> network_agent_; |
158 Member<InspectorLayerTreeAgent> layer_tree_agent_; | 158 Member<InspectorLayerTreeAgent> layer_tree_agent_; |
159 Member<InspectorTracingAgent> tracing_agent_; | 159 Member<InspectorTracingAgent> tracing_agent_; |
160 Member<InspectorTraceEvents> trace_events_agent_; | 160 Member<InspectorTraceEvents> trace_events_agent_; |
161 Member<InspectorOverlayAgent> overlay_agent_; | 161 Member<InspectorOverlayAgent> overlay_agent_; |
162 | 162 |
163 Member<InspectorSession> session_; | 163 Member<InspectorSession> session_; |
164 bool include_view_agents_; | 164 bool include_view_agents_; |
165 int layer_tree_id_; | 165 int layer_tree_id_; |
166 }; | 166 }; |
167 | 167 |
168 } // namespace blink | 168 } // namespace blink |
169 | 169 |
170 #endif | 170 #endif |
OLD | NEW |