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

Unified Diff: ash/mus/window_manager.cc

Issue 2568303006: aura-mus: Implement Deactivate(). (Closed)
Patch Set: Add comment. Created 3 years, 11 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 | « ash/mus/window_manager.h ('k') | mash/simple_wm/simple_wm.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/mus/window_manager.cc
diff --git a/ash/mus/window_manager.cc b/ash/mus/window_manager.cc
index 13509d8465987ee47d7acac229e0c3e1a037663f..b27154446694906453cb95f1541eb088d1fb6e43 100644
--- a/ash/mus/window_manager.cc
+++ b/ash/mus/window_manager.cc
@@ -504,5 +504,13 @@ void WindowManager::OnWmSetClientArea(
non_client_frame_controller->SetClientArea(insets, additional_client_areas);
}
+bool WindowManager::IsWindowActive(aura::Window* window) {
+ return activation_client()->GetActiveWindow() == window;
+}
+
+void WindowManager::OnWmDeactivateWindow(aura::Window* window) {
+ activation_client()->DeactivateWindow(window);
+}
+
} // namespace mus
} // namespace ash
« no previous file with comments | « ash/mus/window_manager.h ('k') | mash/simple_wm/simple_wm.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698