automation_query.mojom 956 B

1234567891011121314151617181920212223242526
  1. // Copyright 2022 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 extensions.mojom;
  5. // Error occurred on renderer side while processing query request.
  6. enum AutomationQueryError {
  7. // No error
  8. kNone,
  9. // No document
  10. kNoDocument,
  11. // domQuerySelector sent on node which is no longer in the tree
  12. kNodeDestroyed
  13. };
  14. // This interface sends the query selector request IPC made by automation API.
  15. interface AutomationQuery {
  16. // Sends a query selector request and expect the response.
  17. // `acc_obj_id` is the accessibility tree ID of the starting element
  18. // `selector' is domQuerySelector
  19. // `result_acc_obj_id` is the accessibility tree ID of the result element
  20. // `error` occurred on renderer side while processing query
  21. QuerySelector(int32 acc_obj_id, string selector) => (int32 result_acc_obj_id,
  22. AutomationQueryError error);
  23. };