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

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

Issue 165499: Updates to clean up default theme and add hover states (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: '' 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/cocoa/tab_strip_view.mm ('k') | chrome/browser/cocoa/tab_view.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/cocoa/tab_view.h
===================================================================
--- chrome/browser/cocoa/tab_view.h (revision 24798)
+++ chrome/browser/cocoa/tab_view.h (working copy)
@@ -24,7 +24,7 @@
IBOutlet NSButton* closeButton_;
// Tracking area for close button mouseover images.
- scoped_nsobject<NSTrackingArea> trackingArea_;
+ scoped_nsobject<NSTrackingArea> closeTrackingArea_;
// All following variables are valid for the duration of a drag.
// These are released on mouseUp:
@@ -32,6 +32,10 @@
BOOL tabWasDragged_; // Has the tab been dragged?
BOOL draggingWithinTabStrip_; // Did drag stay in the current tab strip?
BOOL chromeIsVisible_;
+ BOOL isMouseInside_; // Is the mouse hovering over?
+ CGFloat hoverAlpha_; // How strong the mouse hover state is.
+ NSTimeInterval lastHoverUpdate_; // Time the hover value was last updated.
+ NSPoint hoverPoint_; // Current location of hover in view coords.
NSTimeInterval tearTime_; // Time since tear happened
NSPoint tearOrigin_; // Origin of the tear rect
@@ -51,6 +55,7 @@
NSCellStateValue state_;
}
@property(assign) NSCellStateValue state;
+@property(assign, nonatomic)CGFloat hoverAlpha;
@end
#endif // CHROME_BROWSER_COCOA_TAB_VIEW_H_
« no previous file with comments | « chrome/browser/cocoa/tab_strip_view.mm ('k') | chrome/browser/cocoa/tab_view.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698