| Index: chrome/browser/cocoa/browser_window_controller.mm
|
| ===================================================================
|
| --- chrome/browser/cocoa/browser_window_controller.mm (revision 52179)
|
| +++ chrome/browser/cocoa/browser_window_controller.mm (working copy)
|
| @@ -1251,9 +1251,14 @@
|
| // Create a controller for the findbar.
|
| findBarCocoaController_.reset([findBarCocoaController retain]);
|
| NSView *contentView = [[self window] contentView];
|
| - [contentView addSubview:[findBarCocoaController_ view]
|
| - positioned:NSWindowAbove
|
| - relativeTo:[toolbarController_ view]];
|
| +// [contentView addSubview:[findBarCocoaController_ view]
|
| +// positioned:NSWindowAbove
|
| +// relativeTo:[toolbarController_ view]];
|
| + // Trigger a nib load.
|
| + //[findBarCocoaController_ view];
|
| + [[self window] addChildWindow:[findBarCocoaController_ window]
|
| + ordered:NSWindowAbove];
|
| + LOG(ERROR) << "Adding child window";
|
|
|
| // Place the find bar immediately below the toolbar/attached bookmark bar. In
|
| // fullscreen mode, it hangs off the top of the screen when the bar is hidden.
|
| @@ -1531,6 +1536,13 @@
|
| statusBubble_->UpdateSizeAndPosition();
|
| }
|
|
|
| + CGFloat maxY = [self placeBookmarkBarBelowInfoBar] ?
|
| + NSMinY([[toolbarController_ view] frame]) :
|
| + NSMinY([[bookmarkBarController_ view] frame]);
|
| + CGFloat maxWidth = NSWidth([[[self window] contentView] frame]);
|
| + [findBarCocoaController_ positionFindBarViewAtMaxY:maxY maxWidth:maxWidth];
|
| +
|
| +
|
| // Let the selected RenderWidgetHostView know, so that it can tell plugins.
|
| if (TabContents* contents = browser_->GetSelectedTabContents()) {
|
| if (RenderWidgetHostView* rwhv = contents->GetRenderWidgetHostView())
|
|
|