summaryrefslogtreecommitdiffstats
path: root/chrome/browser/autocomplete/autocomplete_popup_view.h
diff options
context:
space:
mode:
authorpkasting@chromium.org <pkasting@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-09-15 22:46:03 +0000
committerpkasting@chromium.org <pkasting@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-09-15 22:46:03 +0000
commit413df1b5ebacf0f3bc2ad03020e9f93b92717803 (patch)
tree92381b78a0b3a1682523b338428688bd4e23cd9e /chrome/browser/autocomplete/autocomplete_popup_view.h
parent76665e75f3f10a3171efd3bebfbd9c59a7648a00 (diff)
downloadchromium_src-413df1b5ebacf0f3bc2ad03020e9f93b92717803.zip
chromium_src-413df1b5ebacf0f3bc2ad03020e9f93b92717803.tar.gz
chromium_src-413df1b5ebacf0f3bc2ad03020e9f93b92717803.tar.bz2
Convert the AutocompletePopupPositioner into a BubblePositioner in preparation for using it to position both the Omnibox bubble and InfoBubbles. It now gets the bounds of the location stack, which can be turned into useful coordinates for both items.
This should not result in any visible change. BUG=21028 TEST=none Review URL: http://codereview.chromium.org/194110 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@26288 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/autocomplete/autocomplete_popup_view.h')
-rw-r--r--chrome/browser/autocomplete/autocomplete_popup_view.h18
1 files changed, 3 insertions, 15 deletions
diff --git a/chrome/browser/autocomplete/autocomplete_popup_view.h b/chrome/browser/autocomplete/autocomplete_popup_view.h
index 0dc8e35..57670c5 100644
--- a/chrome/browser/autocomplete/autocomplete_popup_view.h
+++ b/chrome/browser/autocomplete/autocomplete_popup_view.h
@@ -1,4 +1,4 @@
-// Copyright (c) 2006-2008 The Chromium Authors. All rights reserved.
+// Copyright (c) 2009 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
@@ -15,9 +15,9 @@
class AutocompleteEditView;
class AutocompletePopupModel;
+class BubblePositioner;
namespace gfx {
class Font;
-class Rect;
}
#if defined(OS_WIN) || defined(OS_LINUX)
class AutocompleteEditViewWin;
@@ -25,18 +25,6 @@ class AutocompleteEditModel;
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:
- virtual ~AutocompletePopupPositioner() { }
-
- // 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() { }
@@ -65,7 +53,7 @@ class AutocompletePopupView {
AutocompleteEditView* edit_view,
AutocompleteEditModel* edit_model,
Profile* profile,
- AutocompletePopupPositioner* popup_positioner);
+ const BubblePositioner* bubble_positioner);
#endif
};