// Copyright (c) 2009 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef CHROME_BROWSER_BROWSER_WINDOW_CONTROLLER_H_ #define CHROME_BROWSER_BROWSER_WINDOW_CONTROLLER_H_ // A class acting as the Objective-C controller for the Browser object. Handles // interactions between Cocoa and the cross-platform code. #import class Browser; class BrowserWindow; @interface BrowserWindowController : NSWindowController { @private Browser* browser_; // strong BrowserWindow* window_shim_; // strong // Some toolbar items for IB. We can remove these if we stop using IB for // NSToolbar support (it only half works). IBOutlet NSToolbarItem* back_button_; IBOutlet NSToolbarItem* forward_button_; IBOutlet NSToolbarItem* url_bar_; // This will become its own view at some point. IBOutlet NSView* tab_bar_view_; } // Load the browser window nib and do any Cocoa-specific initialization. // Takes ownership of |browser|. - (id)initWithBrowser:(Browser*)browser; // call to make the browser go away from other places in the cross-platform // code. - (void)destroyBrowser; // Access the C++ bridge between the NSWindow and the rest of Chromium - (BrowserWindow*)browserWindow; @end #endif // CHROME_BROWSER_BROWSER_WINDOW_CONTROLLER_H_