| 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 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 107 // InspectorPageAgent::Client implementation. | 107 // InspectorPageAgent::Client implementation. |
| 108 void pageLayoutInvalidated(bool resized) override; | 108 void pageLayoutInvalidated(bool resized) override; |
| 109 void setShowViewportSizeOnResize(bool show, bool showGrid) override; | 109 void setShowViewportSizeOnResize(bool show, bool showGrid) override; |
| 110 void setPausedInDebuggerMessage(const String*) override; | 110 void setPausedInDebuggerMessage(const String*) override; |
| 111 | 111 |
| 112 // InspectorDOMAgent::Client implementation. | 112 // InspectorDOMAgent::Client implementation. |
| 113 void hideHighlight() override; | 113 void hideHighlight() override; |
| 114 void highlightNode(Node*, const InspectorHighlightConfig&, bool omitTooltip)
override; | 114 void highlightNode(Node*, const InspectorHighlightConfig&, bool omitTooltip)
override; |
| 115 void highlightQuad(PassOwnPtr<FloatQuad>, const InspectorHighlightConfig&) o
verride; | 115 void highlightQuad(PassOwnPtr<FloatQuad>, const InspectorHighlightConfig&) o
verride; |
| 116 void setInspectMode(InspectorDOMAgent::SearchMode, PassOwnPtr<InspectorHighl
ightConfig>) override; | 116 void setInspectMode(InspectorDOMAgent::SearchMode, PassOwnPtr<InspectorHighl
ightConfig>) override; |
| 117 void setInspectedNode(Node*) override; |
| 117 | 118 |
| 118 void highlightNode(Node*, Node* eventTarget, const InspectorHighlightConfig&
, bool omitTooltip); | 119 void highlightNode(Node*, Node* eventTarget, const InspectorHighlightConfig&
, bool omitTooltip); |
| 119 bool isEmpty(); | 120 bool isEmpty(); |
| 120 void drawNodeHighlight(); | 121 void drawNodeHighlight(); |
| 121 void drawQuadHighlight(); | 122 void drawQuadHighlight(); |
| 122 void drawPausedInDebuggerMessage(); | 123 void drawPausedInDebuggerMessage(); |
| 123 void drawViewSize(); | 124 void drawViewSize(); |
| 124 | 125 |
| 125 Page* overlayPage(); | 126 Page* overlayPage(); |
| 126 LocalFrame* overlayMainFrame(); | 127 LocalFrame* overlayMainFrame(); |
| 127 void reset(const IntSize& viewportSize, const IntPoint& documentScrollOffset
); | 128 void reset(const IntSize& viewportSize, const IntPoint& documentScrollOffset
); |
| 128 void evaluateInOverlay(const String& method, const String& argument); | 129 void evaluateInOverlay(const String& method, const String& argument); |
| 129 void evaluateInOverlay(const String& method, PassRefPtr<JSONValue> argument)
; | 130 void evaluateInOverlay(const String& method, PassRefPtr<JSONValue> argument)
; |
| 130 void onTimer(Timer<InspectorOverlay>*); | 131 void onTimer(Timer<InspectorOverlay>*); |
| 131 void rebuildOverlayPage(); | 132 void rebuildOverlayPage(); |
| 132 void invalidate(); | 133 void invalidate(); |
| 133 void scheduleUpdate(); | 134 void scheduleUpdate(); |
| 134 | 135 |
| 135 bool handleMousePress(); | 136 bool handleMousePress(); |
| 136 bool handleGestureEvent(const PlatformGestureEvent&); | 137 bool handleGestureEvent(const PlatformGestureEvent&); |
| 137 bool handleTouchEvent(const PlatformTouchEvent&); | 138 bool handleTouchEvent(const PlatformTouchEvent&); |
| 138 bool handleMouseMove(const PlatformMouseEvent&); | 139 bool handleMouseMove(const PlatformMouseEvent&); |
| 139 bool shouldSearchForNode(); | 140 bool shouldSearchForNode(); |
| 140 void inspect(Node*); | 141 void inspect(Node*); |
| 142 void initializeLayoutEditorIfNeeded(Node*); |
| 141 | 143 |
| 142 WebViewImpl* m_webViewImpl; | 144 WebViewImpl* m_webViewImpl; |
| 143 String m_pausedInDebuggerMessage; | 145 String m_pausedInDebuggerMessage; |
| 144 RefPtrWillBeMember<Node> m_highlightNode; | 146 RefPtrWillBeMember<Node> m_highlightNode; |
| 145 RefPtrWillBeMember<Node> m_eventTargetNode; | 147 RefPtrWillBeMember<Node> m_eventTargetNode; |
| 146 InspectorHighlightConfig m_nodeHighlightConfig; | 148 InspectorHighlightConfig m_nodeHighlightConfig; |
| 147 OwnPtr<FloatQuad> m_highlightQuad; | 149 OwnPtr<FloatQuad> m_highlightQuad; |
| 148 OwnPtrWillBeMember<Page> m_overlayPage; | 150 OwnPtrWillBeMember<Page> m_overlayPage; |
| 149 OwnPtrWillBeMember<InspectorOverlayChromeClient> m_overlayChromeClient; | 151 OwnPtrWillBeMember<InspectorOverlayChromeClient> m_overlayChromeClient; |
| 150 RefPtrWillBeMember<InspectorOverlayHost> m_overlayHost; | 152 RefPtrWillBeMember<InspectorOverlayHost> m_overlayHost; |
| (...skipping 13 matching lines...) Expand all Loading... |
| 164 OwnPtr<PageOverlay> m_pageOverlay; | 166 OwnPtr<PageOverlay> m_pageOverlay; |
| 165 RefPtrWillBeMember<Node> m_hoveredNodeForInspectMode; | 167 RefPtrWillBeMember<Node> m_hoveredNodeForInspectMode; |
| 166 InspectorDOMAgent::SearchMode m_inspectMode; | 168 InspectorDOMAgent::SearchMode m_inspectMode; |
| 167 OwnPtr<InspectorHighlightConfig> m_inspectModeHighlightConfig; | 169 OwnPtr<InspectorHighlightConfig> m_inspectModeHighlightConfig; |
| 168 }; | 170 }; |
| 169 | 171 |
| 170 } // namespace blink | 172 } // namespace blink |
| 171 | 173 |
| 172 | 174 |
| 173 #endif // InspectorOverlay_h | 175 #endif // InspectorOverlay_h |
| OLD | NEW |