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

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

Issue 338005: Find-in-page should not ding while deleting characters. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 2 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/tab_contents.h
===================================================================
--- chrome/browser/tab_contents/tab_contents.h (revision 30046)
+++ chrome/browser/tab_contents/tab_contents.h (working copy)
@@ -530,6 +530,9 @@
// active searches.
string16 find_text() const { return find_text_; }
+ // Accessor for the previous search we issued.
+ string16 previous_find_text() const { return previous_find_text_; }
+
// Accessor for last_search_prepopulate_text_. Used to access the last search
// string entered, whatever tab that search was performed in.
string16 find_prepopulate_text() const {
@@ -1105,10 +1108,14 @@
// This variable keeps track of what the most recent request id is.
int current_find_request_id_;
- // The last string we searched for. This is used to figure out if this is a
- // Find or a FindNext operation (FindNext should not increase the request id).
+ // The current string we are/just finished searching for. This is used to
+ // figure out if this is a Find or a FindNext operation (FindNext should not
+ // increase the request id).
string16 find_text_;
+ // The string we searched for before |find_text_|.
+ string16 previous_find_text_;
+
// Whether the last search was case sensitive or not.
bool last_search_case_sensitive_;

Powered by Google App Engine
This is Rietveld 408576698