| 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 19 matching lines...) Expand all Loading... |
| 30 | 30 |
| 31 #ifndef WebDevToolsAgentImpl_h | 31 #ifndef WebDevToolsAgentImpl_h |
| 32 #define WebDevToolsAgentImpl_h | 32 #define WebDevToolsAgentImpl_h |
| 33 | 33 |
| 34 #include "core/inspector/InspectorClient.h" | 34 #include "core/inspector/InspectorClient.h" |
| 35 #include "core/inspector/InspectorFrontendChannel.h" | 35 #include "core/inspector/InspectorFrontendChannel.h" |
| 36 | 36 |
| 37 #include "public/platform/WebSize.h" | 37 #include "public/platform/WebSize.h" |
| 38 #include "public/platform/WebThread.h" | 38 #include "public/platform/WebThread.h" |
| 39 #include "public/web/WebDevToolsAgent.h" | 39 #include "public/web/WebDevToolsAgent.h" |
| 40 #include "public/web/WebPageOverlay.h" | 40 #include "web/PageOverlay.h" |
| 41 #include "wtf/Forward.h" | 41 #include "wtf/Forward.h" |
| 42 #include "wtf/OwnPtr.h" | 42 #include "wtf/OwnPtr.h" |
| 43 #include "wtf/Vector.h" | 43 #include "wtf/Vector.h" |
| 44 | 44 |
| 45 namespace blink { | 45 namespace blink { |
| 46 | 46 |
| 47 class GraphicsContext; |
| 47 class LocalFrame; | 48 class LocalFrame; |
| 48 class InspectorClient; | 49 class InspectorClient; |
| 49 class InspectorController; | 50 class InspectorController; |
| 50 class Page; | 51 class Page; |
| 51 class PlatformKeyboardEvent; | 52 class PlatformKeyboardEvent; |
| 52 class WebDevToolsAgentClient; | 53 class WebDevToolsAgentClient; |
| 53 class WebInputEvent; | 54 class WebInputEvent; |
| 54 class WebLocalFrameImpl; | 55 class WebLocalFrameImpl; |
| 55 class WebString; | 56 class WebString; |
| 56 class WebViewImpl; | 57 class WebViewImpl; |
| 57 | 58 |
| 58 class WebDevToolsAgentImpl final | 59 class WebDevToolsAgentImpl final |
| 59 : public WebDevToolsAgent | 60 : public WebDevToolsAgent |
| 60 , public InspectorClient | 61 , public InspectorClient |
| 61 , public InspectorFrontendChannel | 62 , public InspectorFrontendChannel |
| 62 , public WebPageOverlay | 63 , public PageOverlay::Painter |
| 63 , private WebThread::TaskObserver { | 64 , private WebThread::TaskObserver { |
| 64 public: | 65 public: |
| 65 WebDevToolsAgentImpl(WebViewImpl* webViewImpl, WebDevToolsAgentClient* clien
t); | 66 WebDevToolsAgentImpl(WebViewImpl* webViewImpl, WebDevToolsAgentClient* clien
t); |
| 66 virtual ~WebDevToolsAgentImpl(); | 67 virtual ~WebDevToolsAgentImpl(); |
| 67 | 68 |
| 68 WebDevToolsAgentClient* client() { return m_client; } | 69 WebDevToolsAgentClient* client() { return m_client; } |
| 69 | 70 |
| 70 bool handleInputEvent(Page*, const WebInputEvent&); | 71 bool handleInputEvent(Page*, const WebInputEvent&); |
| 71 | 72 |
| 72 // WebDevToolsAgent implementation. | 73 // WebDevToolsAgent implementation. |
| (...skipping 25 matching lines...) Expand all Loading... |
| 98 virtual void setTouchEventEmulationEnabled(bool) override; | 99 virtual void setTouchEventEmulationEnabled(bool) override; |
| 99 | 100 |
| 100 virtual void setTraceEventCallback(const WTF::String& categoryFilter, TraceE
ventCallback) override; | 101 virtual void setTraceEventCallback(const WTF::String& categoryFilter, TraceE
ventCallback) override; |
| 101 virtual void resetTraceEventCallback() override; | 102 virtual void resetTraceEventCallback() override; |
| 102 virtual void enableTracing(const WTF::String& categoryFilter) override; | 103 virtual void enableTracing(const WTF::String& categoryFilter) override; |
| 103 virtual void disableTracing() override; | 104 virtual void disableTracing() override; |
| 104 | 105 |
| 105 virtual void dispatchKeyEvent(const PlatformKeyboardEvent&) override; | 106 virtual void dispatchKeyEvent(const PlatformKeyboardEvent&) override; |
| 106 virtual void dispatchMouseEvent(const PlatformMouseEvent&) override; | 107 virtual void dispatchMouseEvent(const PlatformMouseEvent&) override; |
| 107 | 108 |
| 108 // WebPageOverlay | 109 // PageOverlay::Painter implementation. |
| 109 virtual void paintPageOverlay(WebCanvas*) override; | 110 virtual void paintPageOverlay(GraphicsContext&) override; |
| 110 | 111 |
| 111 void flushPendingProtocolNotifications(); | 112 void flushPendingProtocolNotifications(); |
| 112 | 113 |
| 113 private: | 114 private: |
| 114 // WebThread::TaskObserver | 115 // WebThread::TaskObserver |
| 115 virtual void willProcessTask() override; | 116 virtual void willProcessTask() override; |
| 116 virtual void didProcessTask() override; | 117 virtual void didProcessTask() override; |
| 117 | 118 |
| 118 void enableMobileEmulation(); | 119 void enableMobileEmulation(); |
| 119 void disableMobileEmulation(); | 120 void disableMobileEmulation(); |
| (...skipping 20 matching lines...) Expand all Loading... |
| 140 OwnPtr<IntPoint> m_lastPinchAnchorDip; | 141 OwnPtr<IntPoint> m_lastPinchAnchorDip; |
| 141 | 142 |
| 142 typedef Vector<RefPtr<JSONObject> > NotificationQueue; | 143 typedef Vector<RefPtr<JSONObject> > NotificationQueue; |
| 143 NotificationQueue m_notificationQueue; | 144 NotificationQueue m_notificationQueue; |
| 144 String m_stateCookie; | 145 String m_stateCookie; |
| 145 }; | 146 }; |
| 146 | 147 |
| 147 } // namespace blink | 148 } // namespace blink |
| 148 | 149 |
| 149 #endif | 150 #endif |
| OLD | NEW |