Chromium Code Reviews| Index: components/mus/public/interfaces/user_window_controller.mojom |
| diff --git a/components/mus/public/interfaces/user_window_controller.mojom b/components/mus/public/interfaces/user_window_controller.mojom |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..b456749cb3369439a45e74a83796620ffeee9f76 |
| --- /dev/null |
| +++ b/components/mus/public/interfaces/user_window_controller.mojom |
| @@ -0,0 +1,19 @@ |
| +// Copyright 2015 The Chromium Authors. All rights reserved. |
|
sky
2016/01/13 21:17:17
2016.
Also, I don't think this interface should be
msw
2016/01/13 22:54:56
Done.
|
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +module mus.mojom; |
| + |
| +// An observer of user windows within mojom::CONTAINER_USER_WINDOWS. |
| +// TODO(msw): Observe focus changes, title/icon changes, etc. |
| +interface UserWindowObserver { |
| + OnUserWindowAdded(uint32 window_id); |
|
sky
2016/01/13 21:17:17
I recommend an initial function that is always cal
msw
2016/01/13 22:54:56
Done; this gets the quick launcher window now too!
|
| + OnUserWindowRemoved(uint32 window_id); |
| +}; |
| + |
| +// An interface allowing system UIs to manage the set of user windows. |
| +// TODO(msw): Add minimization, restoration, opening a chooser view, etc. |
| +interface UserWindowController { |
| + AddUserWindowObserver(UserWindowObserver observer); |
| + FocusUserWindow(uint32 window_id); |
| +}; |