identity_manager.mojom 882 B

1234567891011121314151617181920212223
  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. import "ui/gfx/image/mojom/image.mojom";
  6. // This API allows lacros-chrome to access properties from the identity manager
  7. // that lives in ash-chrome, such as account names for accounts that are not yet
  8. // known to lacros.
  9. [Stable, Uuid="2737cc5d-f807-4690-aec1-22091ce82565"]
  10. interface IdentityManager {
  11. // Returns the full_name of the account with gaia id `gaia`.
  12. GetAccountFullName@0(string gaia) => (string full_name);
  13. // Returns the account_image of the account with gaia id `gaia`.
  14. GetAccountImage@1(string gaia) => (gfx.mojom.ImageSkia? image);
  15. // Returns the email of the account with gaia id `gaia`.
  16. [MinVersion=1]
  17. GetAccountEmail@2(string gaia) => (string email);
  18. };