Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1630)

Unified Diff: Source/web/InspectorOverlayImpl.cpp

Issue 1322593003: [DevTools] Remove InspectorOverlayHost::LayoutEditorListener. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebased Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/web/InspectorOverlayImpl.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/web/InspectorOverlayImpl.cpp
diff --git a/Source/web/InspectorOverlayImpl.cpp b/Source/web/InspectorOverlayImpl.cpp
index 0d6cfcb24cc21b8d0eaa67729f3abaf46f88cacd..4c5a11ce3cc0c2a2ae69f613361c10af1ad703be 100644
--- a/Source/web/InspectorOverlayImpl.cpp
+++ b/Source/web/InspectorOverlayImpl.cpp
@@ -147,7 +147,6 @@ InspectorOverlayImpl::InspectorOverlayImpl(WebViewImpl* webViewImpl)
, m_inLayout(false)
, m_needsUpdate(false)
{
- m_overlayHost->setDebuggerListener(this);
}
InspectorOverlayImpl::~InspectorOverlayImpl()
@@ -168,9 +167,8 @@ DEFINE_TRACE(InspectorOverlayImpl)
void InspectorOverlayImpl::init(InspectorCSSAgent* cssAgent, InspectorDebuggerAgent* debuggerAgent)
{
m_layoutEditor = LayoutEditor::create(cssAgent);
- // TODO(dgozman): overlay should be a listener, not layout editor.
- m_overlayHost->setLayoutEditorListener(m_layoutEditor.get());
m_debuggerAgent = debuggerAgent;
+ m_overlayHost->setListener(this);
}
void InspectorOverlayImpl::invalidate()
@@ -489,6 +487,21 @@ void InspectorOverlayImpl::overlaySteppedOver()
}
}
+void InspectorOverlayImpl::overlayStartedPropertyChange(const String& property)
+{
+ m_layoutEditor->overlayStartedPropertyChange(property);
+}
+
+void InspectorOverlayImpl::overlayPropertyChanged(float value)
+{
+ m_layoutEditor->overlayPropertyChanged(value);
+}
+
+void InspectorOverlayImpl::overlayEndedPropertyChange()
+{
+ m_layoutEditor->overlayEndedPropertyChange();
+}
+
void InspectorOverlayImpl::profilingStarted()
{
if (!m_suspendCount++)
« no previous file with comments | « Source/web/InspectorOverlayImpl.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698