| 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 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 114 { | 114 { |
| 115 return adoptPtr(new InspectorOverlay(page, client)); | 115 return adoptPtr(new InspectorOverlay(page, client)); |
| 116 } | 116 } |
| 117 | 117 |
| 118 ~InspectorOverlay(); | 118 ~InspectorOverlay(); |
| 119 | 119 |
| 120 void update(); | 120 void update(); |
| 121 void hide(); | 121 void hide(); |
| 122 void paint(GraphicsContext&); | 122 void paint(GraphicsContext&); |
| 123 void drawOutline(GraphicsContext*, const LayoutRect&, const Color&); | 123 void drawOutline(GraphicsContext*, const LayoutRect&, const Color&); |
| 124 void resize(const IntSize&); | |
| 125 bool handleGestureEvent(const PlatformGestureEvent&); | 124 bool handleGestureEvent(const PlatformGestureEvent&); |
| 126 bool handleMouseEvent(const PlatformMouseEvent&); | 125 bool handleMouseEvent(const PlatformMouseEvent&); |
| 127 bool handleTouchEvent(const PlatformTouchEvent&); | 126 bool handleTouchEvent(const PlatformTouchEvent&); |
| 128 bool handleKeyboardEvent(const PlatformKeyboardEvent&); | 127 bool handleKeyboardEvent(const PlatformKeyboardEvent&); |
| 129 | 128 |
| 130 void setPausedInDebuggerMessage(const String*); | 129 void setPausedInDebuggerMessage(const String*); |
| 131 void setInspectModeEnabled(bool); | 130 void setInspectModeEnabled(bool); |
| 132 | 131 |
| 133 void hideHighlight(); | 132 void hideHighlight(); |
| 134 void highlightNode(Node*, Node* eventTarget, const HighlightConfig&, bool om
itTooltip); | 133 void highlightNode(Node*, Node* eventTarget, const HighlightConfig&, bool om
itTooltip); |
| (...skipping 17 matching lines...) Expand all Loading... |
| 152 InspectorOverlay(Page*, InspectorClient*); | 151 InspectorOverlay(Page*, InspectorClient*); |
| 153 | 152 |
| 154 bool isEmpty(); | 153 bool isEmpty(); |
| 155 | 154 |
| 156 void drawNodeHighlight(); | 155 void drawNodeHighlight(); |
| 157 void drawQuadHighlight(); | 156 void drawQuadHighlight(); |
| 158 void drawPausedInDebuggerMessage(); | 157 void drawPausedInDebuggerMessage(); |
| 159 void drawViewSize(); | 158 void drawViewSize(); |
| 160 | 159 |
| 161 Page* overlayPage(); | 160 Page* overlayPage(); |
| 162 void reset(const IntSize& viewportSize, const IntSize& frameViewFullSize, in
t scrollX, int scrollY); | 161 void reset(const IntSize& viewportSize, int scrollX, int scrollY); |
| 163 void evaluateInOverlay(const String& method, const String& argument); | 162 void evaluateInOverlay(const String& method, const String& argument); |
| 164 void evaluateInOverlay(const String& method, PassRefPtr<JSONValue> argument)
; | 163 void evaluateInOverlay(const String& method, PassRefPtr<JSONValue> argument)
; |
| 165 void onTimer(Timer<InspectorOverlay>*); | 164 void onTimer(Timer<InspectorOverlay>*); |
| 166 | 165 |
| 167 Page* m_page; | 166 Page* m_page; |
| 168 InspectorClient* m_client; | 167 InspectorClient* m_client; |
| 169 String m_pausedInDebuggerMessage; | 168 String m_pausedInDebuggerMessage; |
| 170 bool m_inspectModeEnabled; | 169 bool m_inspectModeEnabled; |
| 171 RefPtr<Node> m_highlightNode; | 170 RefPtr<Node> m_highlightNode; |
| 172 RefPtr<Node> m_eventTargetNode; | 171 RefPtr<Node> m_eventTargetNode; |
| 173 HighlightConfig m_nodeHighlightConfig; | 172 HighlightConfig m_nodeHighlightConfig; |
| 174 OwnPtr<FloatQuad> m_highlightQuad; | 173 OwnPtr<FloatQuad> m_highlightQuad; |
| 175 OwnPtrWillBePersistent<Page> m_overlayPage; | 174 OwnPtrWillBePersistent<Page> m_overlayPage; |
| 176 OwnPtr<EmptyChromeClient> m_overlayChromeClient; | 175 OwnPtr<EmptyChromeClient> m_overlayChromeClient; |
| 177 RefPtr<InspectorOverlayHost> m_overlayHost; | 176 RefPtr<InspectorOverlayHost> m_overlayHost; |
| 178 HighlightConfig m_quadHighlightConfig; | 177 HighlightConfig m_quadHighlightConfig; |
| 179 IntSize m_size; | |
| 180 bool m_drawViewSize; | 178 bool m_drawViewSize; |
| 181 bool m_drawViewSizeWithGrid; | 179 bool m_drawViewSizeWithGrid; |
| 182 bool m_omitTooltip; | 180 bool m_omitTooltip; |
| 183 Timer<InspectorOverlay> m_timer; | 181 Timer<InspectorOverlay> m_timer; |
| 184 int m_activeProfilerCount; | 182 int m_activeProfilerCount; |
| 185 }; | 183 }; |
| 186 | 184 |
| 187 } // namespace WebCore | 185 } // namespace WebCore |
| 188 | 186 |
| 189 | 187 |
| 190 #endif // InspectorOverlay_h | 188 #endif // InspectorOverlay_h |
| OLD | NEW |