summaryrefslogtreecommitdiffstats
path: root/chrome/browser/chromeos/compact_navigation_bar.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/chromeos/compact_navigation_bar.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/chromeos/compact_navigation_bar.h')
-rw-r--r--chrome/browser/chromeos/compact_navigation_bar.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/chrome/browser/chromeos/compact_navigation_bar.h b/chrome/browser/chromeos/compact_navigation_bar.h
index ce3cd5f..a0553bd 100644
--- a/chrome/browser/chromeos/compact_navigation_bar.h
+++ b/chrome/browser/chromeos/compact_navigation_bar.h
@@ -8,7 +8,7 @@
#include "base/basictypes.h"
#include "base/scoped_ptr.h"
#include "chrome/browser/autocomplete/autocomplete_edit.h"
-#include "chrome/browser/autocomplete/autocomplete_popup_view.h"
+#include "chrome/browser/bubble_positioner.h"
#include "views/controls/button/button.h"
#include "views/view.h"
@@ -26,7 +26,7 @@ class NativeViewHost;
class CompactNavigationBar : public views::View,
public views::ButtonListener,
public AutocompleteEditController,
- public AutocompletePopupPositioner {
+ public BubblePositioner {
public:
explicit CompactNavigationBar(Browser* browser);
virtual ~CompactNavigationBar();
@@ -55,8 +55,8 @@ class CompactNavigationBar : public views::View,
virtual SkBitmap GetFavIcon() const;
virtual std::wstring GetTitle() const;
- // AutocompletePopupPositioner implementation.
- virtual gfx::Rect GetPopupBounds() const;
+ // BubblePositioner:
+ virtual gfx::Rect GetLocationStackBounds() const;
void AddTabWithURL(const GURL& url, PageTransition::Type transition);