| 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 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 57 class Node; | 57 class Node; |
| 58 class Page; | 58 class Page; |
| 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 NoBaseWillBeGarbageCollectedFinalized<InspectorOverlay> | 67 : public GarbageCollectedFinalized<InspectorOverlay> |
| 68 , public InspectorDOMAgent::Client | 68 , public InspectorDOMAgent::Client |
| 69 , public InspectorProfilerAgent::Client | 69 , public InspectorProfilerAgent::Client |
| 70 , public InspectorOverlayHost::Listener { | 70 , public InspectorOverlayHost::Listener { |
| 71 USING_FAST_MALLOC_WILL_BE_REMOVED(InspectorOverlay); | 71 USING_GARBAGE_COLLECTED_MIXIN(InspectorOverlay); |
| 72 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(InspectorOverlay); | |
| 73 public: | 72 public: |
| 74 static PassOwnPtrWillBeRawPtr<InspectorOverlay> create(WebViewImpl* webViewI
mpl) | 73 static RawPtr<InspectorOverlay> create(WebViewImpl* webViewImpl) |
| 75 { | 74 { |
| 76 return adoptPtrWillBeNoop(new InspectorOverlay(webViewImpl)); | 75 return new InspectorOverlay(webViewImpl); |
| 77 } | 76 } |
| 78 | 77 |
| 79 ~InspectorOverlay() override; | 78 ~InspectorOverlay() override; |
| 80 DECLARE_TRACE(); | 79 DECLARE_TRACE(); |
| 81 | 80 |
| 82 void init(InspectorCSSAgent*, InspectorDebuggerAgent*, InspectorDOMAgent*); | 81 void init(InspectorCSSAgent*, InspectorDebuggerAgent*, InspectorDOMAgent*); |
| 83 | 82 |
| 84 void clear(); | 83 void clear(); |
| 85 bool handleInputEvent(const WebInputEvent&); | 84 bool handleInputEvent(const WebInputEvent&); |
| 86 void pageLayoutInvalidated(bool resized); | 85 void pageLayoutInvalidated(bool resized); |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 139 bool handleMousePress(); | 138 bool handleMousePress(); |
| 140 bool handleGestureEvent(const PlatformGestureEvent&); | 139 bool handleGestureEvent(const PlatformGestureEvent&); |
| 141 bool handleTouchEvent(const PlatformTouchEvent&); | 140 bool handleTouchEvent(const PlatformTouchEvent&); |
| 142 bool handleMouseMove(const PlatformMouseEvent&); | 141 bool handleMouseMove(const PlatformMouseEvent&); |
| 143 bool shouldSearchForNode(); | 142 bool shouldSearchForNode(); |
| 144 void inspect(Node*); | 143 void inspect(Node*); |
| 145 void initializeLayoutEditorIfNeeded(Node*); | 144 void initializeLayoutEditorIfNeeded(Node*); |
| 146 | 145 |
| 147 WebViewImpl* m_webViewImpl; | 146 WebViewImpl* m_webViewImpl; |
| 148 String m_pausedInDebuggerMessage; | 147 String m_pausedInDebuggerMessage; |
| 149 RefPtrWillBeMember<Node> m_highlightNode; | 148 Member<Node> m_highlightNode; |
| 150 RefPtrWillBeMember<Node> m_eventTargetNode; | 149 Member<Node> m_eventTargetNode; |
| 151 InspectorHighlightConfig m_nodeHighlightConfig; | 150 InspectorHighlightConfig m_nodeHighlightConfig; |
| 152 OwnPtr<FloatQuad> m_highlightQuad; | 151 OwnPtr<FloatQuad> m_highlightQuad; |
| 153 OwnPtrWillBeMember<Page> m_overlayPage; | 152 Member<Page> m_overlayPage; |
| 154 OwnPtrWillBeMember<InspectorOverlayChromeClient> m_overlayChromeClient; | 153 Member<InspectorOverlayChromeClient> m_overlayChromeClient; |
| 155 RefPtrWillBeMember<InspectorOverlayHost> m_overlayHost; | 154 Member<InspectorOverlayHost> m_overlayHost; |
| 156 InspectorHighlightConfig m_quadHighlightConfig; | 155 InspectorHighlightConfig m_quadHighlightConfig; |
| 157 bool m_drawViewSize; | 156 bool m_drawViewSize; |
| 158 bool m_resizeTimerActive; | 157 bool m_resizeTimerActive; |
| 159 bool m_omitTooltip; | 158 bool m_omitTooltip; |
| 160 Timer<InspectorOverlay> m_timer; | 159 Timer<InspectorOverlay> m_timer; |
| 161 int m_suspendCount; | 160 int m_suspendCount; |
| 162 bool m_inLayout; | 161 bool m_inLayout; |
| 163 bool m_needsUpdate; | 162 bool m_needsUpdate; |
| 164 RawPtrWillBeMember<InspectorDebuggerAgent> m_debuggerAgent; | 163 Member<InspectorDebuggerAgent> m_debuggerAgent; |
| 165 RawPtrWillBeMember<InspectorDOMAgent> m_domAgent; | 164 Member<InspectorDOMAgent> m_domAgent; |
| 166 RawPtrWillBeMember<InspectorCSSAgent> m_cssAgent; | 165 Member<InspectorCSSAgent> m_cssAgent; |
| 167 OwnPtrWillBeMember<LayoutEditor> m_layoutEditor; | 166 Member<LayoutEditor> m_layoutEditor; |
| 168 OwnPtr<PageOverlay> m_pageOverlay; | 167 OwnPtr<PageOverlay> m_pageOverlay; |
| 169 RefPtrWillBeMember<Node> m_hoveredNodeForInspectMode; | 168 Member<Node> m_hoveredNodeForInspectMode; |
| 170 InspectorDOMAgent::SearchMode m_inspectMode; | 169 InspectorDOMAgent::SearchMode m_inspectMode; |
| 171 OwnPtr<InspectorHighlightConfig> m_inspectModeHighlightConfig; | 170 OwnPtr<InspectorHighlightConfig> m_inspectModeHighlightConfig; |
| 172 }; | 171 }; |
| 173 | 172 |
| 174 } // namespace blink | 173 } // namespace blink |
| 175 | 174 |
| 176 | 175 |
| 177 #endif // InspectorOverlay_h | 176 #endif // InspectorOverlay_h |
| OLD | NEW |