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

Unified Diff: Source/core/inspector/InspectorOverlayHost.cpp

Issue 1206833003: Devtools[LayoutEditor]: Pass data about property change from InspectorOverlayPage (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Address pfeldman's comment Created 5 years, 6 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/core/inspector/InspectorOverlayHost.h ('k') | Source/core/inspector/InspectorOverlayHost.idl » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/inspector/InspectorOverlayHost.cpp
diff --git a/Source/core/inspector/InspectorOverlayHost.cpp b/Source/core/inspector/InspectorOverlayHost.cpp
index a32923c1ff51ca61f9689d3530cb9ff08455d103..29ad4025220f5f033fa036b89afdaa97c54476ed 100644
--- a/Source/core/inspector/InspectorOverlayHost.cpp
+++ b/Source/core/inspector/InspectorOverlayHost.cpp
@@ -33,7 +33,8 @@
namespace blink {
InspectorOverlayHost::InspectorOverlayHost()
- : m_listener(nullptr)
+ : m_debuggerListener(nullptr)
+ , m_layoutEditorListener(nullptr)
{
}
@@ -43,19 +44,38 @@ InspectorOverlayHost::~InspectorOverlayHost()
void InspectorOverlayHost::resume()
{
- if (m_listener)
- m_listener->overlayResumed();
+ if (m_debuggerListener)
+ m_debuggerListener->overlayResumed();
}
void InspectorOverlayHost::stepOver()
{
- if (m_listener)
- m_listener->overlaySteppedOver();
+ if (m_debuggerListener)
+ m_debuggerListener->overlaySteppedOver();
+}
+
+void InspectorOverlayHost::startPropertyChange(const String& anchorName)
+{
+ if (m_layoutEditorListener)
+ m_layoutEditorListener->overlayStartedPropertyChange(anchorName);
+}
+
+void InspectorOverlayHost::changeProperty(float delta)
+{
+ if (m_layoutEditorListener)
+ m_layoutEditorListener->overlayPropertyChanged(delta);
+}
+
+void InspectorOverlayHost::endPropertyChange()
+{
+ if (m_layoutEditorListener)
+ m_layoutEditorListener->overlayEndedPropertyChange();
}
DEFINE_TRACE(InspectorOverlayHost)
{
- visitor->trace(m_listener);
+ visitor->trace(m_debuggerListener);
+ visitor->trace(m_layoutEditorListener);
}
} // namespace blink
« no previous file with comments | « Source/core/inspector/InspectorOverlayHost.h ('k') | Source/core/inspector/InspectorOverlayHost.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698