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

Unified Diff: services/ui/test_wm/test_wm.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 | « services/ui/public/interfaces/window_tree.mojom ('k') | services/ui/ws/test_utils.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..7ca9138e27913189bbcf12e864dd0a9918820cd5 100644
--- a/services/ui/test_wm/test_wm.cc
+++ b/services/ui/test_wm/test_wm.cc
@@ -167,6 +167,13 @@ class TestWM : public service_manager::Service,
aura::Window* window,
const gfx::Insets& insets,
const std::vector<gfx::Rect>& additional_client_areas) override {}
+ bool IsWindowActive(aura::Window* window) override {
+ // Focus client interface doesn't expose this; assume true.
+ return true;
+ }
+ void OnWmDeactivateWindow(aura::Window* window) override {
+ aura::client::GetFocusClient(root_)->FocusWindow(nullptr);
+ }
std::unique_ptr<display::ScreenBase> screen_;
« no previous file with comments | « services/ui/public/interfaces/window_tree.mojom ('k') | services/ui/ws/test_utils.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698