diff options
author | sky@chromium.org <sky@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-04-06 22:48:29 +0000 |
---|---|---|
committer | sky@chromium.org <sky@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-04-06 22:48:29 +0000 |
commit | 56c256e6f87db14400534062a6d6cc4eab912b03 (patch) | |
tree | 59226a2a5bfad86482cb30128df6c6f665e585ee /chrome/renderer/searchbox.h | |
parent | 779da4877d73de1fac77fb741d61601862fd2e78 (diff) | |
download | chromium_src-56c256e6f87db14400534062a6d6cc4eab912b03.zip chromium_src-56c256e6f87db14400534062a6d6cc4eab912b03.tar.gz chromium_src-56c256e6f87db14400534062a6d6cc4eab912b03.tar.bz2 |
Resets window.chrome.searchbox on every navigation. Otherwise the
state persists to future loads.
BUG=77983
TEST=covered by tests
R=tonyg@chromium.org
Review URL: http://codereview.chromium.org/6780017
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@80713 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/renderer/searchbox.h')
-rw-r--r-- | chrome/renderer/searchbox.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/chrome/renderer/searchbox.h b/chrome/renderer/searchbox.h index 959abcc..d6324b4 100644 --- a/chrome/renderer/searchbox.h +++ b/chrome/renderer/searchbox.h @@ -1,4 +1,4 @@ -// Copyright (c) 2010 The Chromium Authors. All rights reserved. +// Copyright (c) 2011 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. @@ -44,6 +44,9 @@ class SearchBox : public RenderViewObserver { int selection_start, int selection_end); + // Sets the searchbox values to their initial value. + void Reset(); + string16 value_; bool verbatim_; uint32 selection_start_; |