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

Unified Diff: chrome/browser/tab_contents/web_contents.h

Issue 67066: Prepopulate the Find box with whatever was searched for last (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 11 years, 8 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/tab_contents/web_contents.h
===================================================================
--- chrome/browser/tab_contents/web_contents.h (revision 13523)
+++ chrome/browser/tab_contents/web_contents.h (working copy)
@@ -225,6 +225,10 @@
// active searches.
string16 find_text() const { return find_text_; }
+ // Accessor for find_prepopulate_text_. Used to access the last search
+ // string entered, whatever tab that search was performed in.
+ string16 find_prepopulate_text() const { return *find_prepopulate_text_; }
+
// Accessor for find_result_.
const FindNotificationDetails& find_result() const { return find_result_; }
@@ -697,6 +701,9 @@
// Find or a FindNext operation (FindNext should not increase the request id).
string16 find_text_;
+ // Keeps track of the last search string that was used to search in any tab.
+ string16* find_prepopulate_text_;
+
// The last find result. This object contains details about the number of
// matches, the find selection rectangle, etc. The UI can access this
// information to build its presentation.

Powered by Google App Engine
This is Rietveld 408576698