Commit 9d69b52d authored by Santosh Mahto's avatar Santosh Mahto
Browse files

Fix transparency of main window.

By default, chromium doesn't assume that window can be transparent.
So changed the code to let chromium allow transparency.
parent 75345cdb
......@@ -251,6 +251,7 @@ void CefWindowView::CreateWidget() {
params.delegate = this;
params.type = views::Widget::InitParams::TYPE_WINDOW;
params.bounds = gfx::Rect(CalculatePreferredSize());
params.opacity = views::Widget::InitParams::TRANSLUCENT_WINDOW;
bool can_activate = true;
if (cef_delegate()) {
......
......@@ -436,5 +436,9 @@ patches = [
{
# Collabora: Allow setting surface id.
'name': 'setIVISurfaceID',
},
{
# Collabora: Allow main window to be transparent.
'name': 'allow_main_window_transparency',
}
]
diff --git ui/views/widget/desktop_aura/desktop_window_tree_host_platform.cc ui/views/widget/desktop_aura/desktop_window_tree_host_platform.cc
index d07f4fda0009..ec39b6358971 100644
--- ui/views/widget/desktop_aura/desktop_window_tree_host_platform.cc
+++ ui/views/widget/desktop_aura/desktop_window_tree_host_platform.cc
@@ -395,7 +395,11 @@ bool DesktopWindowTreeHostPlatform::ShouldUseNativeFrame() const {
}
bool DesktopWindowTreeHostPlatform::ShouldWindowContentsBeTransparent() const {
+#if 0
return false;
+#else
+ return true;
+#endif
}
void DesktopWindowTreeHostPlatform::FrameTypeChanged() {}
@@ -449,7 +453,11 @@ bool DesktopWindowTreeHostPlatform::IsTranslucentWindowOpacitySupported()
const {
// TODO: needs PlatformWindow support.
NOTIMPLEMENTED_LOG_ONCE();
+#if 0
return false;
+#else
+ return true;
+#endif
}
void DesktopWindowTreeHostPlatform::SizeConstraintsChanged() {
@@ -458,7 +466,11 @@ void DesktopWindowTreeHostPlatform::SizeConstraintsChanged() {
}
bool DesktopWindowTreeHostPlatform::ShouldUpdateWindowTransparency() const {
+#if 0
return false;
+#else
+ return true;
+#endif
}
bool DesktopWindowTreeHostPlatform::ShouldUseDesktopNativeCursorManager()
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment