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

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

Issue 2643723008: [devtools] Add a command to emulate the default background color. (Closed)
Patch Set: Force lifecycle update to CompositingCleanPlusScrolling. Created 3 years, 10 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/WebViewImpl.h
diff --git a/third_party/WebKit/Source/web/WebViewImpl.h b/third_party/WebKit/Source/web/WebViewImpl.h
index f648bad5821d61114ab5a16616c68c213bc50c01..6aef00152f75dce463178ad873b311aff44acad1 100644
--- a/third_party/WebKit/Source/web/WebViewImpl.h
+++ b/third_party/WebKit/Source/web/WebViewImpl.h
@@ -286,14 +286,14 @@ class WEB_EXPORT WebViewImpl final
void invalidateRect(const IntRect&);
void setBaseBackgroundColor(WebColor);
+ void setBaseBackgroundColorOverride(WebColor);
void setBackgroundColorOverride(WebColor);
void setZoomFactorOverride(float);
void setCompositorDeviceScaleFactorOverride(float);
void setDeviceEmulationTransform(const TransformationMatrix&);
TransformationMatrix getDeviceEmulationTransformForTesting() const;
- Color baseBackgroundColor() const { return m_baseBackgroundColor; }
-
+ Color baseBackgroundColor() const;
WebColor backgroundColorOverride() const { return m_backgroundColorOverride; }
Frame* focusedCoreFrame() const;
@@ -532,6 +532,8 @@ class WEB_EXPORT WebViewImpl final
bool getCompositionCharacterBounds(WebVector<WebRect>&) override;
void applyReplacementRange(const WebRange&) override;
+ void updateBaseBackgroundColor();
+
friend class WebView; // So WebView::Create can call our constructor
friend class WebViewFrameWidget;
friend class WTF::RefCounted<WebViewImpl>;
@@ -706,6 +708,7 @@ class WEB_EXPORT WebViewImpl final
std::unique_ptr<FullscreenController> m_fullscreenController;
WebColor m_baseBackgroundColor;
+ WebColor m_baseBackgroundColorOverride;
WebColor m_backgroundColorOverride;
float m_zoomFactorOverride;
« no previous file with comments | « third_party/WebKit/Source/web/InspectorEmulationAgent.cpp ('k') | third_party/WebKit/Source/web/WebViewImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698