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

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

Issue 195043: Start a drag if the tab is dragged off the sides of the window.... (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/tab_view.mm ('k') | chrome/browser/cocoa/tab_window_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_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 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
66 66
67 // Removes the placeholder installed by |-insertPlaceholderForTab:atLocation:| 67 // Removes the placeholder installed by |-insertPlaceholderForTab:atLocation:|
68 // and restores the new tab button. Subclasses need to call the superclass 68 // and restores the new tab button. Subclasses need to call the superclass
69 // implementation. 69 // implementation.
70 - (void)removePlaceholder; 70 - (void)removePlaceholder;
71 71
72 // Show or hide the new tab button. The button is hidden immediately, but 72 // Show or hide the new tab button. The button is hidden immediately, but
73 // waits until the next call to |-layoutTabs| to show it again. 73 // waits until the next call to |-layoutTabs| to show it again.
74 - (void)showNewTabButton:(BOOL)show; 74 - (void)showNewTabButton:(BOOL)show;
75 75
76 // Returns whether or not |tab| can still be fully seen in the tab strip or if
77 // its current position would cause it be obscured by things such as the edge
78 // of the window or the window decorations. Returns YES only if the entire tab
79 // is visible. The default implementation always returns YES.
80 - (BOOL)isTabFullyVisible:(TabView*)tab;
81
76 // Called to check if the receiver can receive dragged tabs from 82 // Called to check if the receiver can receive dragged tabs from
77 // source. Return YES if so. The default implementation returns NO. 83 // source. Return YES if so. The default implementation returns NO.
78 - (BOOL)canReceiveFrom:(TabWindowController*)source; 84 - (BOOL)canReceiveFrom:(TabWindowController*)source;
79 85
80 // Move a given tab view to the location of the current placeholder. If there is 86 // Move a given tab view to the location of the current placeholder. If there is
81 // no placeholder, it will go at the end. |controller| is the window controller 87 // no placeholder, it will go at the end. |controller| is the window controller
82 // of a tab being dropped from a different window. It will be nil if the drag is 88 // of a tab being dropped from a different window. It will be nil if the drag is
83 // within the window, otherwise the tab is removed from that window before being 89 // within the window, otherwise the tab is removed from that window before being
84 // placed into this one. The implementation will call |-removePlaceholder| since 90 // placed into this one. The implementation will call |-removePlaceholder| since
85 // the drag is now complete. This also calls |-layoutTabs| internally so 91 // the drag is now complete. This also calls |-layoutTabs| internally so
(...skipping 26 matching lines...) Expand all
112 // can override this to add more things besides the tab strip. Be sure to 118 // can override this to add more things besides the tab strip. Be sure to
113 // call the superclass' version if overridden. 119 // call the superclass' version if overridden.
114 - (NSArray*)viewsToMoveToOverlay; 120 - (NSArray*)viewsToMoveToOverlay;
115 121
116 // Tells the tab strip to forget about this tab in preparation for it being 122 // Tells the tab strip to forget about this tab in preparation for it being
117 // put into a different tab strip, such as during a drop on another window. 123 // put into a different tab strip, such as during a drop on another window.
118 - (void)detachTabView:(NSView*)view; 124 - (void)detachTabView:(NSView*)view;
119 @end 125 @end
120 126
121 #endif // CHROME_BROWSER_TAB_WINDOW_CONTROLLER_H_ 127 #endif // CHROME_BROWSER_TAB_WINDOW_CONTROLLER_H_
OLDNEW
« no previous file with comments | « chrome/browser/cocoa/tab_view.mm ('k') | chrome/browser/cocoa/tab_window_controller.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698