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

Unified Diff: Source/web/InspectorOverlayImpl.h

Issue 1153503010: Devtools: Margin resizer in overlay experiment (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: 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/devtools/protocol.json ('k') | Source/web/InspectorOverlayImpl.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/web/InspectorOverlayImpl.h
diff --git a/Source/web/InspectorOverlayImpl.h b/Source/web/InspectorOverlayImpl.h
index 23f814cf20e366c712b8ac6cc2716fbb9a027724..c0382fb939b1d9266fff8d14ec70666ae3028006 100644
--- a/Source/web/InspectorOverlayImpl.h
+++ b/Source/web/InspectorOverlayImpl.h
@@ -55,7 +55,7 @@ class Node;
class Page;
class WebViewImpl;
-class InspectorOverlayImpl final : public NoBaseWillBeGarbageCollectedFinalized<InspectorOverlayImpl>, public InspectorOverlay, public WebPageOverlay, public InspectorOverlayHost::Listener {
+class InspectorOverlayImpl final : public NoBaseWillBeGarbageCollectedFinalized<InspectorOverlayImpl>, public InspectorOverlay, public WebPageOverlay, public InspectorOverlayHost::Listener, public InspectorOverlayHost::CSSListener{
WTF_MAKE_FAST_ALLOCATED_WILL_BE_REMOVED(InspectorOverlayImpl);
WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(InspectorOverlayImpl);
public:
@@ -79,6 +79,8 @@ public:
void highlightQuad(PassOwnPtr<FloatQuad>, const InspectorHighlightConfig&) override;
void showAndHideViewSize(bool showGrid) override;
void setListener(InspectorOverlay::Listener* listener) override { m_listener = listener; }
+ void setCSSListener(InspectorOverlay::CSSListener* listener) override { m_cssListener = listener; }
+
void suspendUpdates() override;
void resumeUpdates() override;
void clear() override;
@@ -92,6 +94,8 @@ private:
void overlayResumed() override;
void overlaySteppedOver() override;
+ void updateCSSProperty(long newValue) override;
+
// WebPageOverlay implementation.
void paintPageOverlay(WebGraphicsContext*, const WebSize& webViewSize) override;
@@ -126,6 +130,8 @@ private:
int m_suspendCount;
bool m_updating;
RawPtrWillBeMember<InspectorOverlay::Listener> m_listener;
+ RawPtrWillBeMember<InspectorOverlay::CSSListener> m_cssListener;
+ int m_initValue;
};
} // namespace blink
« no previous file with comments | « Source/devtools/protocol.json ('k') | Source/web/InspectorOverlayImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698