diff options
author | ben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-04-23 01:36:33 +0000 |
---|---|---|
committer | ben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-04-23 01:36:33 +0000 |
commit | d6acbc8bb30f3cf2a33576cdf284d7128cdf14c9 (patch) | |
tree | 675dc8af384745043937a56814bf18ba195a69fa | |
parent | ee2db900781d37f213ece240c0b8d8e827c1194a (diff) | |
download | chromium_src-d6acbc8bb30f3cf2a33576cdf284d7128cdf14c9.zip chromium_src-d6acbc8bb30f3cf2a33576cdf284d7128cdf14c9.tar.gz chromium_src-d6acbc8bb30f3cf2a33576cdf284d7128cdf14c9.tar.bz2 |
Move the positioner code into autocompletepopupview.h so that linux can use it too.
Review URL: http://codereview.chromium.org/87007
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@14284 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r-- | chrome/browser/autocomplete/autocomplete_popup_view.h | 15 | ||||
-rw-r--r-- | chrome/browser/views/autocomplete/autocomplete_popup_contents_view.h | 9 |
2 files changed, 13 insertions, 11 deletions
diff --git a/chrome/browser/autocomplete/autocomplete_popup_view.h b/chrome/browser/autocomplete/autocomplete_popup_view.h index 05017e4..c532847 100644 --- a/chrome/browser/autocomplete/autocomplete_popup_view.h +++ b/chrome/browser/autocomplete/autocomplete_popup_view.h @@ -14,14 +14,25 @@ class AutocompleteEditView; class AutocompletePopupModel; class ChromeFont; - +namespace gfx { +class Rect; +} #if defined(OS_WIN) class AutocompleteEditViewWin; class AutocompleteEditModel; -class AutocompletePopupPositioner; class Profile; #endif +// An object in the browser UI can implement this interface to provide display +// bounds for the autocomplete popup view. +class AutocompletePopupPositioner { + public: + // Returns the bounds at which the popup should be shown, in screen + // coordinates. The height is ignored, since the popup is sized to its + // contents automatically. + virtual gfx::Rect GetPopupBounds() const = 0; +}; + class AutocompletePopupView { public: virtual ~AutocompletePopupView() { } diff --git a/chrome/browser/views/autocomplete/autocomplete_popup_contents_view.h b/chrome/browser/views/autocomplete/autocomplete_popup_contents_view.h index 9afeb0d..ff54d88 100644 --- a/chrome/browser/views/autocomplete/autocomplete_popup_contents_view.h +++ b/chrome/browser/views/autocomplete/autocomplete_popup_contents_view.h @@ -16,15 +16,6 @@ class AutocompleteEditViewWin; class AutocompletePopupWin; class Profile; -// Interface to retrieve the position of the popup. -class AutocompletePopupPositioner { - public: - // Returns the bounds at which the popup should be shown, in screen - // coordinates. The height is ignored, since the popup is sized to its - // contents automatically. - virtual gfx::Rect GetPopupBounds() const = 0; -}; - // An interface implemented by an object that provides data to populate // individual result views. class AutocompleteResultViewModel { |