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

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

Issue 159780: Add support for constrained windows on os x, based on Avi's GTMWindowSheetController. (Closed)
Patch Set: Merge with ToT Created 11 years, 4 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
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_VIEW_H_ 5 #ifndef CHROME_BROWSER_COCOA_TAB_VIEW_H_
6 #define CHROME_BROWSER_COCOA_TAB_VIEW_H_ 6 #define CHROME_BROWSER_COCOA_TAB_VIEW_H_
7 7
8 #import <Cocoa/Cocoa.h> 8 #import <Cocoa/Cocoa.h>
9 9
10 #include "base/scoped_nsobject.h" 10 #include "base/scoped_nsobject.h"
(...skipping 10 matching lines...) Expand all
21 IBOutlet TabController* controller_; 21 IBOutlet TabController* controller_;
22 // TODO(rohitrao): Add this button to a CoreAnimation layer so we can fade it 22 // TODO(rohitrao): Add this button to a CoreAnimation layer so we can fade it
23 // in and out on mouseovers. 23 // in and out on mouseovers.
24 IBOutlet NSButton* closeButton_; 24 IBOutlet NSButton* closeButton_;
25 25
26 // Tracking area for close button mouseover images. 26 // Tracking area for close button mouseover images.
27 scoped_nsobject<NSTrackingArea> trackingArea_; 27 scoped_nsobject<NSTrackingArea> trackingArea_;
28 28
29 // All following variables are valid for the duration of a drag. 29 // All following variables are valid for the duration of a drag.
30 // These are released on mouseUp: 30 // These are released on mouseUp:
31 BOOL isTheOnlyTab_; // Is this the only tab in the window? 31 BOOL moveWindowOnDrag_; // Set if the only tab of a window is dragged.
32 BOOL tabWasDragged_; // Has the tab been dragged? 32 BOOL tabWasDragged_; // Has the tab been dragged?
33 BOOL draggingWithinTabStrip_; // Did drag stay in the current tab strip? 33 BOOL draggingWithinTabStrip_; // Did drag stay in the current tab strip?
34 BOOL chromeIsVisible_; 34 BOOL chromeIsVisible_;
35 35
36 NSTimeInterval tearTime_; // Time since tear happened 36 NSTimeInterval tearTime_; // Time since tear happened
37 NSPoint tearOrigin_; // Origin of the tear rect 37 NSPoint tearOrigin_; // Origin of the tear rect
38 NSPoint dragOrigin_; // Origin point of the drag 38 NSPoint dragOrigin_; // Origin point of the drag
39 // TODO(alcor): these references may need to be strong to avoid crashes 39 // TODO(alcor): these references may need to be strong to avoid crashes
40 // due to JS closing windows 40 // due to JS closing windows
41 TabWindowController* sourceController_; // weak. controller starting the drag 41 TabWindowController* sourceController_; // weak. controller starting the drag
42 NSWindow* sourceWindow_; // weak. The window starting the drag 42 NSWindow* sourceWindow_; // weak. The window starting the drag
43 NSRect sourceWindowFrame_; 43 NSRect sourceWindowFrame_;
44 NSRect sourceTabFrame_; 44 NSRect sourceTabFrame_;
45 45
46 TabWindowController* draggedController_; // weak. Controller being dragged. 46 TabWindowController* draggedController_; // weak. Controller being dragged.
47 NSWindow* dragWindow_; // weak. The window being dragged 47 NSWindow* dragWindow_; // weak. The window being dragged
48 NSWindow* dragOverlay_; // weak. The overlay being dragged 48 NSWindow* dragOverlay_; // weak. The overlay being dragged
49 49
50 TabWindowController* targetController_; // weak. Controller being targeted 50 TabWindowController* targetController_; // weak. Controller being targeted
51 NSCellStateValue state_; 51 NSCellStateValue state_;
52 } 52 }
53 @property(assign) NSCellStateValue state; 53 @property(assign) NSCellStateValue state;
54 @end 54 @end
55 55
56 #endif // CHROME_BROWSER_COCOA_TAB_VIEW_H_ 56 #endif // CHROME_BROWSER_COCOA_TAB_VIEW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698