| 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 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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(WebLocalFrameImpl*, |
| 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 InspectorOverlayAgent* OverlayAgent() const { return overlay_agent_.Get(); } | |
| 78 void FlushProtocolNotifications(); | 77 void FlushProtocolNotifications(); |
| 78 void PaintOverlay(); |
| 79 void LayoutOverlay(); |
| 80 bool HandleInputEvent(const WebInputEvent&); |
| 79 | 81 |
| 80 // Instrumentation from web/ layer. | 82 // Instrumentation from web/ layer. |
| 81 void DidCommitLoadForLocalFrame(LocalFrame*); | 83 void DidCommitLoadForLocalFrame(LocalFrame*); |
| 82 void DidStartProvisionalLoad(LocalFrame*); | 84 void DidStartProvisionalLoad(LocalFrame*); |
| 83 bool ScreencastEnabled(); | 85 bool ScreencastEnabled(); |
| 84 void WillAddPageOverlay(const GraphicsLayer*); | 86 void WillAddPageOverlay(const GraphicsLayer*); |
| 85 void DidRemovePageOverlay(const GraphicsLayer*); | 87 void DidRemovePageOverlay(const GraphicsLayer*); |
| 86 void LayerTreeViewChanged(WebLayerTreeView*); | 88 void LayerTreeViewChanged(WebLayerTreeView*); |
| 87 void RootLayerCleared(); | 89 void RootLayerCleared(); |
| 90 bool CacheDisabled() override; |
| 88 | 91 |
| 89 // WebDevToolsAgent implementation. | 92 // WebDevToolsAgent implementation. |
| 90 void Attach(const WebString& host_id, int session_id) override; | 93 void Attach(const WebString& host_id, int session_id) override; |
| 91 void Reattach(const WebString& host_id, | 94 void Reattach(const WebString& host_id, |
| 92 int session_id, | 95 int session_id, |
| 93 const WebString& saved_state) override; | 96 const WebString& saved_state) override; |
| 94 void Detach() override; | 97 void Detach() override; |
| 95 void ContinueProgram() override; | 98 void ContinueProgram() override; |
| 96 void DispatchOnInspectorBackend(int session_id, | 99 void DispatchOnInspectorBackend(int session_id, |
| 97 int call_id, | 100 int call_id, |
| 98 const WebString& method, | 101 const WebString& method, |
| 99 const WebString& message) override; | 102 const WebString& message) override; |
| 100 void InspectElementAt(int session_id, const WebPoint&) override; | 103 void InspectElementAt(int session_id, const WebPoint&) override; |
| 101 void FailedToRequestDevTools() override; | 104 void FailedToRequestDevTools() override; |
| 102 WebString EvaluateInWebInspectorOverlay(const WebString& script) override; | 105 WebString EvaluateInWebInspectorOverlay(const WebString& script) override; |
| 103 bool CacheDisabled() override; | |
| 104 | 106 |
| 105 private: | 107 private: |
| 106 WebDevToolsAgentImpl(WebLocalFrameImpl*, | 108 WebDevToolsAgentImpl(WebLocalFrameImpl*, |
| 107 WebDevToolsAgentClient*, | 109 WebDevToolsAgentClient*, |
| 108 bool include_view_agents); | 110 bool include_view_agents); |
| 109 | 111 |
| 110 // InspectorTracingAgent::Client implementation. | 112 // InspectorTracingAgent::Client implementation. |
| 111 void EnableTracing(const WTF::String& category_filter) override; | 113 void EnableTracing(const WTF::String& category_filter) override; |
| 112 void DisableTracing() override; | 114 void DisableTracing() override; |
| 113 void ShowReloadingBlanket() override; | 115 void ShowReloadingBlanket() override; |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 159 Member<InspectorOverlayAgent> overlay_agent_; | 161 Member<InspectorOverlayAgent> overlay_agent_; |
| 160 | 162 |
| 161 Member<InspectorSession> session_; | 163 Member<InspectorSession> session_; |
| 162 bool include_view_agents_; | 164 bool include_view_agents_; |
| 163 int layer_tree_id_; | 165 int layer_tree_id_; |
| 164 }; | 166 }; |
| 165 | 167 |
| 166 } // namespace blink | 168 } // namespace blink |
| 167 | 169 |
| 168 #endif | 170 #endif |
| OLD | NEW |