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

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

Issue 209004: Use delegate protocols present in the 10.6 SDK (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 11 years, 3 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 | « chrome/browser/cocoa/hung_renderer_controller.h ('k') | no next file » | 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_TAB_WINDOW_CONTROLLER_H_ 5 #ifndef CHROME_BROWSER_TAB_WINDOW_CONTROLLER_H_
6 #define CHROME_BROWSER_TAB_WINDOW_CONTROLLER_H_ 6 #define CHROME_BROWSER_TAB_WINDOW_CONTROLLER_H_
7 7
8 // A class acting as the Objective-C window controller for a window that has 8 // A class acting as the Objective-C window controller for a window that has
9 // tabs which can be dragged around. Tabs can be re-arranged within the same 9 // tabs which can be dragged around. Tabs can be re-arranged within the same
10 // window or dragged into other TabWindowController windows. This class doesn't 10 // window or dragged into other TabWindowController windows. This class doesn't
11 // know anything about the actual tab implementation or model, as that is fairly 11 // know anything about the actual tab implementation or model, as that is fairly
12 // application-specific. It only provides an API to be overridden by subclasses 12 // application-specific. It only provides an API to be overridden by subclasses
13 // to fill in the details. 13 // to fill in the details.
14 // 14 //
15 // This assumes that there will be a view in the nib, connected to 15 // This assumes that there will be a view in the nib, connected to
16 // |tabContentArea_|, that indicates the content that it switched when switching 16 // |tabContentArea_|, that indicates the content that it switched when switching
17 // between tabs. It needs to be a regular NSView, not something like an NSBox 17 // between tabs. It needs to be a regular NSView, not something like an NSBox
18 // because the TabStripController makes certain assumptions about how it can 18 // because the TabStripController makes certain assumptions about how it can
19 // swap out subviews. 19 // swap out subviews.
20 20
21 #import <Cocoa/Cocoa.h> 21 #import <Cocoa/Cocoa.h>
22 22
23 #import "base/cocoa_protocols_mac.h"
23 #include "base/scoped_nsobject.h" 24 #include "base/scoped_nsobject.h"
24 25
25 @class TabStripView; 26 @class TabStripView;
26 @class TabView; 27 @class TabView;
27 28
28 @interface TabWindowController : NSWindowController { 29 @interface TabWindowController : NSWindowController<NSWindowDelegate> {
29 @private 30 @private
30 IBOutlet NSView* tabContentArea_; 31 IBOutlet NSView* tabContentArea_;
31 IBOutlet TabStripView* tabStripView_; 32 IBOutlet TabStripView* tabStripView_;
32 NSWindow* overlayWindow_; // Used during dragging for window opacity tricks 33 NSWindow* overlayWindow_; // Used during dragging for window opacity tricks
33 NSView* cachedContentView_; // Used during dragging for identifying which 34 NSView* cachedContentView_; // Used during dragging for identifying which
34 // view is the proper content area in the overlay 35 // view is the proper content area in the overlay
35 // (weak) 36 // (weak)
36 scoped_nsobject<NSMutableSet> lockedTabs_; 37 scoped_nsobject<NSMutableSet> lockedTabs_;
37 } 38 }
38 @property(readonly, nonatomic) TabStripView* tabStripView; 39 @property(readonly, nonatomic) TabStripView* tabStripView;
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
118 // can override this to add more things besides the tab strip. Be sure to 119 // can override this to add more things besides the tab strip. Be sure to
119 // call the superclass' version if overridden. 120 // call the superclass' version if overridden.
120 - (NSArray*)viewsToMoveToOverlay; 121 - (NSArray*)viewsToMoveToOverlay;
121 122
122 // Tells the tab strip to forget about this tab in preparation for it being 123 // Tells the tab strip to forget about this tab in preparation for it being
123 // put into a different tab strip, such as during a drop on another window. 124 // put into a different tab strip, such as during a drop on another window.
124 - (void)detachTabView:(NSView*)view; 125 - (void)detachTabView:(NSView*)view;
125 @end 126 @end
126 127
127 #endif // CHROME_BROWSER_TAB_WINDOW_CONTROLLER_H_ 128 #endif // CHROME_BROWSER_TAB_WINDOW_CONTROLLER_H_
OLDNEW
« no previous file with comments | « chrome/browser/cocoa/hung_renderer_controller.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698