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

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

Issue 2643723008: [devtools] Add a command to emulate the default background color. (Closed)
Patch Set: back to setBaseBackgroundColor. also adds state restore/reset. Created 3 years, 11 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 ae6ea0a1616bbab9dcdb7a20974391b9f589ad5c..6787cc38fd62e8d8caa6a0d91216008a1302e8df 100644
--- a/third_party/WebKit/Source/web/InspectorEmulationAgent.h
+++ b/third_party/WebKit/Source/web/InspectorEmulationAgent.h
@@ -14,6 +14,12 @@ namespace blink {
class WebLocalFrameImpl;
class WebViewImpl;
+namespace protocol {
+namespace DOM {
+class RGBA;
+} // namespace DOM
+} // namespace protocol
+
class InspectorEmulationAgent final
: public InspectorBaseAgent<protocol::Emulation::Metainfo> {
WTF_MAKE_NONCOPYABLE(InspectorEmulationAgent);
@@ -41,6 +47,8 @@ class InspectorEmulationAgent final
Response setCPUThrottlingRate(double) override;
Response setVirtualTimePolicy(const String& policy,
Maybe<int> virtualTimeBudgetMs) override;
+ Response setDefaultBackgroundColorOverride(
+ Maybe<protocol::DOM::RGBA>) override;
// InspectorBaseAgent overrides.
Response disable() override;
@@ -52,6 +60,8 @@ class InspectorEmulationAgent final
InspectorEmulationAgent(WebLocalFrameImpl*, Client*);
WebViewImpl* webViewImpl();
void virtualTimeBudgetExpired();
+ std::unique_ptr<protocol::DOM::RGBA> getBaseBackgroundColor();
+ void setBaseBackgroundColor(protocol::DOM::RGBA*);
Member<WebLocalFrameImpl> m_webLocalFrameImpl;
Client* m_client;

Powered by Google App Engine
This is Rietveld 408576698