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

Unified Diff: chrome/browser/cocoa/tab_strip_controller.h

Issue 160116: Implement feature where tabs don't resize when using the close box until the ... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 11 years, 5 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/cocoa/tab_strip_controller.h
===================================================================
--- chrome/browser/cocoa/tab_strip_controller.h (revision 21532)
+++ chrome/browser/cocoa/tab_strip_controller.h (working copy)
@@ -57,6 +57,18 @@
// aren't coalesced, so we store frames to avoid redundant calls.
scoped_nsobject<NSMutableDictionary> targetFrames_;
NSRect newTabTargetFrame_;
+
+ // Width available for resizing the tabs (doesn't include the new tab
+ // button). Used to restrict the available width when closing many tabs at
+ // once to prevent them from resizing to fit the full width. If the entire
+ // width should be used, this will have a value of |kUseFullAvailableWidth|.
+ float availableResizeWidth_;
+ // A tracking area that's the size of the tab strip used to be notified
+ // when the mouse leaves the tab strip. It's installed when the user clicks
+ // the close box of a tab and is removed when they move the mouse outside
+ // of the strip. When they do, we resize the tabs to use all available
+ // space.
+ scoped_nsobject<NSTrackingArea> closeTabTrackingArea_;
}
// Initialize the controller with a view and browser that contains
« no previous file with comments | « no previous file | chrome/browser/cocoa/tab_strip_controller.mm » ('j') | chrome/browser/cocoa/tab_strip_controller.mm » ('J')

Powered by Google App Engine
This is Rietveld 408576698