find_in_page_constants.h 1.3 KB

123456789101112131415161718192021222324252627282930
  1. // Copyright 2019 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. #ifndef IOS_WEB_FIND_IN_PAGE_FIND_IN_PAGE_CONSTANTS_H_
  5. #define IOS_WEB_FIND_IN_PAGE_FIND_IN_PAGE_CONSTANTS_H_
  6. namespace web {
  7. // The name of JavaScript function which finds all matches of a string.
  8. extern const char kFindInPageSearch[];
  9. // The name of JavaScript function which continues an unfinished find.
  10. extern const char kFindInPagePump[];
  11. // The name of JavaScript function which selects and scrolls to a match.
  12. extern const char kFindInPageSelectAndScrollToMatch[];
  13. // Dictionary key that holds value of updated match count in
  14. // kFindInPageSelectAndScrollToMatch response.
  15. extern const char kSelectAndScrollResultMatches[];
  16. // Dictionary key that holds value of currently selected index in
  17. // kFindInPageSelectAndScrollToMatch resoonse.
  18. extern const char kSelectAndScrollResultIndex[];
  19. // Dictionary key in kFindInPageSelectAndScrollToMatch response that
  20. // holds the value of the context for the currently selected match.
  21. extern const char kSelectAndScrollResultContextString[];
  22. // The name of JavaScript function which stops Find in Page.
  23. extern const char kFindInPageStop[];
  24. } // namespace web
  25. #endif // IOS_WEB_FIND_IN_PAGE_FIND_IN_PAGE_CONSTANTS_H_