| 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 24 matching lines...) Expand all Loading... |
| 35 #include "platform/geometry/FloatQuad.h" | 35 #include "platform/geometry/FloatQuad.h" |
| 36 #include "platform/geometry/LayoutRect.h" | 36 #include "platform/geometry/LayoutRect.h" |
| 37 #include "platform/graphics/Color.h" | 37 #include "platform/graphics/Color.h" |
| 38 #include "platform/heap/Handle.h" | 38 #include "platform/heap/Handle.h" |
| 39 #include "platform/inspector_protocol/InspectorProtocol.h" | 39 #include "platform/inspector_protocol/InspectorProtocol.h" |
| 40 #include "public/web/WebInputEvent.h" | 40 #include "public/web/WebInputEvent.h" |
| 41 #include "wtf/RefPtr.h" | 41 #include "wtf/RefPtr.h" |
| 42 #include "wtf/text/WTFString.h" | 42 #include "wtf/text/WTFString.h" |
| 43 #include <memory> | 43 #include <memory> |
| 44 | 44 |
| 45 namespace v8_inspector { |
| 46 class V8InspectorSession; |
| 47 } |
| 48 |
| 45 namespace blink { | 49 namespace blink { |
| 46 | 50 |
| 47 class Color; | 51 class Color; |
| 48 class EmptyChromeClient; | 52 class EmptyChromeClient; |
| 49 class LocalFrame; | 53 class LocalFrame; |
| 50 class GraphicsContext; | 54 class GraphicsContext; |
| 51 class GraphicsLayer; | 55 class GraphicsLayer; |
| 52 class InspectorCSSAgent; | 56 class InspectorCSSAgent; |
| 53 class LayoutEditor; | 57 class LayoutEditor; |
| 54 class Node; | 58 class Node; |
| 55 class Page; | 59 class Page; |
| 56 class PageOverlay; | 60 class PageOverlay; |
| 57 class V8InspectorSession; | |
| 58 class WebViewImpl; | 61 class WebViewImpl; |
| 59 | 62 |
| 60 namespace protocol { | 63 namespace protocol { |
| 61 class Value; | 64 class Value; |
| 62 } | 65 } |
| 63 | 66 |
| 64 class InspectorOverlay final | 67 class InspectorOverlay final |
| 65 : public GarbageCollectedFinalized<InspectorOverlay> | 68 : public GarbageCollectedFinalized<InspectorOverlay> |
| 66 , public InspectorDOMAgent::Client | 69 , public InspectorDOMAgent::Client |
| 67 , public InspectorOverlayHost::Listener { | 70 , public InspectorOverlayHost::Listener { |
| 68 USING_GARBAGE_COLLECTED_MIXIN(InspectorOverlay); | 71 USING_GARBAGE_COLLECTED_MIXIN(InspectorOverlay); |
| 69 public: | 72 public: |
| 70 static InspectorOverlay* create(WebViewImpl* webViewImpl) | 73 static InspectorOverlay* create(WebViewImpl* webViewImpl) |
| 71 { | 74 { |
| 72 return new InspectorOverlay(webViewImpl); | 75 return new InspectorOverlay(webViewImpl); |
| 73 } | 76 } |
| 74 | 77 |
| 75 ~InspectorOverlay() override; | 78 ~InspectorOverlay() override; |
| 76 DECLARE_TRACE(); | 79 DECLARE_TRACE(); |
| 77 | 80 |
| 78 void init(InspectorCSSAgent*, V8InspectorSession*, InspectorDOMAgent*); | 81 void init(InspectorCSSAgent*, v8_inspector::V8InspectorSession*, InspectorDO
MAgent*); |
| 79 | 82 |
| 80 void clear(); | 83 void clear(); |
| 81 void suspend(); | 84 void suspend(); |
| 82 void resume(); | 85 void resume(); |
| 83 bool handleInputEvent(const WebInputEvent&); | 86 bool handleInputEvent(const WebInputEvent&); |
| 84 void pageLayoutInvalidated(bool resized); | 87 void pageLayoutInvalidated(bool resized); |
| 85 void setShowViewportSizeOnResize(bool); | 88 void setShowViewportSizeOnResize(bool); |
| 86 void setPausedInDebuggerMessage(const String&); | 89 void setPausedInDebuggerMessage(const String&); |
| 87 | 90 |
| 88 // Does not yet include paint. | 91 // Does not yet include paint. |
| (...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 151 Member<InspectorOverlayChromeClient> m_overlayChromeClient; | 154 Member<InspectorOverlayChromeClient> m_overlayChromeClient; |
| 152 Member<InspectorOverlayHost> m_overlayHost; | 155 Member<InspectorOverlayHost> m_overlayHost; |
| 153 InspectorHighlightConfig m_quadHighlightConfig; | 156 InspectorHighlightConfig m_quadHighlightConfig; |
| 154 bool m_drawViewSize; | 157 bool m_drawViewSize; |
| 155 bool m_resizeTimerActive; | 158 bool m_resizeTimerActive; |
| 156 bool m_omitTooltip; | 159 bool m_omitTooltip; |
| 157 Timer<InspectorOverlay> m_timer; | 160 Timer<InspectorOverlay> m_timer; |
| 158 bool m_suspended; | 161 bool m_suspended; |
| 159 bool m_inLayout; | 162 bool m_inLayout; |
| 160 bool m_needsUpdate; | 163 bool m_needsUpdate; |
| 161 V8InspectorSession* m_v8Session; | 164 v8_inspector::V8InspectorSession* m_v8Session; |
| 162 Member<InspectorDOMAgent> m_domAgent; | 165 Member<InspectorDOMAgent> m_domAgent; |
| 163 Member<InspectorCSSAgent> m_cssAgent; | 166 Member<InspectorCSSAgent> m_cssAgent; |
| 164 Member<LayoutEditor> m_layoutEditor; | 167 Member<LayoutEditor> m_layoutEditor; |
| 165 std::unique_ptr<PageOverlay> m_pageOverlay; | 168 std::unique_ptr<PageOverlay> m_pageOverlay; |
| 166 Member<Node> m_hoveredNodeForInspectMode; | 169 Member<Node> m_hoveredNodeForInspectMode; |
| 167 InspectorDOMAgent::SearchMode m_inspectMode; | 170 InspectorDOMAgent::SearchMode m_inspectMode; |
| 168 std::unique_ptr<InspectorHighlightConfig> m_inspectModeHighlightConfig; | 171 std::unique_ptr<InspectorHighlightConfig> m_inspectModeHighlightConfig; |
| 169 }; | 172 }; |
| 170 | 173 |
| 171 } // namespace blink | 174 } // namespace blink |
| 172 | 175 |
| 173 | 176 |
| 174 #endif // InspectorOverlay_h | 177 #endif // InspectorOverlay_h |
| OLD | NEW |