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

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

Issue 1857093002: [Mac] Fix tabstrip background opacity problem when dragging tabs. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rework tab dragging detection. Created 4 years, 8 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
« no previous file with comments | « no previous file | chrome/browser/ui/cocoa/tabs/tab_strip_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_STRIP_VIEW_H_ 5 #ifndef CHROME_BROWSER_UI_COCOA_TABS_TAB_STRIP_VIEW_H_
6 #define CHROME_BROWSER_UI_COCOA_TABS_TAB_STRIP_VIEW_H_ 6 #define CHROME_BROWSER_UI_COCOA_TABS_TAB_STRIP_VIEW_H_
7 7
8 #import <Cocoa/Cocoa.h> 8 #import <Cocoa/Cocoa.h>
9 9
10 #include "base/mac/scoped_nsobject.h" 10 #include "base/mac/scoped_nsobject.h"
(...skipping 14 matching lines...) Expand all
25 25
26 // Handles being a drag-and-drop target. 26 // Handles being a drag-and-drop target.
27 base::scoped_nsobject<URLDropTargetHandler> dropHandler_; 27 base::scoped_nsobject<URLDropTargetHandler> dropHandler_;
28 28
29 base::scoped_nsobject<NewTabButton> newTabButton_; 29 base::scoped_nsobject<NewTabButton> newTabButton_;
30 30
31 // Whether the drop-indicator arrow is shown, and if it is, the coordinate of 31 // Whether the drop-indicator arrow is shown, and if it is, the coordinate of
32 // its tip. 32 // its tip.
33 BOOL dropArrowShown_; 33 BOOL dropArrowShown_;
34 NSPoint dropArrowPosition_; 34 NSPoint dropArrowPosition_;
35 BOOL inATabDraggingOverlayWindow_;
35 } 36 }
36 37
37 @property(assign, nonatomic) BOOL dropArrowShown; 38 @property(assign, nonatomic) BOOL dropArrowShown;
38 @property(assign, nonatomic) NSPoint dropArrowPosition; 39 @property(assign, nonatomic) NSPoint dropArrowPosition;
40 @property(assign, nonatomic) BOOL inATabDraggingOverlayWindow;
39 41
40 // Name starts with "get" because methods staring with "new" return retained 42 // Name starts with "get" because methods staring with "new" return retained
41 // objects according to Cocoa's create rule. 43 // objects according to Cocoa's create rule.
42 - (NewTabButton*)getNewTabButton; 44 - (NewTabButton*)getNewTabButton;
43 45
44 @end 46 @end
45 47
46 // Interface for the controller to set and clear the weak reference to itself. 48 // Interface for the controller to set and clear the weak reference to itself.
47 @interface TabStripView (TabStripControllerInterface) 49 @interface TabStripView (TabStripControllerInterface)
48 - (void)setController:(TabStripController*)controller; 50 - (void)setController:(TabStripController*)controller;
49 @end 51 @end
50 52
51 // Protected methods subclasses can override to alter behavior. Clients should 53 // Protected methods subclasses can override to alter behavior. Clients should
52 // not call these directly. 54 // not call these directly.
53 @interface TabStripView (Protected) 55 @interface TabStripView (Protected)
54 - (void)drawBottomBorder:(NSRect)bounds; 56 - (void)drawBottomBorder:(NSRect)bounds;
55 - (BOOL)doubleClickMinimizesWindow; 57 - (BOOL)doubleClickMinimizesWindow;
56 @end 58 @end
57 59
58 @interface TabStripView (TestingAPI) 60 @interface TabStripView (TestingAPI)
59 - (void)setNewTabButton:(NewTabButton*)button; 61 - (void)setNewTabButton:(NewTabButton*)button;
60 @end 62 @end
61 63
62 #endif // CHROME_BROWSER_UI_COCOA_TABS_TAB_STRIP_VIEW_H_ 64 #endif // CHROME_BROWSER_UI_COCOA_TABS_TAB_STRIP_VIEW_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/ui/cocoa/tabs/tab_strip_view.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698