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

Unified Diff: components/mus/ws/window_server.h

Issue 1868783003: Makes SetFocus() notify callback correctly on failure (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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 | « components/mus/ws/focus_controller.cc ('k') | components/mus/ws/window_server.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/mus/ws/window_server.h
diff --git a/components/mus/ws/window_server.h b/components/mus/ws/window_server.h
index b05efb8e1369c51d341176e5b51d50648e63d7de..cf945a0d00d5257dec3b55dc202382300804a6f9 100644
--- a/components/mus/ws/window_server.h
+++ b/components/mus/ws/window_server.h
@@ -134,7 +134,10 @@ class WindowServer : public ServerWindowDelegate,
return &window_manager_factory_registry_;
}
- void SetFocusedWindow(ServerWindow* window);
+ // Sets focus to |window|. Returns true if |window| already has focus, or
+ // focus was successfully changed. Returns |false| if |window| is not a valid
+ // window to receive focus.
+ bool SetFocusedWindow(ServerWindow* window);
ServerWindow* GetFocusedWindow();
// Returns a change id for the window manager that is associated with
« no previous file with comments | « components/mus/ws/focus_controller.cc ('k') | components/mus/ws/window_server.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698