| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2009 Google Inc. All rights reserved. | 2 * Copyright (C) 2009 Google Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
| 6 * met: | 6 * met: |
| 7 * | 7 * |
| 8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
| (...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 125 | 125 |
| 126 // Check if the activeMatchFrame still exists in the frame tree. | 126 // Check if the activeMatchFrame still exists in the frame tree. |
| 127 bool isActiveMatchFrameValid() const; | 127 bool isActiveMatchFrameValid() const; |
| 128 | 128 |
| 129 // Return the index in the find-in-page cache of the match closest to the | 129 // Return the index in the find-in-page cache of the match closest to the |
| 130 // provided point in find-in-page coordinates, or -1 in case of error. | 130 // provided point in find-in-page coordinates, or -1 in case of error. |
| 131 // The squared distance to the closest match is returned in the distanceSqua
red parameter. | 131 // The squared distance to the closest match is returned in the distanceSqua
red parameter. |
| 132 int nearestFindMatch(const FloatPoint&, float& distanceSquared); | 132 int nearestFindMatch(const FloatPoint&, float& distanceSquared); |
| 133 | 133 |
| 134 // TODO(yosin) Templataization of |scopeStringMatchesAlgorithm| will be | 134 // TODO(yosin) Templataization of |scopeStringMatchesAlgorithm| will be |
| 135 // gone once |RuntimeEnabledFeatures::selectionForComposedTreeEnabled| is | 135 // gone once |RuntimeEnabledFeatures::selectionForFlatTreeEnabled| is |
| 136 // removed. | 136 // removed. |
| 137 template <typename Strategy> | 137 template <typename Strategy> |
| 138 void scopeStringMatchesAlgorithm( | 138 void scopeStringMatchesAlgorithm( |
| 139 int identifier, const WebString& searchText, const WebFindOptions&, | 139 int identifier, const WebString& searchText, const WebFindOptions&, |
| 140 bool reset); | 140 bool reset); |
| 141 | 141 |
| 142 // Select a find-in-page match marker in the current frame using a cache | 142 // Select a find-in-page match marker in the current frame using a cache |
| 143 // match index returned by nearestFindMatch. Returns the ordinal of the new | 143 // match index returned by nearestFindMatch. Returns the ordinal of the new |
| 144 // selected match or -1 in case of error. Also provides the bounding box of | 144 // selected match or -1 in case of error. Also provides the bounding box of |
| 145 // the marker in window coordinates if selectionRect is not null. | 145 // the marker in window coordinates if selectionRect is not null. |
| (...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 286 // Determines if the rects in the find-in-page matches cache of this frame | 286 // Determines if the rects in the find-in-page matches cache of this frame |
| 287 // are invalid and should be recomputed. | 287 // are invalid and should be recomputed. |
| 288 bool m_findMatchRectsAreValid; | 288 bool m_findMatchRectsAreValid; |
| 289 }; | 289 }; |
| 290 | 290 |
| 291 } // namespace blink | 291 } // namespace blink |
| 292 | 292 |
| 293 WTF_ALLOW_INIT_WITH_MEM_FUNCTIONS(blink::TextFinder::FindMatch); | 293 WTF_ALLOW_INIT_WITH_MEM_FUNCTIONS(blink::TextFinder::FindMatch); |
| 294 | 294 |
| 295 #endif // TextFinder_h | 295 #endif // TextFinder_h |
| OLD | NEW |