app_window_tracker.mojom 910 B

123456789101112131415161718192021
  1. // Copyright 2021 The Chromium Authors. All rights reserved.
  2. // Use of this source code is governed by a BSD-style license that can be
  3. // found in the LICENSE file.
  4. module crosapi.mojom;
  5. // Implemented in ash-chrome, called by lacros-chrome. This interface is used by
  6. // Lacros to provide Ash the metadata necessary to link AppService app_ids with
  7. // Wayland/exo/aura Windows.
  8. [Stable, Uuid="e678d21e-8c5c-4a2f-ab43-fa1299a03c46"]
  9. interface AppWindowTracker{
  10. // Called by Lacros when an app window is created. |app_id| is the AppService
  11. // id, and |window_id| is the wayland app_id property for the window. This is
  12. // guaranteed to be unique and is confusingly known as app_id even though for
  13. // Lacros it's a unique window id.
  14. OnAppWindowAdded@0(string app_id, string window_id);
  15. // Called by Lacros when an app window is destroyed.
  16. OnAppWindowRemoved@1(string app_id, string window_id);
  17. };