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

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

Issue 385106: [Mac] Fix weird layout issues when dragging a tab from a large screen to a sm... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 11 years, 1 month 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
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
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 @property(readonly, nonatomic) FastResizeView* tabContentArea; 42 @property(readonly, nonatomic) FastResizeView* tabContentArea;
43 43
44 // Used during tab dragging to turn on/off the overlay window when a tab 44 // Used during tab dragging to turn on/off the overlay window when a tab
45 // is torn off. If -deferPerformClose (below) is used, -removeOverlay will 45 // is torn off. If -deferPerformClose (below) is used, -removeOverlay will
46 // cause the controller to be autoreleased before returning. 46 // cause the controller to be autoreleased before returning.
47 - (void)showOverlay; 47 - (void)showOverlay;
48 - (void)removeOverlay; 48 - (void)removeOverlay;
49 - (void)removeOverlayAfterDelay:(NSTimeInterval)delay; 49 - (void)removeOverlayAfterDelay:(NSTimeInterval)delay;
50 - (NSWindow*)overlayWindow; 50 - (NSWindow*)overlayWindow;
51 51
52 // Returns YES if it is ok to constrain the window's frame to fit the screen.
53 - (BOOL)shouldConstrainFrameRect;
54
52 // A collection of methods, stubbed out in this base class, that provide 55 // A collection of methods, stubbed out in this base class, that provide
53 // the implementation of tab dragging based on whatever model is most 56 // the implementation of tab dragging based on whatever model is most
54 // appropriate. 57 // appropriate.
55 58
56 // Layout the tabs based on the current ordering of the model. 59 // Layout the tabs based on the current ordering of the model.
57 - (void)layoutTabs; 60 - (void)layoutTabs;
58 61
59 // Creates a new window by pulling the given tab out and placing it in 62 // Creates a new window by pulling the given tab out and placing it in
60 // the new window. Returns the controller for the new window. The size of the 63 // the new window. Returns the controller for the new window. The size of the
61 // new window will be the same size as this window. 64 // new window will be the same size as this window.
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
128 131
129 @end 132 @end
130 133
131 @interface TabWindowController(ProtectedMethods) 134 @interface TabWindowController(ProtectedMethods)
132 // Tells the tab strip to forget about this tab in preparation for it being 135 // Tells the tab strip to forget about this tab in preparation for it being
133 // put into a different tab strip, such as during a drop on another window. 136 // put into a different tab strip, such as during a drop on another window.
134 - (void)detachTabView:(NSView*)view; 137 - (void)detachTabView:(NSView*)view;
135 @end 138 @end
136 139
137 #endif // CHROME_BROWSER_TAB_WINDOW_CONTROLLER_H_ 140 #endif // CHROME_BROWSER_TAB_WINDOW_CONTROLLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698