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

Unified Diff: chrome/browser/ui/find_bar/find_bar_controller.h

Issue 6356004: If the user selects text in the current tab, and types CTRL-F,... (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: '' Created 9 years, 11 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/browser/renderer_host/render_view_host.cc ('k') | chrome/browser/ui/find_bar/find_bar_controller.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/find_bar/find_bar_controller.h
===================================================================
--- chrome/browser/ui/find_bar/find_bar_controller.h (revision 71618)
+++ chrome/browser/ui/find_bar/find_bar_controller.h (working copy)
@@ -8,6 +8,7 @@
#include "base/basictypes.h"
#include "base/scoped_ptr.h"
+#include "base/string16.h"
#include "chrome/common/notification_observer.h"
#include "chrome/common/notification_registrar.h"
@@ -72,6 +73,14 @@
// Mac.
void MaybeSetPrepopulateText();
+ // For Windows and Linux this function sets the find text to the text that is
+ // selected in the current tab, if there is any such text. Mac has a global
+ // value for search, so this function does nothing on Mac.
+ void MaybeOverrideText();
+
+ // Gets the text that is selected in the current tab, or an empty string.
+ string16 GetSelectedText();
+
NotificationRegistrar registrar_;
scoped_ptr<FindBar> find_bar_;
« no previous file with comments | « chrome/browser/renderer_host/render_view_host.cc ('k') | chrome/browser/ui/find_bar/find_bar_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698