diff options
author | rohitrao@chromium.org <rohitrao@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-08-27 03:57:04 +0000 |
---|---|---|
committer | rohitrao@chromium.org <rohitrao@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-08-27 03:57:04 +0000 |
commit | 22f5aaa21ecb93bef8b0171b50137e5bc1c838bd (patch) | |
tree | 7f24b41dfecfc230155d4f29a3071024d5292738 /chrome/browser/cocoa/toolbar_controller.h | |
parent | e3c6f51fcf256b17a1469c00b1f3fd7e6be0f914 (diff) | |
download | chromium_src-22f5aaa21ecb93bef8b0171b50137e5bc1c838bd.zip chromium_src-22f5aaa21ecb93bef8b0171b50137e5bc1c838bd.tar.gz chromium_src-22f5aaa21ecb93bef8b0171b50137e5bc1c838bd.tar.bz2 |
[Mac] The autocomplete popup now gets its position from the toolbar controller,
rather than simply growing its width by 2*height.
BUG=None
TEST=The autocomplete popup should continue to appear in the same location.
Review URL: http://codereview.chromium.org/173439
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@24586 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/cocoa/toolbar_controller.h')
-rw-r--r-- | chrome/browser/cocoa/toolbar_controller.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/chrome/browser/cocoa/toolbar_controller.h b/chrome/browser/cocoa/toolbar_controller.h index 31aafc4..0e0c8f8 100644 --- a/chrome/browser/cocoa/toolbar_controller.h +++ b/chrome/browser/cocoa/toolbar_controller.h @@ -15,6 +15,7 @@ #import "chrome/browser/cocoa/view_resizer.h" #include "chrome/common/pref_member.h" +class AutocompletePopupPositioner; @class AutocompleteTextField; @class AutocompleteTextFieldEditor; @class DelayedMenuButton; @@ -54,6 +55,8 @@ class ToolbarView; // Used for monitoring the optional toolbar button prefs. scoped_ptr<ToolbarControllerInternal::PrefObserverBridge> prefObserver_; + // Used to positioner the omnibox popup view. + scoped_ptr<AutocompletePopupPositioner> popupPositioner_; BooleanPrefMember showHomeButton_; BooleanPrefMember showPageOptionButtons_; BOOL hasToolbar_; // if NO, we only have the location bar. @@ -140,6 +143,7 @@ class ToolbarView; - (NSArray*)toolbarViews; - (void)showOptionalHomeButton; - (void)showOptionalPageWrenchButtons; +- (gfx::Rect)autocompletePopupPosition; @end #endif // CHROME_BROWSER_COCOA_TOOLBAR_CONTROLLER_H_ |