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

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

Issue 2715243004: [blink] Support (semi-)transparent background colors in WebView/Frame. (Closed)
Patch Set: add unit test for remote frame transparency Created 3 years, 9 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/FullscreenController.h
diff --git a/third_party/WebKit/Source/web/FullscreenController.h b/third_party/WebKit/Source/web/FullscreenController.h
index a4bd8d9658075300ab1fa6524cc35c06df25b385..1a66c28718b3b95d996deda9680400e7e3052394 100644
--- a/third_party/WebKit/Source/web/FullscreenController.h
+++ b/third_party/WebKit/Source/web/FullscreenController.h
@@ -31,9 +31,11 @@
#ifndef FullscreenController_h
#define FullscreenController_h
+#include <memory>
+
#include "platform/geometry/FloatPoint.h"
#include "platform/geometry/IntSize.h"
-#include <memory>
+#include "platform/graphics/Color.h"
namespace blink {
@@ -71,6 +73,7 @@ class FullscreenController {
private:
void updatePageScaleConstraints(bool removeConstraints);
+ void restoreBackgroundColorOverride();
WebViewImpl* m_webViewImpl;
@@ -94,6 +97,8 @@ class FullscreenController {
float m_initialPageScaleFactor = 0.0f;
IntSize m_initialScrollOffset;
FloatPoint m_initialVisualViewportOffset;
+ bool m_initialBackgroundColorOverrideEnabled = false;
+ RGBA32 m_initialBackgroundColorOverride = Color::transparent;
};
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698