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

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

Issue 8313008: Delete some unused code found by the clang static analyzer. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 9 years, 2 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/tabs/tab_strip_drag_controller.mm ('k') | no next file » | 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 #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 30 matching lines...) Expand all
41 41
42 @interface TabView : BackgroundGradientView { 42 @interface TabView : BackgroundGradientView {
43 @private 43 @private
44 IBOutlet TabController* controller_; 44 IBOutlet TabController* controller_;
45 // TODO(rohitrao): Add this button to a CoreAnimation layer so we can fade it 45 // TODO(rohitrao): Add this button to a CoreAnimation layer so we can fade it
46 // in and out on mouseovers. 46 // in and out on mouseovers.
47 IBOutlet HoverCloseButton* closeButton_; 47 IBOutlet HoverCloseButton* closeButton_;
48 48
49 BOOL closing_; 49 BOOL closing_;
50 50
51 // Tracking area for close button mouseover images.
52 scoped_nsobject<NSTrackingArea> closeTrackingArea_;
53
54 BOOL isMouseInside_; // Is the mouse hovering over? 51 BOOL isMouseInside_; // Is the mouse hovering over?
55 tabs::AlertState alertState_; 52 tabs::AlertState alertState_;
56 53
57 CGFloat hoverAlpha_; // How strong the hover glow is. 54 CGFloat hoverAlpha_; // How strong the hover glow is.
58 NSTimeInterval hoverHoldEndTime_; // When the hover glow will begin dimming. 55 NSTimeInterval hoverHoldEndTime_; // When the hover glow will begin dimming.
59 56
60 CGFloat alertAlpha_; // How strong the alert glow is. 57 CGFloat alertAlpha_; // How strong the alert glow is.
61 NSTimeInterval alertHoldEndTime_; // When the hover glow will begin dimming. 58 NSTimeInterval alertHoldEndTime_; // When the hover glow will begin dimming.
62 59
63 NSTimeInterval lastGlowUpdate_; // Time either glow was last updated. 60 NSTimeInterval lastGlowUpdate_; // Time either glow was last updated.
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
95 92
96 // The TabController |controller_| is not the only owner of this view. If the 93 // The TabController |controller_| is not the only owner of this view. If the
97 // controller is released before this view, then we could be hanging onto a 94 // controller is released before this view, then we could be hanging onto a
98 // garbage pointer. To prevent this, the TabController uses this interface to 95 // garbage pointer. To prevent this, the TabController uses this interface to
99 // clear the |controller_| pointer when it is dying. 96 // clear the |controller_| pointer when it is dying.
100 @interface TabView (TabControllerInterface) 97 @interface TabView (TabControllerInterface)
101 - (void)setController:(TabController*)controller; 98 - (void)setController:(TabController*)controller;
102 @end 99 @end
103 100
104 #endif // CHROME_BROWSER_UI_COCOA_TABS_TAB_VIEW_H_ 101 #endif // CHROME_BROWSER_UI_COCOA_TABS_TAB_VIEW_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/cocoa/tabs/tab_strip_drag_controller.mm ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698