| 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 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 50 class GraphicsLayer; | 50 class GraphicsLayer; |
| 51 class InspectorOverlay; | 51 class InspectorOverlay; |
| 52 class InspectorPageAgent; | 52 class InspectorPageAgent; |
| 53 class LocalFrame; | 53 class LocalFrame; |
| 54 class Page; | 54 class Page; |
| 55 class PlatformGestureEvent; | 55 class PlatformGestureEvent; |
| 56 class PlatformKeyboardEvent; | 56 class PlatformKeyboardEvent; |
| 57 class PlatformMouseEvent; | 57 class PlatformMouseEvent; |
| 58 class PlatformTouchEvent; | 58 class PlatformTouchEvent; |
| 59 class WebDevToolsAgentClient; | 59 class WebDevToolsAgentClient; |
| 60 class WebFrameWidgetImpl; |
| 60 class WebInputEvent; | 61 class WebInputEvent; |
| 61 class WebLocalFrameImpl; | 62 class WebLocalFrameImpl; |
| 62 class WebString; | 63 class WebString; |
| 63 class WebViewImpl; | 64 class WebViewImpl; |
| 64 | 65 |
| 65 class WebDevToolsAgentImpl final | 66 class WebDevToolsAgentImpl final |
| 66 : public NoBaseWillBeGarbageCollectedFinalized<WebDevToolsAgentImpl> | 67 : public NoBaseWillBeGarbageCollectedFinalized<WebDevToolsAgentImpl> |
| 67 , public WebDevToolsAgent | 68 , public WebDevToolsAgent |
| 68 , public InspectorStateClient | 69 , public InspectorStateClient |
| 69 , public InspectorInputAgent::Client | 70 , public InspectorInputAgent::Client |
| 70 , public InspectorTracingAgent::Client | 71 , public InspectorTracingAgent::Client |
| 71 , public PageRuntimeAgent::Client | 72 , public PageRuntimeAgent::Client |
| 72 , public InspectorFrontendChannel | 73 , public InspectorFrontendChannel |
| 73 , private WebThread::TaskObserver { | 74 , private WebThread::TaskObserver { |
| 74 public: | 75 public: |
| 75 WebDevToolsAgentImpl(WebViewImpl*, WebDevToolsAgentClient*, InspectorOverlay
*); | 76 WebDevToolsAgentImpl(WebViewImpl*, WebDevToolsAgentClient*, InspectorOverlay
*); |
| 76 ~WebDevToolsAgentImpl() override; | 77 ~WebDevToolsAgentImpl() override; |
| 77 void dispose(); | 78 void dispose(); |
| 78 DECLARE_VIRTUAL_TRACE(); | 79 DECLARE_VIRTUAL_TRACE(); |
| 79 | 80 |
| 80 void willBeDestroyed(); | 81 void willBeDestroyed(); |
| 81 WebDevToolsAgentClient* client() { return m_client; } | 82 WebDevToolsAgentClient* client() { return m_client; } |
| 82 bool handleInputEvent(Page*, const WebInputEvent&); | 83 bool handleInputEvent(Page*, const WebInputEvent&); |
| 83 void flushPendingProtocolNotifications(); | 84 void flushPendingProtocolNotifications(); |
| 84 void dispatchMessageFromFrontend(const String& message); | 85 void dispatchMessageFromFrontend(const String& message); |
| 85 void registerAgent(PassOwnPtrWillBeRawPtr<InspectorAgent>); | 86 void registerAgent(PassOwnPtrWillBeRawPtr<InspectorAgent>); |
| 87 static void webViewImplClosed(WebViewImpl*); |
| 88 static void webFrameWidgetImplClosed(WebFrameWidgetImpl*); |
| 86 | 89 |
| 87 // Instrumentation from web/ layer. | 90 // Instrumentation from web/ layer. |
| 88 void didCommitLoadForLocalFrame(LocalFrame*); | 91 void didCommitLoadForLocalFrame(LocalFrame*); |
| 89 void pageScaleFactorChanged(); | 92 void pageScaleFactorChanged(); |
| 90 bool screencastEnabled(); | 93 bool screencastEnabled(); |
| 91 void willAddPageOverlay(const GraphicsLayer*); | 94 void willAddPageOverlay(const GraphicsLayer*); |
| 92 void didRemovePageOverlay(const GraphicsLayer*); | 95 void didRemovePageOverlay(const GraphicsLayer*); |
| 93 | 96 |
| 94 // WebDevToolsAgent implementation. | 97 // WebDevToolsAgent implementation. |
| 95 void attach(const WebString& hostId) override; | 98 void attach(const WebString& hostId) override; |
| (...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 159 typedef Vector<RefPtr<JSONObject> > NotificationQueue; | 162 typedef Vector<RefPtr<JSONObject> > NotificationQueue; |
| 160 NotificationQueue m_notificationQueue; | 163 NotificationQueue m_notificationQueue; |
| 161 String m_stateCookie; | 164 String m_stateCookie; |
| 162 | 165 |
| 163 friend class DebuggerTask; | 166 friend class DebuggerTask; |
| 164 }; | 167 }; |
| 165 | 168 |
| 166 } // namespace blink | 169 } // namespace blink |
| 167 | 170 |
| 168 #endif | 171 #endif |
| OLD | NEW |