blob: 9dffe32239658566f7acd8330a2dcdc21c6721a8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
|
// 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 <Cocoa/Cocoa.h>
class Browser;
class BrowserWindow;
@class TabBarView;
@class TabContentsController;
@interface BrowserWindowController :
NSWindowController<NSUserInterfaceValidations> {
@private
Browser* browser_;
BrowserWindow* windowShim_;
TabContentsController* contentsController_;
IBOutlet NSBox* contentBox_;
IBOutlet TabBarView* tabBarView_;
// Views for the toolbar
IBOutlet NSView* toolbarView_;
IBOutlet NSTextField* urlBarView_;
}
// 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_
|