diff options
author | shess@chromium.org <shess@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-04-09 15:41:51 +0000 |
---|---|---|
committer | shess@chromium.org <shess@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-04-09 15:41:51 +0000 |
commit | 5942dc32a1d9dc32aa208452ec72f8c076153f63 (patch) | |
tree | 511de1b51abf62a8a9f50622db9b2193a2a43e5a /chrome/test/test_location_bar.h | |
parent | 12c3b59ecb82bded702780696dffc15c6955a5f7 (diff) | |
download | chromium_src-5942dc32a1d9dc32aa208452ec72f8c076153f63.zip chromium_src-5942dc32a1d9dc32aa208452ec72f8c076153f63.tar.gz chromium_src-5942dc32a1d9dc32aa208452ec72f8c076153f63.tar.bz2 |
Don't allow drag or click on location icon when editing in omnibox.
After editing the omnibox, clicking the location icon would provide
the page info for the page being shown, though the rest of the omnibox
might be inconsistent with that page. Exposes the logic used by
AutocompleteEditView::GetIcon() to determine when there's a real URL
for page-info (or drag).
BUG=none
TEST=Navigate to a page. Click location icon to see page info. Edit the omnibox, click should not show page info.
Review URL: http://codereview.chromium.org/1594012
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@44087 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/test/test_location_bar.h')
-rw-r--r-- | chrome/test/test_location_bar.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/chrome/test/test_location_bar.h b/chrome/test/test_location_bar.h index f257d1ee..131af32 100644 --- a/chrome/test/test_location_bar.h +++ b/chrome/test/test_location_bar.h @@ -42,6 +42,9 @@ class TestLocationBar : public LocationBar { virtual void InvalidatePageActions() {} virtual void SaveStateToContents(TabContents* contents) {} virtual void Revert() {} + virtual const AutocompleteEditView* location_entry() const { + return NULL; + } virtual AutocompleteEditView* location_entry() { return NULL; } |