find_types.h 949 B

123456789101112131415161718192021222324252627
  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 COMPONENTS_FIND_IN_PAGE_FIND_TYPES_H_
  5. #define COMPONENTS_FIND_IN_PAGE_FIND_TYPES_H_
  6. namespace find_in_page {
  7. // An enum listing the possible actions to take on a find-in-page selection
  8. // in the page when ending the find session.
  9. enum class SelectionAction {
  10. kKeep, // Translate the find selection into a normal selection.
  11. kClear, // Clear the find selection.
  12. kActivate // Focus and click the selected node (for links).
  13. };
  14. // An enum listing the possible actions to take on a find-in-page results in
  15. // the Find box when ending the find session.
  16. enum class ResultAction {
  17. kClear, // Clear search string, ordinal and match count.
  18. kKeep, // Leave the results untouched.
  19. };
  20. } // namespace find_in_page
  21. #endif // COMPONENTS_FIND_IN_PAGE_FIND_TYPES_H_