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 143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
154 ASSERT(!m_overlayPage); | 154 ASSERT(!m_overlayPage); |
155 } | 155 } |
156 | 156 |
157 DEFINE_TRACE(InspectorOverlayImpl) | 157 DEFINE_TRACE(InspectorOverlayImpl) |
158 { | 158 { |
159 visitor->trace(m_highlightNode); | 159 visitor->trace(m_highlightNode); |
160 visitor->trace(m_eventTargetNode); | 160 visitor->trace(m_eventTargetNode); |
161 visitor->trace(m_overlayPage); | 161 visitor->trace(m_overlayPage); |
162 visitor->trace(m_overlayChromeClient); | 162 visitor->trace(m_overlayChromeClient); |
163 visitor->trace(m_overlayHost); | 163 visitor->trace(m_overlayHost); |
| 164 visitor->trace(m_debuggerAgent); |
164 visitor->trace(m_layoutEditor); | 165 visitor->trace(m_layoutEditor); |
165 } | 166 } |
166 | 167 |
167 void InspectorOverlayImpl::init(InspectorCSSAgent* cssAgent, InspectorDebuggerAg
ent* debuggerAgent) | 168 void InspectorOverlayImpl::init(InspectorCSSAgent* cssAgent, InspectorDebuggerAg
ent* debuggerAgent) |
168 { | 169 { |
169 m_layoutEditor = LayoutEditor::create(cssAgent); | 170 m_layoutEditor = LayoutEditor::create(cssAgent); |
170 m_debuggerAgent = debuggerAgent; | 171 m_debuggerAgent = debuggerAgent; |
171 m_overlayHost->setListener(this); | 172 m_overlayHost->setListener(this); |
172 } | 173 } |
173 | 174 |
(...skipping 348 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
522 update(); | 523 update(); |
523 } | 524 } |
524 | 525 |
525 void InspectorOverlayImpl::setShowViewportSizeOnResize(bool show, bool showGrid) | 526 void InspectorOverlayImpl::setShowViewportSizeOnResize(bool show, bool showGrid) |
526 { | 527 { |
527 m_drawViewSize = show; | 528 m_drawViewSize = show; |
528 m_drawViewSizeWithGrid = showGrid; | 529 m_drawViewSizeWithGrid = showGrid; |
529 } | 530 } |
530 | 531 |
531 } // namespace blink | 532 } // namespace blink |
OLD | NEW |