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

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

Issue 3204007: Make tabOverlap dynamic depending on the number of non-mini tabs presented on... (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: Created 10 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 | Annotate | Revision Log
« no previous file with comments | « chrome/browser/cocoa/tab_strip_controller.mm ('k') | chrome/browser/cocoa/tab_view.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_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 #pragma once 7 #pragma once
8 8
9 #import <Cocoa/Cocoa.h> 9 #import <Cocoa/Cocoa.h>
10 #include <ApplicationServices/ApplicationServices.h> 10 #include <ApplicationServices/ApplicationServices.h>
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
99 @property(assign, nonatomic) NSCellStateValue state; 99 @property(assign, nonatomic) NSCellStateValue state;
100 @property(assign, nonatomic) CGFloat hoverAlpha; 100 @property(assign, nonatomic) CGFloat hoverAlpha;
101 @property(assign, nonatomic) CGFloat alertAlpha; 101 @property(assign, nonatomic) CGFloat alertAlpha;
102 102
103 // Determines if the tab is in the process of animating closed. It may still 103 // Determines if the tab is in the process of animating closed. It may still
104 // be visible on-screen, but should not respond to/initiate any events. Upon 104 // be visible on-screen, but should not respond to/initiate any events. Upon
105 // setting to NO, clears the target/action of the close button to prevent 105 // setting to NO, clears the target/action of the close button to prevent
106 // clicks inside it from sending messages. 106 // clicks inside it from sending messages.
107 @property(assign, nonatomic, getter=isClosing) BOOL closing; 107 @property(assign, nonatomic, getter=isClosing) BOOL closing;
108 108
109 // Return the state of the mouse if it's hovering on the tab
110 - (BOOL)isMouseIn;
111
109 // Enables/Disables tracking regions for the tab. 112 // Enables/Disables tracking regions for the tab.
110 - (void)setTrackingEnabled:(BOOL)enabled; 113 - (void)setTrackingEnabled:(BOOL)enabled;
111 114
112 // Begin showing an "alert" glow (shown to call attention to an unselected 115 // Begin showing an "alert" glow (shown to call attention to an unselected
113 // pinned tab whose title changed). 116 // pinned tab whose title changed).
114 - (void)startAlert; 117 - (void)startAlert;
115 118
116 // Stop showing the "alert" glow; this won't immediately wipe out any glow, but 119 // Stop showing the "alert" glow; this won't immediately wipe out any glow, but
117 // will make it fade away. 120 // will make it fade away.
118 - (void)cancelAlert; 121 - (void)cancelAlert;
119 122
120 @end 123 @end
121 124
122 // The TabController |controller_| is not the only owner of this view. If the 125 // The TabController |controller_| is not the only owner of this view. If the
123 // controller is released before this view, then we could be hanging onto a 126 // controller is released before this view, then we could be hanging onto a
124 // garbage pointer. To prevent this, the TabController uses this interface to 127 // garbage pointer. To prevent this, the TabController uses this interface to
125 // clear the |controller_| pointer when it is dying. 128 // clear the |controller_| pointer when it is dying.
126 @interface TabView (TabControllerInterface) 129 @interface TabView (TabControllerInterface)
127 - (void)setController:(TabController*)controller; 130 - (void)setController:(TabController*)controller;
128 @end 131 @end
129 132
130 #endif // CHROME_BROWSER_COCOA_TAB_VIEW_H_ 133 #endif // CHROME_BROWSER_COCOA_TAB_VIEW_H_
OLDNEW
« no previous file with comments | « chrome/browser/cocoa/tab_strip_controller.mm ('k') | chrome/browser/cocoa/tab_view.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698