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

Unified Diff: third_party/WebKit/Source/web/InspectorEmulationAgent.h

Issue 2096633002: Adds scroll position/scale emulation to DevTools. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Sync, patch in 2169483002 (+ regression test), add DevTools tests. Created 4 years, 5 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
Index: third_party/WebKit/Source/web/InspectorEmulationAgent.h
diff --git a/third_party/WebKit/Source/web/InspectorEmulationAgent.h b/third_party/WebKit/Source/web/InspectorEmulationAgent.h
index 40baa977d1aab11b11e0add7fc2920727b0609e5..38f01392b9e5cba2742bc2ed2e15afa756139bad 100644
--- a/third_party/WebKit/Source/web/InspectorEmulationAgent.h
+++ b/third_party/WebKit/Source/web/InspectorEmulationAgent.h
@@ -27,6 +27,8 @@ public:
~InspectorEmulationAgent() override;
// protocol::Dispatcher::EmulationCommandHandler implementation.
+ void setScrollAndScaleOverride(ErrorString*, const Maybe<int>& scrollPositionX, const Maybe<int>& scrollPositionY, const Maybe<double>& visualViewportPositionX, const Maybe<double>& visualViewportPositionY, const Maybe<double>& visualViewportScale) override;
+ void clearScrollAndScaleOverride(ErrorString*) override;
void resetPageScaleFactor(ErrorString*) override;
void setPageScaleFactor(ErrorString*, double in_pageScaleFactor) override;
void setScriptExecutionDisabled(ErrorString*, bool in_value) override;
@@ -45,6 +47,8 @@ private:
InspectorEmulationAgent(WebLocalFrameImpl*, Client*);
WebViewImpl* webViewImpl();
+ void setScrollAndScaleOverride(int framePositionX, int framePositionY, double visualViewportPositionX, double visualViewportPositionY, double pageScale);
+
Member<WebLocalFrameImpl> m_webLocalFrameImpl;
Client* m_client;
};

Powered by Google App Engine
This is Rietveld 408576698