Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(7)

Side by Side Diff: third_party/WebKit/Source/web/InspectorOverlay.h

Issue 1967933002: [DevTools] Dispatch messages to V8InspectorSession directly. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@1936593002
Patch Set: rebased Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2011 Google Inc. All rights reserved. 2 * Copyright (C) 2011 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 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 7 *
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. 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 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 13 matching lines...) Expand all
24 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 24 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
25 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 25 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
26 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 26 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27 */ 27 */
28 28
29 #ifndef InspectorOverlay_h 29 #ifndef InspectorOverlay_h
30 #define InspectorOverlay_h 30 #define InspectorOverlay_h
31 31
32 #include "core/inspector/InspectorDOMAgent.h" 32 #include "core/inspector/InspectorDOMAgent.h"
33 #include "core/inspector/InspectorOverlayHost.h" 33 #include "core/inspector/InspectorOverlayHost.h"
34 #include "core/inspector/InspectorProfilerAgent.h"
35 #include "platform/Timer.h" 34 #include "platform/Timer.h"
36 #include "platform/geometry/FloatQuad.h" 35 #include "platform/geometry/FloatQuad.h"
37 #include "platform/geometry/LayoutRect.h" 36 #include "platform/geometry/LayoutRect.h"
38 #include "platform/graphics/Color.h" 37 #include "platform/graphics/Color.h"
39 #include "platform/heap/Handle.h" 38 #include "platform/heap/Handle.h"
40 #include "platform/inspector_protocol/TypeBuilder.h" 39 #include "platform/inspector_protocol/TypeBuilder.h"
41 #include "public/web/WebInputEvent.h" 40 #include "public/web/WebInputEvent.h"
42 #include "wtf/OwnPtr.h" 41 #include "wtf/OwnPtr.h"
43 #include "wtf/PassOwnPtr.h" 42 #include "wtf/PassOwnPtr.h"
44 #include "wtf/RefPtr.h" 43 #include "wtf/RefPtr.h"
45 #include "wtf/text/WTFString.h" 44 #include "wtf/text/WTFString.h"
46 45
47 namespace blink { 46 namespace blink {
48 47
49 class Color; 48 class Color;
50 class EmptyChromeClient; 49 class EmptyChromeClient;
51 class LocalFrame; 50 class LocalFrame;
52 class GraphicsContext; 51 class GraphicsContext;
53 class GraphicsLayer; 52 class GraphicsLayer;
54 class InspectorCSSAgent; 53 class InspectorCSSAgent;
55 class InspectorDebuggerAgent;
56 class LayoutEditor; 54 class LayoutEditor;
57 class Node; 55 class Node;
58 class Page; 56 class Page;
59 class PageOverlay; 57 class PageOverlay;
58 class V8InspectorSession;
60 class WebViewImpl; 59 class WebViewImpl;
61 60
62 namespace protocol { 61 namespace protocol {
63 class Value; 62 class Value;
64 } 63 }
65 64
66 class InspectorOverlay final 65 class InspectorOverlay final
67 : public GarbageCollectedFinalized<InspectorOverlay> 66 : public GarbageCollectedFinalized<InspectorOverlay>
68 , public InspectorDOMAgent::Client 67 , public InspectorDOMAgent::Client
69 , public InspectorOverlayHost::Listener { 68 , public InspectorOverlayHost::Listener {
70 USING_GARBAGE_COLLECTED_MIXIN(InspectorOverlay); 69 USING_GARBAGE_COLLECTED_MIXIN(InspectorOverlay);
71 public: 70 public:
72 static InspectorOverlay* create(WebViewImpl* webViewImpl) 71 static InspectorOverlay* create(WebViewImpl* webViewImpl)
73 { 72 {
74 return new InspectorOverlay(webViewImpl); 73 return new InspectorOverlay(webViewImpl);
75 } 74 }
76 75
77 ~InspectorOverlay() override; 76 ~InspectorOverlay() override;
78 DECLARE_TRACE(); 77 DECLARE_TRACE();
79 78
80 void init(InspectorCSSAgent*, InspectorDebuggerAgent*, InspectorDOMAgent*); 79 void init(InspectorCSSAgent*, V8InspectorSession*, InspectorDOMAgent*);
81 80
82 void clear(); 81 void clear();
83 void suspend(); 82 void suspend();
84 void resume(); 83 void resume();
85 bool handleInputEvent(const WebInputEvent&); 84 bool handleInputEvent(const WebInputEvent&);
86 void pageLayoutInvalidated(bool resized); 85 void pageLayoutInvalidated(bool resized);
87 void setShowViewportSizeOnResize(bool); 86 void setShowViewportSizeOnResize(bool);
88 void setPausedInDebuggerMessage(const String&); 87 void setPausedInDebuggerMessage(const String&);
89 88
90 // Does not yet include paint. 89 // Does not yet include paint.
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
151 Member<InspectorOverlayChromeClient> m_overlayChromeClient; 150 Member<InspectorOverlayChromeClient> m_overlayChromeClient;
152 Member<InspectorOverlayHost> m_overlayHost; 151 Member<InspectorOverlayHost> m_overlayHost;
153 InspectorHighlightConfig m_quadHighlightConfig; 152 InspectorHighlightConfig m_quadHighlightConfig;
154 bool m_drawViewSize; 153 bool m_drawViewSize;
155 bool m_resizeTimerActive; 154 bool m_resizeTimerActive;
156 bool m_omitTooltip; 155 bool m_omitTooltip;
157 Timer<InspectorOverlay> m_timer; 156 Timer<InspectorOverlay> m_timer;
158 int m_suspendCount; 157 int m_suspendCount;
159 bool m_inLayout; 158 bool m_inLayout;
160 bool m_needsUpdate; 159 bool m_needsUpdate;
161 Member<InspectorDebuggerAgent> m_debuggerAgent; 160 V8InspectorSession* m_v8Session;
162 Member<InspectorDOMAgent> m_domAgent; 161 Member<InspectorDOMAgent> m_domAgent;
163 Member<InspectorCSSAgent> m_cssAgent; 162 Member<InspectorCSSAgent> m_cssAgent;
164 Member<LayoutEditor> m_layoutEditor; 163 Member<LayoutEditor> m_layoutEditor;
165 OwnPtr<PageOverlay> m_pageOverlay; 164 OwnPtr<PageOverlay> m_pageOverlay;
166 Member<Node> m_hoveredNodeForInspectMode; 165 Member<Node> m_hoveredNodeForInspectMode;
167 InspectorDOMAgent::SearchMode m_inspectMode; 166 InspectorDOMAgent::SearchMode m_inspectMode;
168 OwnPtr<InspectorHighlightConfig> m_inspectModeHighlightConfig; 167 OwnPtr<InspectorHighlightConfig> m_inspectModeHighlightConfig;
169 }; 168 };
170 169
171 } // namespace blink 170 } // namespace blink
172 171
173 172
174 #endif // InspectorOverlay_h 173 #endif // InspectorOverlay_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698