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

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

Issue 16917011: mac: Replace base::mac::ScopedCFTypeRef with base::ScopedCFTypeRef. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: with fixed off-by-1 in git-clang-format Created 7 years, 6 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/ui/cocoa/tabpose_window.mm ('k') | chrome/browser/ui/cocoa/tabs/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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_UI_COCOA_TABS_TAB_VIEW_H_ 5 #ifndef CHROME_BROWSER_UI_COCOA_TABS_TAB_VIEW_H_
6 #define CHROME_BROWSER_UI_COCOA_TABS_TAB_VIEW_H_ 6 #define CHROME_BROWSER_UI_COCOA_TABS_TAB_VIEW_H_
7 7
8 #import <Cocoa/Cocoa.h> 8 #import <Cocoa/Cocoa.h>
9 #include <ApplicationServices/ApplicationServices.h> 9 #include <ApplicationServices/ApplicationServices.h>
10 10
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 // The location of the current mouseDown event in window coordinates. 67 // The location of the current mouseDown event in window coordinates.
68 NSPoint mouseDownPoint_; 68 NSPoint mouseDownPoint_;
69 69
70 NSCellStateValue state_; 70 NSCellStateValue state_;
71 71
72 // The tool tip text for this tab view. 72 // The tool tip text for this tab view.
73 scoped_nsobject<NSString> toolTipText_; 73 scoped_nsobject<NSString> toolTipText_;
74 74
75 // A one-element mask image cache. This cache makes drawing roughly 16% 75 // A one-element mask image cache. This cache makes drawing roughly 16%
76 // faster. 76 // faster.
77 base::mac::ScopedCFTypeRef<CGImageRef> maskCache_; 77 base::ScopedCFTypeRef<CGImageRef> maskCache_;
78 CGFloat maskCacheWidth_; 78 CGFloat maskCacheWidth_;
79 CGFloat maskCacheScale_; 79 CGFloat maskCacheScale_;
80 } 80 }
81 81
82 @property(assign, nonatomic) NSCellStateValue state; 82 @property(assign, nonatomic) NSCellStateValue state;
83 @property(assign, nonatomic) CGFloat hoverAlpha; 83 @property(assign, nonatomic) CGFloat hoverAlpha;
84 @property(assign, nonatomic) CGFloat alertAlpha; 84 @property(assign, nonatomic) CGFloat alertAlpha;
85 85
86 // Determines if the tab is in the process of animating closed. It may still 86 // Determines if the tab is in the process of animating closed. It may still
87 // be visible on-screen, but should not respond to/initiate any events. Upon 87 // be visible on-screen, but should not respond to/initiate any events. Upon
(...skipping 27 matching lines...) Expand all
115 115
116 // The TabController |controller_| is not the only owner of this view. If the 116 // The TabController |controller_| is not the only owner of this view. If the
117 // controller is released before this view, then we could be hanging onto a 117 // controller is released before this view, then we could be hanging onto a
118 // garbage pointer. To prevent this, the TabController uses this interface to 118 // garbage pointer. To prevent this, the TabController uses this interface to
119 // clear the |controller_| pointer when it is dying. 119 // clear the |controller_| pointer when it is dying.
120 @interface TabView (TabControllerInterface) 120 @interface TabView (TabControllerInterface)
121 - (void)setController:(TabController*)controller; 121 - (void)setController:(TabController*)controller;
122 @end 122 @end
123 123
124 #endif // CHROME_BROWSER_UI_COCOA_TABS_TAB_VIEW_H_ 124 #endif // CHROME_BROWSER_UI_COCOA_TABS_TAB_VIEW_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/cocoa/tabpose_window.mm ('k') | chrome/browser/ui/cocoa/tabs/tab_view.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698