summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--chrome/browser/autocomplete/autocomplete_popup_view.h15
-rw-r--r--chrome/browser/views/autocomplete/autocomplete_popup_contents_view.h9
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 {