summaryrefslogtreecommitdiffstats
path: root/chrome/browser/cocoa/autocomplete_text_field_unittest.mm
diff options
context:
space:
mode:
authorshess@chromium.org <shess@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-04-09 15:41:51 +0000
committershess@chromium.org <shess@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-04-09 15:41:51 +0000
commit5942dc32a1d9dc32aa208452ec72f8c076153f63 (patch)
tree511de1b51abf62a8a9f50622db9b2193a2a43e5a /chrome/browser/cocoa/autocomplete_text_field_unittest.mm
parent12c3b59ecb82bded702780696dffc15c6955a5f7 (diff)
downloadchromium_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/browser/cocoa/autocomplete_text_field_unittest.mm')
-rw-r--r--chrome/browser/cocoa/autocomplete_text_field_unittest.mm8
1 files changed, 5 insertions, 3 deletions
diff --git a/chrome/browser/cocoa/autocomplete_text_field_unittest.mm b/chrome/browser/cocoa/autocomplete_text_field_unittest.mm
index f82fca7..b6f044f 100644
--- a/chrome/browser/cocoa/autocomplete_text_field_unittest.mm
+++ b/chrome/browser/cocoa/autocomplete_text_field_unittest.mm
@@ -27,9 +27,11 @@ class MockLocationIconView : public LocationBarViewMac::LocationIconView {
MockLocationIconView(LocationBarViewMac* owner)
: LocationBarViewMac::LocationIconView(owner) {}
- // |LocationBarViewMac::LocationIconView::GetDragPasteboard()|
- // expects things to be more initialized than they will be, and
- // will crash if it is called.
+ // |LocationBarViewMac::LocationIconView| dragging support needs
+ // more setup than this test provides.
+ bool IsDraggable() {
+ return false;
+ }
virtual NSPasteboard* GetDragPasteboard() {
return [NSPasteboard pasteboardWithUniqueName];
}