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

Unified Diff: ui/views/test/widget_test_mac.mm

Issue 1998653002: Make DesktopWindowTreeHostX11::ShouldWindowContentsBeTransparent() relies on argb visual flag (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove TODO/CHECK since Win10 bots can run tests with AeroGlass enabled Created 4 years, 6 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 | « ui/views/test/widget_test_aura.cc ('k') | ui/views/widget/desktop_aura/desktop_window_tree_host_x11.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/test/widget_test_mac.mm
diff --git a/ui/views/test/widget_test_mac.mm b/ui/views/test/widget_test_mac.mm
index ea9ed8eb7c104815fa805264363ba345de599432..91f824c2337534181cd218cd87c4abc36158cba2 100644
--- a/ui/views/test/widget_test_mac.mm
+++ b/ui/views/test/widget_test_mac.mm
@@ -89,5 +89,10 @@ ui::internal::InputMethodDelegate* WidgetTest::GetInputMethodDelegateForWidget(
return NativeWidgetMac::GetBridgeForNativeWindow(widget->GetNativeWindow());
}
+// static
+bool WidgetTest::IsNativeWindowTransparent(gfx::NativeWindow window) {
+ return ![window isOpaque];
+}
+
} // namespace test
} // namespace views
« no previous file with comments | « ui/views/test/widget_test_aura.cc ('k') | ui/views/widget/desktop_aura/desktop_window_tree_host_x11.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698