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

Unified Diff: ui/aura/mus/window_tree_client.cc

Issue 2693823004: aura-mus: Implement DesktopWindowTreeHostMus::SetOpacity(). (Closed)
Patch Set: Removed the comments in WindowPortMus::SetOpacityFromServer Created 3 years, 10 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/aura/mus/window_tree_client.h ('k') | ui/aura/mus/window_tree_host_mus.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/aura/mus/window_tree_client.cc
diff --git a/ui/aura/mus/window_tree_client.cc b/ui/aura/mus/window_tree_client.cc
index ec6baf2c07d166cdac5c86ca8da39c8cadd9ecaf..3f69a8f49f89f93adec2bc890b2c226047c729c9 100644
--- a/ui/aura/mus/window_tree_client.cc
+++ b/ui/aura/mus/window_tree_client.cc
@@ -1683,6 +1683,15 @@ void WindowTreeClient::OnWindowTreeHostHitTestMaskWillChange(
out_rect);
}
+void WindowTreeClient::OnWindowTreeHostSetOpacity(
+ WindowTreeHostMus* window_tree_host,
+ float opacity) {
+ WindowMus* window = WindowMus::Get(window_tree_host->window());
+ const uint32_t change_id = ScheduleInFlightChange(
+ base::MakeUnique<CrashInFlightChange>(window, ChangeType::OPACITY));
+ tree_->SetWindowOpacity(change_id, window->server_id(), opacity);
+}
+
void WindowTreeClient::OnWindowTreeHostDeactivateWindow(
WindowTreeHostMus* window_tree_host) {
tree_->DeactivateWindow(
« no previous file with comments | « ui/aura/mus/window_tree_client.h ('k') | ui/aura/mus/window_tree_host_mus.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698