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

Unified Diff: ui/views/widget/desktop_aura/desktop_native_widget_aura.cc

Issue 375183002: Add app.window.alphaEnabled() and onAlphaEnabledChanged. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Pipe CanHaveAlphaEnabled through Widget. Created 6 years, 5 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: ui/views/widget/desktop_aura/desktop_native_widget_aura.cc
diff --git a/ui/views/widget/desktop_aura/desktop_native_widget_aura.cc b/ui/views/widget/desktop_aura/desktop_native_widget_aura.cc
index 60458c7cdfb41008404bf285b4ddd1c716146b3f..4ef81df8bcfe8b53702c8059bceffc254a4d5c36 100644
--- a/ui/views/widget/desktop_aura/desktop_native_widget_aura.cc
+++ b/ui/views/widget/desktop_aura/desktop_native_widget_aura.cc
@@ -932,6 +932,10 @@ void DesktopNativeWidgetAura::OnRootViewLayout() const {
desktop_window_tree_host_->OnRootViewLayout();
}
+bool DesktopNativeWidgetAura::CanHaveAlphaEnabled() const {
+ return content_window_ && desktop_window_tree_host_->CanHaveAlphaEnabled();
+}
+
void DesktopNativeWidgetAura::RepostNativeEvent(gfx::NativeEvent native_event) {
OnEvent(native_event);
}

Powered by Google App Engine
This is Rietveld 408576698