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

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

Issue 1565893004: Sets a transparent background for out-of-process subframes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: compile Created 4 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
« no previous file with comments | « content/renderer/render_widget.cc ('k') | third_party/WebKit/Source/web/WebFrameWidgetImpl.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/web/WebFrameWidgetImpl.h
diff --git a/third_party/WebKit/Source/web/WebFrameWidgetImpl.h b/third_party/WebKit/Source/web/WebFrameWidgetImpl.h
index 686f1a499409df5ef02d3018492bf076a94753bb..a9629b31568422645e69f5e4eaf662b0d3c16bd6 100644
--- a/third_party/WebKit/Source/web/WebFrameWidgetImpl.h
+++ b/third_party/WebKit/Source/web/WebFrameWidgetImpl.h
@@ -115,6 +115,13 @@ public:
void willCloseLayerTreeView() override;
void didChangeWindowResizerRect() override;
+ // WebFrameWidget implementation.
+ void setVisibilityState(WebPageVisibilityState, bool) override;
+ bool isTransparent() const override;
+ void setIsTransparent(bool) override;
+ void setBaseBackgroundColor(WebColor) override;
+ void scheduleAnimation() override;
+
WebWidgetClient* client() const { return m_client; }
Frame* focusedCoreFrame() const;
@@ -122,15 +129,11 @@ public:
// Returns the currently focused Element or null if no element has focus.
Element* focusedElement() const;
- void scheduleAnimation() override;
-
PaintLayerCompositor* compositor() const;
void setRootGraphicsLayer(GraphicsLayer*);
void attachCompositorAnimationTimeline(CompositorAnimationTimeline*);
void detachCompositorAnimationTimeline(CompositorAnimationTimeline*);
- void setVisibilityState(WebPageVisibilityState, bool) override;
-
// Exposed for the purpose of overriding device metrics.
void sendResizeEventAndRepaint();
@@ -153,6 +156,8 @@ public:
ScrollDirection*,
ScrollGranularity*);
+ Color baseBackgroundColor() const { return m_baseBackgroundColor; }
+
DECLARE_TRACE();
private:
@@ -182,8 +187,6 @@ private:
void updateLayerTreeBackgroundColor();
void updateLayerTreeDeviceScaleFactor();
- bool isTransparent() const;
-
// PageWidgetEventHandler functions
void handleMouseLeave(LocalFrame&, const WebMouseEvent&) override;
void handleMouseDown(LocalFrame&, const WebMouseEvent&) override;
@@ -217,8 +220,13 @@ private:
bool m_ignoreInputEvents;
+ // Whether the WebFrameWidget is rendering transparently.
+ bool m_isTransparent;
+
static const WebInputEvent* m_currentInputEvent;
+ WebColor m_baseBackgroundColor;
+
#if ENABLE(OILPAN)
SelfKeepAlive<WebFrameWidgetImpl> m_selfKeepAlive;
#endif
« no previous file with comments | « content/renderer/render_widget.cc ('k') | third_party/WebKit/Source/web/WebFrameWidgetImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698