1 // Copyright 2012 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 #ifndef CHROME_BROWSER_UI_COCOA_TAB_CONTENTS_OVERLAYABLE_CONTENTS_CONTROLLER_H_
6 #define CHROME_BROWSER_UI_COCOA_TAB_CONTENTS_OVERLAYABLE_CONTENTS_CONTROLLER_H_
8 #import <Cocoa/Cocoa.h>
10 #include "base/mac/scoped_nsobject.h"
12 // OverlayableContentsController is an obsolete wrapper holding the view where a
13 // tab's WebContents is displayed. In the old Chrome Instant implementation it
14 // multiplexed between the tab's contents and an overlay's contents. Now there
15 // is no overlay, but ripping this class out entirely is hard.
17 // TODO(sail): Remove this class and replace it with something saner.
18 @interface OverlayableContentsController
: NSViewController
{
20 // Container view for the "active" contents.
21 base::scoped_nsobject
<NSView
> activeContainer_
;
24 @
property(readonly
, nonatomic
) NSView
* activeContainer
;
28 #endif // CHROME_BROWSER_UI_COCOA_TAB_CONTENTS_OVERLAYABLE_CONTENTS_CONTROLLER_H_