| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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_EXTENSIONS_BROWSER_ACTIONS_CONTAINER_VIEW_ | 5 #ifndef CHROME_BROWSER_UI_COCOA_EXTENSIONS_BROWSER_ACTIONS_CONTAINER_VIEW_ |
| 6 #define CHROME_BROWSER_UI_COCOA_EXTENSIONS_BROWSER_ACTIONS_CONTAINER_VIEW_ | 6 #define CHROME_BROWSER_UI_COCOA_EXTENSIONS_BROWSER_ACTIONS_CONTAINER_VIEW_ |
| 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 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 111 // The size delegate, if any. | 111 // The size delegate, if any. |
| 112 // Weak; delegate is responsible for adding/removing itself. | 112 // Weak; delegate is responsible for adding/removing itself. |
| 113 BrowserActionsContainerViewSizeDelegate* sizeDelegate_; | 113 BrowserActionsContainerViewSizeDelegate* sizeDelegate_; |
| 114 | 114 |
| 115 base::scoped_nsobject<NSViewAnimation> resizeAnimation_; | 115 base::scoped_nsobject<NSViewAnimation> resizeAnimation_; |
| 116 } | 116 } |
| 117 | 117 |
| 118 // Sets whether or not tracking (for mouseEntered events) is enabled. | 118 // Sets whether or not tracking (for mouseEntered events) is enabled. |
| 119 - (void)setTrackingEnabled:(BOOL)enabled; | 119 - (void)setTrackingEnabled:(BOOL)enabled; |
| 120 | 120 |
| 121 // Returns true if tracking is currently enabled. |
| 122 - (BOOL)trackingEnabled; |
| 123 |
| 121 // Sets whether or not the container is the overflow container. | 124 // Sets whether or not the container is the overflow container. |
| 122 - (void)setIsOverflow:(BOOL)isOverflow; | 125 - (void)setIsOverflow:(BOOL)isOverflow; |
| 123 | 126 |
| 124 // Sets whether or not the container is highlighting. | 127 // Sets whether or not the container is highlighting. |
| 125 - (void)setHighlight:(scoped_ptr<ui::NinePartImageIds>)highlight; | 128 - (void)setHighlight:(scoped_ptr<ui::NinePartImageIds>)highlight; |
| 126 | 129 |
| 130 // Reeturns true if the container is currently highlighting. |
| 131 - (BOOL)isHighlighting; |
| 132 |
| 127 // Resizes the container to the given ideal width, optionally animating. | 133 // Resizes the container to the given ideal width, optionally animating. |
| 128 - (void)resizeToWidth:(CGFloat)width animate:(BOOL)animate; | 134 - (void)resizeToWidth:(CGFloat)width animate:(BOOL)animate; |
| 129 | 135 |
| 130 // Returns the frame of the container after the running animation has finished. | 136 // Returns the frame of the container after the running animation has finished. |
| 131 // If no animation is running, returns the container's current frame. | 137 // If no animation is running, returns the container's current frame. |
| 132 - (NSRect)animationEndFrame; | 138 - (NSRect)animationEndFrame; |
| 133 | 139 |
| 134 // Returns true if the view is animating. | 140 // Returns true if the view is animating. |
| 135 - (BOOL)isAnimating; | 141 - (BOOL)isAnimating; |
| 136 | 142 |
| 137 // Stops any animation in progress. | 143 // Stops any animation in progress. |
| 138 - (void)stopAnimation; | 144 - (void)stopAnimation; |
| 139 | 145 |
| 140 @property(nonatomic) BOOL canDragLeft; | 146 @property(nonatomic) BOOL canDragLeft; |
| 141 @property(nonatomic) BOOL canDragRight; | 147 @property(nonatomic) BOOL canDragRight; |
| 142 @property(nonatomic) BOOL grippyPinned; | 148 @property(nonatomic) BOOL grippyPinned; |
| 143 @property(nonatomic) CGFloat maxDesiredWidth; | 149 @property(nonatomic) CGFloat maxDesiredWidth; |
| 144 @property(readonly, nonatomic) BOOL userIsResizing; | 150 @property(readonly, nonatomic) BOOL userIsResizing; |
| 145 @property(nonatomic) BrowserActionsContainerViewSizeDelegate* delegate; | 151 @property(nonatomic) BrowserActionsContainerViewSizeDelegate* delegate; |
| 146 | 152 |
| 147 @end | 153 @end |
| 148 | 154 |
| 149 #endif // CHROME_BROWSER_UI_COCOA_EXTENSIONS_BROWSER_ACTIONS_CONTAINER_VIEW_ | 155 #endif // CHROME_BROWSER_UI_COCOA_EXTENSIONS_BROWSER_ACTIONS_CONTAINER_VIEW_ |
| OLD | NEW |