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

Unified Diff: services/ui/public/interfaces/window_manager.mojom

Issue 2650833002: Set focusibility correctly when initializing a window in mus+ash. (Closed)
Patch Set: addressed feedback. 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/demo/mus_demo.cc ('k') | services/ui/test_wm/test_wm.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/ui/public/interfaces/window_manager.mojom
diff --git a/services/ui/public/interfaces/window_manager.mojom b/services/ui/public/interfaces/window_manager.mojom
index 14ad1c061e8c5a092debdbe04a46c6b92274ce7b..a8ad50e23134b9fade387c4fd89896fd4e046058 100644
--- a/services/ui/public/interfaces/window_manager.mojom
+++ b/services/ui/public/interfaces/window_manager.mojom
@@ -35,6 +35,9 @@ interface WindowManager {
// Properties used only during creation time. --------------------------------
+ // Whether the window should be initially focusable or not. Type: bool.
+ const string kFocusable_InitProperty = "init:focusable";
+
// Initial bounds to create the window at. If empty the WindowManager decides
// the initial bounds. Type: gfx::Rect.
const string kBounds_InitProperty = "init:bounds";
@@ -169,6 +172,8 @@ interface WindowManager {
string name,
array<uint8>? value);
+ WmSetCanFocus(uint32 window_id, bool can_focus);
+
// Asks the WindowManager to create a new window.
// |requesting_client_id| is the id of the client issuing the request. This
// allows the window manager to track top level windows by client.
« no previous file with comments | « services/ui/demo/mus_demo.cc ('k') | services/ui/test_wm/test_wm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698