| OLD | NEW |
| 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 15 matching lines...) Expand all Loading... |
| 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 BOOL inATabDraggingOverlayWindow_; |
| 36 BOOL visualEffectsDisabledForFullscreen_; |
| 36 } | 37 } |
| 37 | 38 |
| 38 @property(assign, nonatomic) BOOL dropArrowShown; | 39 @property(assign, nonatomic) BOOL dropArrowShown; |
| 39 @property(assign, nonatomic) NSPoint dropArrowPosition; | 40 @property(assign, nonatomic) NSPoint dropArrowPosition; |
| 40 @property(assign, nonatomic) BOOL inATabDraggingOverlayWindow; | 41 @property(assign, nonatomic) BOOL inATabDraggingOverlayWindow; |
| 41 | 42 |
| 42 // Name starts with "get" because methods staring with "new" return retained | 43 // Name starts with "get" because methods staring with "new" return retained |
| 43 // objects according to Cocoa's create rule. | 44 // objects according to Cocoa's create rule. |
| 44 - (NewTabButton*)getNewTabButton; | 45 - (NewTabButton*)getNewTabButton; |
| 45 | 46 |
| 47 // Leaving visual effects enabled when fullscreen results in higher power |
| 48 // consumption. This is used to disable effects when fullscreen. |
| 49 - (void)setVisualEffectsDisabledForFullscreen:(BOOL)fullscreen; |
| 46 @end | 50 @end |
| 47 | 51 |
| 48 // Interface for the controller to set and clear the weak reference to itself. | 52 // Interface for the controller to set and clear the weak reference to itself. |
| 49 @interface TabStripView (TabStripControllerInterface) | 53 @interface TabStripView (TabStripControllerInterface) |
| 50 - (void)setController:(TabStripController*)controller; | 54 - (void)setController:(TabStripController*)controller; |
| 51 @end | 55 @end |
| 52 | 56 |
| 53 // Protected methods subclasses can override to alter behavior. Clients should | 57 // Protected methods subclasses can override to alter behavior. Clients should |
| 54 // not call these directly. | 58 // not call these directly. |
| 55 @interface TabStripView (Protected) | 59 @interface TabStripView (Protected) |
| 56 - (void)drawBottomBorder:(NSRect)bounds; | 60 - (void)drawBottomBorder:(NSRect)bounds; |
| 57 - (BOOL)doubleClickMinimizesWindow; | 61 - (BOOL)doubleClickMinimizesWindow; |
| 58 @end | 62 @end |
| 59 | 63 |
| 60 @interface TabStripView (TestingAPI) | 64 @interface TabStripView (TestingAPI) |
| 61 - (void)setNewTabButton:(NewTabButton*)button; | 65 - (void)setNewTabButton:(NewTabButton*)button; |
| 62 @end | 66 @end |
| 63 | 67 |
| 64 #endif // CHROME_BROWSER_UI_COCOA_TABS_TAB_STRIP_VIEW_H_ | 68 #endif // CHROME_BROWSER_UI_COCOA_TABS_TAB_STRIP_VIEW_H_ |
| OLD | NEW |