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

Unified Diff: chrome_frame/find_dialog.h

Issue 9700053: Correctly handle FindNext from the Find dialog. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Dear Greg, Created 8 years, 9 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
« no previous file with comments | « chrome_frame/chrome_frame_automation.cc ('k') | chrome_frame/find_dialog.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome_frame/find_dialog.h
diff --git a/chrome_frame/find_dialog.h b/chrome_frame/find_dialog.h
index 07e2d39ea7a19de6dd2be16d968b5438a2c8e2a0..f7ccabaf48bb7d1d818df9f7ca4ed07b88c8e054 100644
--- a/chrome_frame/find_dialog.h
+++ b/chrome_frame/find_dialog.h
@@ -1,4 +1,4 @@
-// Copyright (c) 2011 The Chromium Authors. All rights reserved.
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
@@ -9,6 +9,7 @@
#include <atlwin.h>
#include "base/memory/ref_counted.h"
+#include "base/string16.h"
#include "resource.h"
#include "grit/chrome_frame_dialogs.h"
@@ -47,6 +48,10 @@ class CFFindDialog : public CDialogImpl<CFFindDialog> {
static LRESULT CALLBACK GetMsgProc(int code, WPARAM wparam, LPARAM lparam);
static HHOOK msg_hook_;
+ // Store the text we searched for last to determine whether we are doing a
+ // "Find" or a "Find Next".
+ string16 last_find_text_;
+
// We don't own these, and they must exist at least as long as we do.
scoped_refptr<ChromeFrameAutomationClient> automation_client_;
};
« no previous file with comments | « chrome_frame/chrome_frame_automation.cc ('k') | chrome_frame/find_dialog.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698