OLD | NEW |
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 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
59 class PageOverlay; | 59 class PageOverlay; |
60 class WebViewImpl; | 60 class WebViewImpl; |
61 | 61 |
62 namespace protocol { | 62 namespace protocol { |
63 class Value; | 63 class Value; |
64 } | 64 } |
65 | 65 |
66 class InspectorOverlay final | 66 class InspectorOverlay final |
67 : public GarbageCollectedFinalized<InspectorOverlay> | 67 : public GarbageCollectedFinalized<InspectorOverlay> |
68 , public InspectorDOMAgent::Client | 68 , public InspectorDOMAgent::Client |
69 , public InspectorProfilerAgent::Client | |
70 , public InspectorOverlayHost::Listener { | 69 , public InspectorOverlayHost::Listener { |
71 USING_GARBAGE_COLLECTED_MIXIN(InspectorOverlay); | 70 USING_GARBAGE_COLLECTED_MIXIN(InspectorOverlay); |
72 public: | 71 public: |
73 static InspectorOverlay* create(WebViewImpl* webViewImpl) | 72 static InspectorOverlay* create(WebViewImpl* webViewImpl) |
74 { | 73 { |
75 return new InspectorOverlay(webViewImpl); | 74 return new InspectorOverlay(webViewImpl); |
76 } | 75 } |
77 | 76 |
78 ~InspectorOverlay() override; | 77 ~InspectorOverlay() override; |
79 DECLARE_TRACE(); | 78 DECLARE_TRACE(); |
80 | 79 |
81 void init(InspectorCSSAgent*, InspectorDebuggerAgent*, InspectorDOMAgent*); | 80 void init(InspectorCSSAgent*, InspectorDebuggerAgent*, InspectorDOMAgent*); |
82 | 81 |
83 void clear(); | 82 void clear(); |
| 83 void suspend(); |
| 84 void resume(); |
84 bool handleInputEvent(const WebInputEvent&); | 85 bool handleInputEvent(const WebInputEvent&); |
85 void pageLayoutInvalidated(bool resized); | 86 void pageLayoutInvalidated(bool resized); |
86 void setShowViewportSizeOnResize(bool); | 87 void setShowViewportSizeOnResize(bool); |
87 void setPausedInDebuggerMessage(const String&); | 88 void setPausedInDebuggerMessage(const String&); |
88 | 89 |
89 // Does not yet include paint. | 90 // Does not yet include paint. |
90 void updateAllLifecyclePhases(); | 91 void updateAllLifecyclePhases(); |
91 | 92 |
92 PageOverlay* pageOverlay() { return m_pageOverlay.get(); }; | 93 PageOverlay* pageOverlay() { return m_pageOverlay.get(); }; |
93 String evaluateInOverlayForTest(const String&); | 94 String evaluateInOverlayForTest(const String&); |
94 | 95 |
95 private: | 96 private: |
96 explicit InspectorOverlay(WebViewImpl*); | 97 explicit InspectorOverlay(WebViewImpl*); |
97 class InspectorOverlayChromeClient; | 98 class InspectorOverlayChromeClient; |
98 class InspectorPageOverlayDelegate; | 99 class InspectorPageOverlayDelegate; |
99 | 100 |
100 // InspectorOverlayHost::Listener implementation. | 101 // InspectorOverlayHost::Listener implementation. |
101 void overlayResumed() override; | 102 void overlayResumed() override; |
102 void overlaySteppedOver() override; | 103 void overlaySteppedOver() override; |
103 void overlayStartedPropertyChange(const String&) override; | 104 void overlayStartedPropertyChange(const String&) override; |
104 void overlayPropertyChanged(float) override; | 105 void overlayPropertyChanged(float) override; |
105 void overlayEndedPropertyChange() override; | 106 void overlayEndedPropertyChange() override; |
106 void overlayClearSelection(bool) override; | 107 void overlayClearSelection(bool) override; |
107 void overlayNextSelector() override; | 108 void overlayNextSelector() override; |
108 void overlayPreviousSelector() override; | 109 void overlayPreviousSelector() override; |
109 | 110 |
110 // InspectorProfilerAgent::Client implementation. | |
111 void profilingStarted() override; | |
112 void profilingStopped() override; | |
113 | |
114 // InspectorDOMAgent::Client implementation. | 111 // InspectorDOMAgent::Client implementation. |
115 void hideHighlight() override; | 112 void hideHighlight() override; |
116 void highlightNode(Node*, const InspectorHighlightConfig&, bool omitTooltip)
override; | 113 void highlightNode(Node*, const InspectorHighlightConfig&, bool omitTooltip)
override; |
117 void highlightQuad(PassOwnPtr<FloatQuad>, const InspectorHighlightConfig&) o
verride; | 114 void highlightQuad(PassOwnPtr<FloatQuad>, const InspectorHighlightConfig&) o
verride; |
118 void setInspectMode(InspectorDOMAgent::SearchMode, PassOwnPtr<InspectorHighl
ightConfig>) override; | 115 void setInspectMode(InspectorDOMAgent::SearchMode, PassOwnPtr<InspectorHighl
ightConfig>) override; |
119 void setInspectedNode(Node*) override; | 116 void setInspectedNode(Node*) override; |
120 | 117 |
121 void highlightNode(Node*, Node* eventTarget, const InspectorHighlightConfig&
, bool omitTooltip); | 118 void highlightNode(Node*, Node* eventTarget, const InspectorHighlightConfig&
, bool omitTooltip); |
122 bool isEmpty(); | 119 bool isEmpty(); |
123 void drawNodeHighlight(); | 120 void drawNodeHighlight(); |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
167 OwnPtr<PageOverlay> m_pageOverlay; | 164 OwnPtr<PageOverlay> m_pageOverlay; |
168 Member<Node> m_hoveredNodeForInspectMode; | 165 Member<Node> m_hoveredNodeForInspectMode; |
169 InspectorDOMAgent::SearchMode m_inspectMode; | 166 InspectorDOMAgent::SearchMode m_inspectMode; |
170 OwnPtr<InspectorHighlightConfig> m_inspectModeHighlightConfig; | 167 OwnPtr<InspectorHighlightConfig> m_inspectModeHighlightConfig; |
171 }; | 168 }; |
172 | 169 |
173 } // namespace blink | 170 } // namespace blink |
174 | 171 |
175 | 172 |
176 #endif // InspectorOverlay_h | 173 #endif // InspectorOverlay_h |
OLD | NEW |