| 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 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 110 private: | 110 private: |
| 111 class DeferredScopeStringMatches; | 111 class DeferredScopeStringMatches; |
| 112 friend class DeferredScopeStringMatches; | 112 friend class DeferredScopeStringMatches; |
| 113 | 113 |
| 114 explicit TextFinder(WebLocalFrameImpl& ownerFrame); | 114 explicit TextFinder(WebLocalFrameImpl& ownerFrame); |
| 115 | 115 |
| 116 // Notifies the delegate about a new selection rect. | 116 // Notifies the delegate about a new selection rect. |
| 117 void reportFindInPageSelection( | 117 void reportFindInPageSelection( |
| 118 const WebRect& selectionRect, int activeMatchOrdinal, int identifier); | 118 const WebRect& selectionRect, int activeMatchOrdinal, int identifier); |
| 119 | 119 |
| 120 void reportFindInPageResultToAccessibility(int identifier); |
| 121 |
| 120 // Clear the find-in-page matches cache forcing rects to be fully | 122 // Clear the find-in-page matches cache forcing rects to be fully |
| 121 // calculated again next time updateFindMatchRects is called. | 123 // calculated again next time updateFindMatchRects is called. |
| 122 void clearFindMatchesCache(); | 124 void clearFindMatchesCache(); |
| 123 | 125 |
| 124 // Check if the activeMatchFrame still exists in the frame tree. | 126 // Check if the activeMatchFrame still exists in the frame tree. |
| 125 bool isActiveMatchFrameValid() const; | 127 bool isActiveMatchFrameValid() const; |
| 126 | 128 |
| 127 // 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 |
| 128 // 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. |
| 129 // 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. |
| (...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 273 // Determines if the rects in the find-in-page matches cache of this frame | 275 // Determines if the rects in the find-in-page matches cache of this frame |
| 274 // are invalid and should be recomputed. | 276 // are invalid and should be recomputed. |
| 275 bool m_findMatchRectsAreValid; | 277 bool m_findMatchRectsAreValid; |
| 276 }; | 278 }; |
| 277 | 279 |
| 278 } // namespace blink | 280 } // namespace blink |
| 279 | 281 |
| 280 WTF_ALLOW_INIT_WITH_MEM_FUNCTIONS(blink::TextFinder::FindMatch); | 282 WTF_ALLOW_INIT_WITH_MEM_FUNCTIONS(blink::TextFinder::FindMatch); |
| 281 | 283 |
| 282 #endif // TextFinder_h | 284 #endif // TextFinder_h |
| OLD | NEW |