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

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

Issue 2715243004: [blink] Support (semi-)transparent background colors in WebView/Frame. (Closed)
Patch Set: remove set/isTransparent from WebViewImpl and FrameView, use setBaseBackgroundColor instead 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..7bf8df37d6a1e7168be627de22c5792e9472dbdc 100644
--- a/third_party/WebKit/Source/web/FullscreenController.h
+++ b/third_party/WebKit/Source/web/FullscreenController.h
@@ -31,9 +31,10 @@
#ifndef FullscreenController_h
#define FullscreenController_h
+#include <memory>
#include "platform/geometry/FloatPoint.h"
lfg 2017/03/23 16:05:21 nit: one line spacing after <memory>, according to
Eric Seckler 2017/03/23 16:34:48 Done.
#include "platform/geometry/IntSize.h"
-#include <memory>
+#include "platform/graphics/Color.h"
namespace blink {
@@ -71,6 +72,7 @@ class FullscreenController {
private:
void updatePageScaleConstraints(bool removeConstraints);
+ void restoreBackgroundColorOverride();
WebViewImpl* m_webViewImpl;
@@ -94,6 +96,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