diff options
author | pkasting@chromium.org <pkasting@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-09-15 22:46:03 +0000 |
---|---|---|
committer | pkasting@chromium.org <pkasting@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-09-15 22:46:03 +0000 |
commit | 413df1b5ebacf0f3bc2ad03020e9f93b92717803 (patch) | |
tree | 92381b78a0b3a1682523b338428688bd4e23cd9e /chrome/browser/views/toolbar_view.h | |
parent | 76665e75f3f10a3171efd3bebfbd9c59a7648a00 (diff) | |
download | chromium_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/views/toolbar_view.h')
-rw-r--r-- | chrome/browser/views/toolbar_view.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/chrome/browser/views/toolbar_view.h b/chrome/browser/views/toolbar_view.h index 051b22d..ed42a11 100644 --- a/chrome/browser/views/toolbar_view.h +++ b/chrome/browser/views/toolbar_view.h @@ -9,9 +9,9 @@ #include "base/ref_counted.h" #include "base/scoped_ptr.h" +#include "chrome/browser/bubble_positioner.h" #include "chrome/browser/command_updater.h" #include "chrome/browser/user_data_manager.h" -#include "chrome/browser/views/autocomplete/autocomplete_popup_contents_view.h" #include "chrome/browser/views/go_button.h" #include "chrome/browser/views/location_bar_view.h" #include "chrome/common/pref_member.h" @@ -72,7 +72,7 @@ class ToolbarView : public views::View, public GetProfilesHelper::Delegate, public CommandUpdater::CommandObserver, public views::ButtonListener, - public AutocompletePopupPositioner { + public BubblePositioner { public: explicit ToolbarView(Browser* browser); virtual ~ToolbarView(); @@ -128,8 +128,8 @@ class ToolbarView : public views::View, // Overridden from views::BaseButton::ButtonListener: virtual void ButtonPressed(views::Button* sender, const views::Event& event); - // Overridden from AutocompletePopupPositioner: - virtual gfx::Rect GetPopupBounds() const; + // BubblePositioner: + virtual gfx::Rect GetLocationStackBounds() const; // Overridden from NotificationObserver: virtual void Observe(NotificationType type, |