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 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
112 void resize(const IntSize&); | 112 void resize(const IntSize&); |
113 | 113 |
114 void setPausedInDebuggerMessage(const String*); | 114 void setPausedInDebuggerMessage(const String*); |
115 | 115 |
116 void hideHighlight(); | 116 void hideHighlight(); |
117 void highlightNode(Node*, const HighlightConfig&); | 117 void highlightNode(Node*, const HighlightConfig&); |
118 void highlightQuad(PassOwnPtr<FloatQuad>, const HighlightConfig&); | 118 void highlightQuad(PassOwnPtr<FloatQuad>, const HighlightConfig&); |
119 | 119 |
120 Node* highlightedNode() const; | 120 Node* highlightedNode() const; |
121 | 121 |
122 void reportMemoryUsage(MemoryObjectInfo*) const; | |
123 | |
124 void freePage(); | 122 void freePage(); |
125 private: | 123 private: |
126 InspectorOverlay(Page*, InspectorClient*); | 124 InspectorOverlay(Page*, InspectorClient*); |
127 | 125 |
128 void drawGutter(); | 126 void drawGutter(); |
129 void drawNodeHighlight(); | 127 void drawNodeHighlight(); |
130 void drawQuadHighlight(); | 128 void drawQuadHighlight(); |
131 void drawPausedInDebuggerMessage(); | 129 void drawPausedInDebuggerMessage(); |
132 Page* overlayPage(); | 130 Page* overlayPage(); |
133 void reset(const IntSize& viewportSize, const IntSize& frameViewFullSize); | 131 void reset(const IntSize& viewportSize, const IntSize& frameViewFullSize); |
134 void evaluateInOverlay(const String& method, const String& argument); | 132 void evaluateInOverlay(const String& method, const String& argument); |
135 void evaluateInOverlay(const String& method, PassRefPtr<InspectorValue> argu
ment); | 133 void evaluateInOverlay(const String& method, PassRefPtr<InspectorValue> argu
ment); |
136 | 134 |
137 Page* m_page; | 135 Page* m_page; |
138 InspectorClient* m_client; | 136 InspectorClient* m_client; |
139 String m_pausedInDebuggerMessage; | 137 String m_pausedInDebuggerMessage; |
140 RefPtr<Node> m_highlightNode; | 138 RefPtr<Node> m_highlightNode; |
141 HighlightConfig m_nodeHighlightConfig; | 139 HighlightConfig m_nodeHighlightConfig; |
142 OwnPtr<FloatQuad> m_highlightQuad; | 140 OwnPtr<FloatQuad> m_highlightQuad; |
143 OwnPtr<Page> m_overlayPage; | 141 OwnPtr<Page> m_overlayPage; |
144 HighlightConfig m_quadHighlightConfig; | 142 HighlightConfig m_quadHighlightConfig; |
145 IntSize m_size; | 143 IntSize m_size; |
146 }; | 144 }; |
147 | 145 |
148 } // namespace WebCore | 146 } // namespace WebCore |
149 | 147 |
150 | 148 |
151 #endif // InspectorOverlay_h | 149 #endif // InspectorOverlay_h |
OLD | NEW |