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

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

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/InspectorOverlay.h ('k') | Source/core/inspector/InspectorOverlayHost.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/inspector/InspectorOverlayHost.h
diff --git a/Source/core/inspector/InspectorOverlayHost.h b/Source/core/inspector/InspectorOverlayHost.h
index 58c61b4beef28164d3fa5fc6365e2f88e3198b9e..c0a97f73a09ea81dddeb532a2a4dde8c952a7525 100644
--- a/Source/core/inspector/InspectorOverlayHost.h
+++ b/Source/core/inspector/InspectorOverlayHost.h
@@ -48,19 +48,33 @@ public:
void resume();
void stepOver();
+ void startPropertyChange(const String&);
+ void changeProperty(float delta);
+ void endPropertyChange();
- class Listener : public WillBeGarbageCollectedMixin {
+ class DebuggerListener : public WillBeGarbageCollectedMixin {
public:
- virtual ~Listener() { }
+ virtual ~DebuggerListener() { }
virtual void overlayResumed() = 0;
virtual void overlaySteppedOver() = 0;
};
- void setListener(Listener* listener) { m_listener = listener; }
+ void setDebuggerListener(DebuggerListener* listener) { m_debuggerListener = listener; }
+
+ class LayoutEditorListener : public WillBeGarbageCollectedMixin {
+ public:
+ virtual ~LayoutEditorListener() { }
+ virtual void overlayStartedPropertyChange(const String&) = 0;
+ virtual void overlayPropertyChanged(float cssDelta) = 0;
+ virtual void overlayEndedPropertyChange() = 0;
+ };
+ void setLayoutEditorListener(LayoutEditorListener* listener) { m_layoutEditorListener = listener; }
private:
InspectorOverlayHost();
- RawPtrWillBeMember<Listener> m_listener;
+ RawPtrWillBeMember<DebuggerListener> m_debuggerListener;
+ RawPtrWillBeMember<LayoutEditorListener> m_layoutEditorListener;
+
};
} // namespace blink
« no previous file with comments | « Source/core/inspector/InspectorOverlay.h ('k') | Source/core/inspector/InspectorOverlayHost.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698