Commit c4cee35c authored by rohitrao@chromium.org's avatar rohitrao@chromium.org

Fix findbar z-ordering issue in fullscreen mode.

BUG=74065
TEST=Launch chromium and trigger an infobar.  Enter presentation mode, then Cmd-F to trigger find in page.  Findbar should be visible even when the overlay is open.
TEST=Launch chromium and trigger an infobar.  Enter fullscreen, ensure that presentation mode is off (the UI is always visible), then Cmd-F to trigger find in page.  Findbar should be visible even when the overlay is open.

Review URL: http://codereview.chromium.org/7491095

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@95948 0039d316-1c4b-4281-b951-d872f2087c98
parent 53e7333a
......@@ -1436,10 +1436,13 @@ enum {
// Create a controller for the findbar.
findBarCocoaController_.reset([findBarCocoaController retain]);
NSView *contentView = [[self window] contentView];
NSView* contentView = [[self window] contentView];
NSView* relativeView =
[self inPresentationMode] ? [toolbarController_ view] :
[infoBarContainerController_ view];
[contentView addSubview:[findBarCocoaController_ view]
positioned:NSWindowAbove
relativeTo:[infoBarContainerController_ view]];
relativeTo:relativeView];
// Place the find bar immediately below the toolbar/attached bookmark bar. In
// presentation mode, it hangs off the top of the screen when the bar is
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment