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

Unified Diff: services/ui/test_wm/test_wm.cc

Issue 2568303006: aura-mus: Implement Deactivate(). (Closed)
Patch Set: Prune comments and other debugging gunk. 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
Index: services/ui/test_wm/test_wm.cc
diff --git a/services/ui/test_wm/test_wm.cc b/services/ui/test_wm/test_wm.cc
index 6a1f5d6f9a3315dfa3cd6391f37870e146e8ac17..999e42405b9069a1ced3b500759d38fd8060b921 100644
--- a/services/ui/test_wm/test_wm.cc
+++ b/services/ui/test_wm/test_wm.cc
@@ -167,6 +167,9 @@ class TestWM : public service_manager::Service,
aura::Window* window,
const gfx::Insets& insets,
const std::vector<gfx::Rect>& additional_client_areas) override {}
+ void OnWmDeactivateWindow(aura::Window* window) override {
+ aura::client::GetFocusClient(root_)->FocusWindow(nullptr);
+ }
std::unique_ptr<display::ScreenBase> screen_;

Powered by Google App Engine
This is Rietveld 408576698