feedback.mojom 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. // Copyright 2020 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 "url/mojom/url.mojom";
  6. [Stable, Extensible]
  7. enum LacrosFeedbackSource {
  8. kLacrosBrowserCommand = 0,
  9. kLacrosSettingsAboutPage = 1,
  10. };
  11. [Stable]
  12. struct FeedbackInfo {
  13. // Url of the web page of lacros chrome from which the user reports an issue.
  14. url.mojom.Url page_url@0;
  15. // Source from which the user reports an issue.
  16. LacrosFeedbackSource source@1;
  17. // Template text for feedback description.
  18. string description_template@2;
  19. // Placehold text of feedback description.
  20. string description_placeholder_text@3;
  21. // Category tag of feedback report.
  22. string category_tag@4;
  23. // Extra diagnostics information.
  24. // For example, "Failed to connect to wifi network.".
  25. string extra_diagnostics@5;
  26. };
  27. // This interface is implemented by ash-chrome. It allows lacros-chrome to
  28. // request ash-chrome to display Feedback ui.
  29. [Stable, Uuid="f95688a1-3076-484f-852f-65772f2a2f68"]
  30. interface Feedback {
  31. // Displays the Feedback ui.
  32. ShowFeedbackPage@0(FeedbackInfo feedback_info);
  33. };