Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(85)

Side by Side Diff: third_party/WebKit/public/web/WebFrame.h

Issue 1605863002: Restart search in page when new text is found. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: small clean up Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 539 matching lines...) Expand 10 before | Expand all | Expand 10 after
550 // 550 //
551 // If a match is found, this function will select it (scrolling down to 551 // If a match is found, this function will select it (scrolling down to
552 // make it visible if needed) and fill in selectionRect with the 552 // make it visible if needed) and fill in selectionRect with the
553 // location of where the match was found (in window coordinates). 553 // location of where the match was found (in window coordinates).
554 // 554 //
555 // If no match is found, this function clears all tickmarks and 555 // If no match is found, this function clears all tickmarks and
556 // highlighting. 556 // highlighting.
557 // 557 //
558 // Returns true if the search string was found, false otherwise. 558 // Returns true if the search string was found, false otherwise.
559 virtual bool find(int identifier, 559 virtual bool find(int identifier,
560 const WebString& searchText, 560 const WebString& searchText,
561 const WebFindOptions& options, 561 const WebFindOptions&,
Finnur 2016/01/29 17:47:50 Nit: Why delete this?
dvadym 2016/02/01 12:41:10 Style checker in git cl upload says that a name sh
562 bool wrapWithinFrame, 562 bool wrapWithinFrame,
563 WebRect* selectionRect) = 0; 563 WebRect* selectionRect,
564 bool* activeNow) = 0;
564 565
565 // Notifies the frame that we are no longer interested in searching. 566 // Notifies the frame that we are no longer interested in searching.
566 // This will abort any asynchronous scoping effort already under way 567 // This will abort any asynchronous scoping effort already under way
567 // (see the function scopeStringMatches for details) and erase all 568 // (see the function scopeStringMatches for details) and erase all
568 // tick-marks and highlighting from the previous search. If 569 // tick-marks and highlighting from the previous search. If
569 // clearSelection is true, it will also make sure the end state for the 570 // clearSelection is true, it will also make sure the end state for the
570 // find operation does not leave a selection. This can occur when the 571 // find operation does not leave a selection. This can occur when the
571 // user clears the search string but does not close the find box. 572 // user clears the search string but does not close the find box.
572 virtual void stopFinding(bool clearSelection) = 0; 573 virtual void stopFinding(bool clearSelection) = 0;
573 574
(...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after
739 WebFrame* m_firstChild; 740 WebFrame* m_firstChild;
740 WebFrame* m_lastChild; 741 WebFrame* m_lastChild;
741 742
742 WebFrame* m_opener; 743 WebFrame* m_opener;
743 WebPrivateOwnPtr<OpenedFrameTracker> m_openedFrameTracker; 744 WebPrivateOwnPtr<OpenedFrameTracker> m_openedFrameTracker;
744 }; 745 };
745 746
746 } // namespace blink 747 } // namespace blink
747 748
748 #endif 749 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698