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

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

Issue 17593006: mac: Update clients of scoped_nsobject.h. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: iwyu, scoped_nsprotocol 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
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 #include <ApplicationServices/ApplicationServices.h>
8 #import <Cocoa/Cocoa.h> 9 #import <Cocoa/Cocoa.h>
9 #include <ApplicationServices/ApplicationServices.h>
10 10
11 #include "base/mac/scoped_cftyperef.h" 11 #include "base/mac/scoped_cftyperef.h"
12 #include "base/memory/scoped_nsobject.h" 12 #include "base/mac/scoped_nsobject.h"
13 #import "chrome/browser/ui/cocoa/hover_close_button.h" 13 #import "chrome/browser/ui/cocoa/hover_close_button.h"
14 14
15 namespace tabs { 15 namespace tabs {
16 16
17 // Nomenclature: 17 // Nomenclature:
18 // Tabs _glow_ under two different circumstances, when they are _hovered_ (by 18 // Tabs _glow_ under two different circumstances, when they are _hovered_ (by
19 // the mouse) and when they are _alerted_ (to show that the tab's title has 19 // the mouse) and when they are _alerted_ (to show that the tab's title has
20 // changed). 20 // changed).
21 21
22 // The state of alerting (to show a title change on an unselected, pinned tab). 22 // The state of alerting (to show a title change on an unselected, pinned tab).
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 NSTimeInterval lastGlowUpdate_; // Time either glow was last updated. 63 NSTimeInterval lastGlowUpdate_; // Time either glow was last updated.
64 64
65 NSPoint hoverPoint_; // Current location of hover in view coords. 65 NSPoint hoverPoint_; // Current location of hover in view coords.
66 66
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 base::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::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;
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
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

Powered by Google App Engine
This is Rietveld 408576698