diff options
author | sky@chromium.org <sky@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-03-15 14:51:55 +0000 |
---|---|---|
committer | sky@chromium.org <sky@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-03-15 14:51:55 +0000 |
commit | 33b8b8e68843131c6f81c47a0d0c0c616a01b355 (patch) | |
tree | 37a3722b10fa9cfdaa5cb24eaa124f1943446fbf /chrome/test/test_location_bar.h | |
parent | 5976255eccb8c585c4e5ed0fefe4144d62bd1f74 (diff) | |
download | chromium_src-33b8b8e68843131c6f81c47a0d0c0c616a01b355.zip chromium_src-33b8b8e68843131c6f81c47a0d0c0c616a01b355.tar.gz chromium_src-33b8b8e68843131c6f81c47a0d0c0c616a01b355.tar.bz2 |
Wires up ability for page to specify instant auto complete
behavior. The choices are:
. immediately (current behavior and is the default).
. delayed (transitions to autocompleted after a delay).
. never (only show the suggestion, but never autocomplete it).
I'm doing this so we can collect some data to help understand which is
the less error prone of the 3. The data collection is all done on the
server side.
BUG=none
TEST=none
Review URL: http://codereview.chromium.org/6685002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@78211 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/test/test_location_bar.h')
-rw-r--r-- | chrome/test/test_location_bar.h | 33 |
1 files changed, 17 insertions, 16 deletions
diff --git a/chrome/test/test_location_bar.h b/chrome/test/test_location_bar.h index a74c2ad..f3dc099 100644 --- a/chrome/test/test_location_bar.h +++ b/chrome/test/test_location_bar.h @@ -27,22 +27,23 @@ class TestLocationBar : public LocationBar { } // Overridden from LocationBar: - virtual void ShowFirstRunBubble(FirstRun::BubbleType bubble_type) {} - virtual void SetSuggestedText(const string16& text) {} - virtual std::wstring GetInputString() const; - virtual WindowOpenDisposition GetWindowOpenDisposition() const; - virtual PageTransition::Type GetPageTransition() const; - virtual void AcceptInput() {} - virtual void FocusLocation(bool select_all) {} - virtual void FocusSearch() {} - virtual void UpdateContentSettingsIcons() {} - virtual void UpdatePageActions() {} - virtual void InvalidatePageActions() {} - virtual void SaveStateToContents(TabContents* contents) {} - virtual void Revert() {} - virtual const AutocompleteEditView* location_entry() const; - virtual AutocompleteEditView* location_entry(); - virtual LocationBarTesting* GetLocationBarForTesting(); + virtual void ShowFirstRunBubble(FirstRun::BubbleType bubble_type) OVERRIDE {} + virtual void SetSuggestedText(const string16& text, + InstantCompleteBehavior behavior) OVERRIDE {} + virtual std::wstring GetInputString() const OVERRIDE; + virtual WindowOpenDisposition GetWindowOpenDisposition() const OVERRIDE; + virtual PageTransition::Type GetPageTransition() const OVERRIDE; + virtual void AcceptInput() OVERRIDE {} + virtual void FocusLocation(bool select_all) OVERRIDE {} + virtual void FocusSearch() OVERRIDE {} + virtual void UpdateContentSettingsIcons() OVERRIDE {} + virtual void UpdatePageActions() OVERRIDE {} + virtual void InvalidatePageActions() OVERRIDE {} + virtual void SaveStateToContents(TabContents* contents) OVERRIDE {} + virtual void Revert() OVERRIDE {} + virtual const AutocompleteEditView* location_entry() const OVERRIDE; + virtual AutocompleteEditView* location_entry() OVERRIDE; + virtual LocationBarTesting* GetLocationBarForTesting() OVERRIDE; private: |