blob: b757e4836e48fac75fe61e33a16773ae02c10551 (
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
|
// 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;
@interface BrowserWindowController :
NSWindowController<NSUserInterfaceValidations> {
@private
Browser* browser_; // strong
BrowserWindow* windowShim_; // strong
// Views for the toolbar
IBOutlet NSView* toolbarView_;
IBOutlet NSTextField* urlBarView_;
// Views for the tabs
IBOutlet NSView* tabBarView_;
}
// 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_
|