diff options
author | viettrungluu@chromium.org <viettrungluu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-02-04 19:16:28 +0000 |
---|---|---|
committer | viettrungluu@chromium.org <viettrungluu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-02-04 19:16:28 +0000 |
commit | a3046083f16194a4e5d783e5933b26f7bddb4a8c (patch) | |
tree | 04cb7afa214eea31a62cfd82cb9d1f8c9af80f7b /chrome/browser/cocoa/find_bar_cocoa_controller.h | |
parent | 61e27acc8de9d271950c4adbae678fa4bdd28a09 (diff) | |
download | chromium_src-a3046083f16194a4e5d783e5933b26f7bddb4a8c.zip chromium_src-a3046083f16194a4e5d783e5933b26f7bddb4a8c.tar.gz chromium_src-a3046083f16194a4e5d783e5933b26f7bddb4a8c.tar.bz2 |
Mac: fullscreen mode find bar positioning fix.
Always position the find bar (if visible) below the visually contiguous toolbar
(i.e., toolbar + maybe bookmark bar). In fullscreen mode, this may mean that it
hangs off the top of the screen, which is intended.
BUG=31638
TEST=Find bar still works normally (and is positioned correctly) in non-fullscreen mode. For developers who know how to enable fullscreen mode, it should be positioned as described above and work correctly.
Review URL: http://codereview.chromium.org/572006
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@38119 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/cocoa/find_bar_cocoa_controller.h')
-rw-r--r-- | chrome/browser/cocoa/find_bar_cocoa_controller.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/chrome/browser/cocoa/find_bar_cocoa_controller.h b/chrome/browser/cocoa/find_bar_cocoa_controller.h index 21ce106..6b3cf55 100644 --- a/chrome/browser/cocoa/find_bar_cocoa_controller.h +++ b/chrome/browser/cocoa/find_bar_cocoa_controller.h @@ -55,9 +55,11 @@ class FindNotificationDetails; - (IBAction)previousResult:(id)sender; -// Positions the find bar based on the location of the infobar container. -// TODO(rohitrao): Move this logic into BrowserWindowController. -- (void)positionFindBarView:(NSView*)infoBarContainerView; +// Position the find bar at the given maximum y-coordinate (the min-y of the +// bar -- toolbar + possibly bookmark bar, but not including the infobars) with +// the given maximum width (i.e., the find bar should fit between 0 and +// |maxWidth|). +- (void)positionFindBarViewAtMaxY:(CGFloat)maxY maxWidth:(CGFloat)maxWidth; // Methods called from FindBarBridge. - (void)showFindBar:(BOOL)animate; |