Chromium Code Reviews| 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 543 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 554 // | 554 // |
| 555 // If a match is found, this function will select it (scrolling down to | 555 // If a match is found, this function will select it (scrolling down to |
| 556 // make it visible if needed) and fill in selectionRect with the | 556 // make it visible if needed) and fill in selectionRect with the |
| 557 // location of where the match was found (in window coordinates). | 557 // location of where the match was found (in window coordinates). |
| 558 // | 558 // |
| 559 // If no match is found, this function clears all tickmarks and | 559 // If no match is found, this function clears all tickmarks and |
| 560 // highlighting. | 560 // highlighting. |
| 561 // | 561 // |
| 562 // Returns true if the search string was found, false otherwise. | 562 // Returns true if the search string was found, false otherwise. |
| 563 virtual bool find(int identifier, | 563 virtual bool find(int identifier, |
| 564 const WebString& searchText, | 564 const WebString& searchText, |
| 565 const WebFindOptions& options, | 565 const WebFindOptions&, |
| 566 bool wrapWithinFrame, | 566 bool wrapWithinFrame, |
| 567 WebRect* selectionRect) = 0; | 567 WebRect* selectionRect, |
| 568 bool& newTextFound) = 0; | |
|
Finnur
2016/01/20 14:14:03
style: The style guide says |out| parameters shoul
dvadym
2016/01/29 09:44:17
Thanks, I've changed to pointer and renamed to act
| |
| 568 | 569 |
| 569 // Notifies the frame that we are no longer interested in searching. | 570 // Notifies the frame that we are no longer interested in searching. |
| 570 // This will abort any asynchronous scoping effort already under way | 571 // This will abort any asynchronous scoping effort already under way |
| 571 // (see the function scopeStringMatches for details) and erase all | 572 // (see the function scopeStringMatches for details) and erase all |
| 572 // tick-marks and highlighting from the previous search. If | 573 // tick-marks and highlighting from the previous search. If |
| 573 // clearSelection is true, it will also make sure the end state for the | 574 // clearSelection is true, it will also make sure the end state for the |
| 574 // find operation does not leave a selection. This can occur when the | 575 // find operation does not leave a selection. This can occur when the |
| 575 // user clears the search string but does not close the find box. | 576 // user clears the search string but does not close the find box. |
| 576 virtual void stopFinding(bool clearSelection) = 0; | 577 virtual void stopFinding(bool clearSelection) = 0; |
| 577 | 578 |
| (...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 743 WebFrame* m_firstChild; | 744 WebFrame* m_firstChild; |
| 744 WebFrame* m_lastChild; | 745 WebFrame* m_lastChild; |
| 745 | 746 |
| 746 WebFrame* m_opener; | 747 WebFrame* m_opener; |
| 747 WebPrivateOwnPtr<OpenedFrameTracker> m_openedFrameTracker; | 748 WebPrivateOwnPtr<OpenedFrameTracker> m_openedFrameTracker; |
| 748 }; | 749 }; |
| 749 | 750 |
| 750 } // namespace blink | 751 } // namespace blink |
| 751 | 752 |
| 752 #endif | 753 #endif |
| OLD | NEW |