Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(156)

Side by Side Diff: chrome/browser/cocoa/tab_contents_controller.h

Issue 20302: IB outlets only get filled in during awakening, not initialization. D'oh! (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 11 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | chrome/browser/cocoa/tab_contents_controller.mm » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/cocoa/tab_contents_controller.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698