OLD | NEW |
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CHROME_BROWSER_COCOA_TAB_COTNENTS_CONTROLLER_H_ | 5 #ifndef CHROME_BROWSER_COCOA_TAB_COTNENTS_CONTROLLER_H_ |
6 #define CHROME_BROWSER_COCOA_TAB_COTNENTS_CONTROLLER_H_ | 6 #define CHROME_BROWSER_COCOA_TAB_COTNENTS_CONTROLLER_H_ |
7 | 7 |
8 #include <Cocoa/Cocoa.h> | 8 #include <Cocoa/Cocoa.h> |
9 | 9 |
10 class CommandUpdater; | 10 class CommandUpdater; |
(...skipping 11 matching lines...) Expand all Loading... |
22 // tab dragging and tear-off into new windows. It's also not very expensive. | 22 // tab dragging and tear-off into new windows. It's also not very expensive. |
23 // As we hook things up, we'll see if this imposes other restrictions (such | 23 // As we hook things up, we'll see if this imposes other restrictions (such |
24 // as command-handling or dispatch) that will require us to change the view | 24 // as command-handling or dispatch) that will require us to change the view |
25 // layout. | 25 // layout. |
26 | 26 |
27 @interface TabContentsController : NSViewController { | 27 @interface TabContentsController : NSViewController { |
28 @private | 28 @private |
29 CommandUpdater* commands_; // weak, may be nil | 29 CommandUpdater* commands_; // weak, may be nil |
30 TabContentsCommandObserver* observer_; // nil if |commands_| is nil | 30 TabContentsCommandObserver* observer_; // nil if |commands_| is nil |
31 LocationBar* locationBarBridge_; | 31 LocationBar* locationBarBridge_; |
| 32 TabContents* contents_; // weak |
32 IBOutlet NSButton* backButton_; | 33 IBOutlet NSButton* backButton_; |
33 IBOutlet NSButton* forwardButton_; | 34 IBOutlet NSButton* forwardButton_; |
34 IBOutlet NSButton* reloadStopButton_; | 35 IBOutlet NSButton* reloadStopButton_; |
35 IBOutlet NSButton* starButton_; | 36 IBOutlet NSButton* starButton_; |
36 IBOutlet NSTextField* locationBar_; | 37 IBOutlet NSTextField* locationBar_; |
37 IBOutlet NSBox* contentsBox_; | 38 IBOutlet NSBox* contentsBox_; |
38 } | 39 } |
39 | 40 |
40 // Create the contents of a tab represented by |contents| and loaded from the | 41 // Create the contents of a tab represented by |contents| and loaded from the |
41 // nib given by |name|. |commands| allows tracking of what's enabled and | 42 // nib given by |name|. |commands| allows tracking of what's enabled and |
(...skipping 10 matching lines...) Expand all Loading... |
52 - (LocationBar*)locationBar; | 53 - (LocationBar*)locationBar; |
53 | 54 |
54 // Called when the tab contents is about to be put into the view hierarchy as | 55 // Called when the tab contents is about to be put into the view hierarchy as |
55 // the selected tab. Handles things such as ensuring the toolbar is correctly | 56 // the selected tab. Handles things such as ensuring the toolbar is correctly |
56 // enabled. | 57 // enabled. |
57 - (void)willBecomeSelectedTab; | 58 - (void)willBecomeSelectedTab; |
58 | 59 |
59 @end | 60 @end |
60 | 61 |
61 #endif // CHROME_BROWSER_COCOA_TAB_COTNENTS_CONTROLLER_H_ | 62 #endif // CHROME_BROWSER_COCOA_TAB_COTNENTS_CONTROLLER_H_ |
OLD | NEW |