summaryrefslogtreecommitdiffstats
path: root/chrome/renderer
diff options
context:
space:
mode:
authortonyg@chromium.org <tonyg@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-11-08 21:58:46 +0000
committertonyg@chromium.org <tonyg@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-11-08 21:58:46 +0000
commit368ef4c1222e7928726b4d1865969dbe0053ac0f (patch)
treec889713f5d7c741315646bc87f1a6ac44c36088b /chrome/renderer
parentbafa0d5fd999993c5d106538c1dd9ea19d410de7 (diff)
downloadchromium_src-368ef4c1222e7928726b4d1865969dbe0053ac0f.zip
chromium_src-368ef4c1222e7928726b4d1865969dbe0053ac0f.tar.gz
chromium_src-368ef4c1222e7928726b4d1865969dbe0053ac0f.tar.bz2
Allow verbatim to be passed in OnSearchBoxChange.
BUG=None TEST=None git-svn-id: svn://svn.chromium.org/chrome/trunk/src@65433 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/renderer')
-rw-r--r--chrome/renderer/render_view.cc2
-rw-r--r--chrome/renderer/render_view.h1
2 files changed, 3 insertions, 0 deletions
diff --git a/chrome/renderer/render_view.cc b/chrome/renderer/render_view.cc
index 912042b..2378d9e 100644
--- a/chrome/renderer/render_view.cc
+++ b/chrome/renderer/render_view.cc
@@ -4572,9 +4572,11 @@ void RenderView::OnEnablePreferredSizeChangedMode(int flags) {
}
void RenderView::OnSearchBoxChange(const string16& value,
+ bool verbatim,
int selection_start,
int selection_end) {
search_box_.value = value;
+ search_box_.verbatim = verbatim;
search_box_.selection_start = selection_start;
search_box_.selection_end = selection_end;
if (!webview() || !webview()->mainFrame())
diff --git a/chrome/renderer/render_view.h b/chrome/renderer/render_view.h
index a6593f9..f4bbc17 100644
--- a/chrome/renderer/render_view.h
+++ b/chrome/renderer/render_view.h
@@ -833,6 +833,7 @@ class RenderView : public RenderWidget,
WebKit::WebDragOperationsMask operations_allowed);
void OnEnablePreferredSizeChangedMode(int flags);
void OnSearchBoxChange(const string16& value,
+ bool verbatim,
int selection_start,
int selection_end);
void OnSearchBoxSubmit(const string16& value, bool verbatim);