1 // Copyright 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #import "chrome/browser/ui/cocoa/tab_contents/overlayable_contents_controller.h"
7 @implementation OverlayableContentsController
10 if ((self = [super init])) {
11 base::scoped_nsobject<NSView> view(
12 [[NSView alloc] initWithFrame:NSZeroRect]);
13 [view setAutoresizingMask:NSViewHeightSizable | NSViewWidthSizable];
16 activeContainer_.reset([[NSView alloc] initWithFrame:NSZeroRect]);
17 [activeContainer_ setAutoresizingMask:NSViewHeightSizable |
19 [view addSubview:activeContainer_];
24 - (NSView*)activeContainer {
25 return activeContainer_.get();