| 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 180 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 191 // Determines whether to invalidate the content area and scrollbar. | 191 // Determines whether to invalidate the content area and scrollbar. |
| 192 void invalidateIfNecessary(); | 192 void invalidateIfNecessary(); |
| 193 | 193 |
| 194 // Sets the markers within a current match range as active or inactive. | 194 // Sets the markers within a current match range as active or inactive. |
| 195 void setMatchMarkerActive(bool); | 195 void setMatchMarkerActive(bool); |
| 196 | 196 |
| 197 void decrementFramesScopingCount(int identifier); | 197 void decrementFramesScopingCount(int identifier); |
| 198 | 198 |
| 199 WebLocalFrameImpl& ownerFrame() const | 199 WebLocalFrameImpl& ownerFrame() const |
| 200 { | 200 { |
| 201 ASSERT(m_ownerFrame); | 201 DCHECK(m_ownerFrame); |
| 202 return *m_ownerFrame; | 202 return *m_ownerFrame; |
| 203 } | 203 } |
| 204 | 204 |
| 205 // Returns the ordinal of the first match in the owner frame. | 205 // Returns the ordinal of the first match in the owner frame. |
| 206 int ordinalOfFirstMatch() const; | 206 int ordinalOfFirstMatch() const; |
| 207 | 207 |
| 208 Member<WebLocalFrameImpl> m_ownerFrame; | 208 Member<WebLocalFrameImpl> m_ownerFrame; |
| 209 | 209 |
| 210 // A way for the main frame to keep track of which frame has an active | 210 // A way for the main frame to keep track of which frame has an active |
| 211 // match. Should be 0 for all other frames. | 211 // match. Should be 0 for all other frames. |
| (...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 282 // Determines if the rects in the find-in-page matches cache of this frame | 282 // Determines if the rects in the find-in-page matches cache of this frame |
| 283 // are invalid and should be recomputed. | 283 // are invalid and should be recomputed. |
| 284 bool m_findMatchRectsAreValid; | 284 bool m_findMatchRectsAreValid; |
| 285 }; | 285 }; |
| 286 | 286 |
| 287 } // namespace blink | 287 } // namespace blink |
| 288 | 288 |
| 289 WTF_ALLOW_INIT_WITH_MEM_FUNCTIONS(blink::TextFinder::FindMatch); | 289 WTF_ALLOW_INIT_WITH_MEM_FUNCTIONS(blink::TextFinder::FindMatch); |
| 290 | 290 |
| 291 #endif // TextFinder_h | 291 #endif // TextFinder_h |
| OLD | NEW |