| 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_COCOA_EXTENSIONS_BROWSER_ACTIONS_CONTAINER_VIEW_ | 5 #ifndef CHROME_BROWSER_COCOA_EXTENSIONS_BROWSER_ACTIONS_CONTAINER_VIEW_ |
| 6 #define CHROME_BROWSER_COCOA_EXTENSIONS_BROWSER_ACTIONS_CONTAINER_VIEW_ | 6 #define CHROME_BROWSER_COCOA_EXTENSIONS_BROWSER_ACTIONS_CONTAINER_VIEW_ |
| 7 | 7 |
| 8 #import <Cocoa/Cocoa.h> | 8 #import <Cocoa/Cocoa.h> |
| 9 | 9 |
| 10 // Sent when a user-initiated drag to resize the container is initiated. | 10 // Sent when a user-initiated drag to resize the container is initiated. |
| 11 extern const NSString* kBrowserActionGrippyDragStartedNotification; | 11 extern NSString* const kBrowserActionGrippyDragStartedNotification; |
| 12 | 12 |
| 13 // Sent when a user-initiated drag is resizing the container. | 13 // Sent when a user-initiated drag is resizing the container. |
| 14 extern const NSString* kBrowserActionGrippyDraggingNotification; | 14 extern NSString* const kBrowserActionGrippyDraggingNotification; |
| 15 | 15 |
| 16 // Sent when a user-initiated drag to resize the container has finished. | 16 // Sent when a user-initiated drag to resize the container has finished. |
| 17 extern const NSString* kBrowserActionGrippyDragFinishedNotification; | 17 extern NSString* const kBrowserActionGrippyDragFinishedNotification; |
| 18 | 18 |
| 19 // The view that encompasses the Browser Action buttons in the toolbar and | 19 // The view that encompasses the Browser Action buttons in the toolbar and |
| 20 // provides mechanisms for resizing. | 20 // provides mechanisms for resizing. |
| 21 @interface BrowserActionsContainerView : NSView { | 21 @interface BrowserActionsContainerView : NSView { |
| 22 @private | 22 @private |
| 23 // The frame encompasing the grippy used for resizing the container. | 23 // The frame encompasing the grippy used for resizing the container. |
| 24 NSRect grippyRect_; | 24 NSRect grippyRect_; |
| 25 | 25 |
| 26 // The end frame of the animation currently running for this container or | 26 // The end frame of the animation currently running for this container or |
| 27 // NSZeroRect if none is in progress. | 27 // NSZeroRect if none is in progress. |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 78 @property(nonatomic) BOOL canDragRight; | 78 @property(nonatomic) BOOL canDragRight; |
| 79 @property(nonatomic) BOOL grippyPinned; | 79 @property(nonatomic) BOOL grippyPinned; |
| 80 @property(nonatomic,getter=isResizable) BOOL resizable; | 80 @property(nonatomic,getter=isResizable) BOOL resizable; |
| 81 @property(nonatomic) CGFloat maxWidth; | 81 @property(nonatomic) CGFloat maxWidth; |
| 82 @property(readonly, nonatomic) BOOL userIsResizing; | 82 @property(readonly, nonatomic) BOOL userIsResizing; |
| 83 @property(nonatomic) BOOL rightBorderShown; | 83 @property(nonatomic) BOOL rightBorderShown; |
| 84 | 84 |
| 85 @end | 85 @end |
| 86 | 86 |
| 87 #endif // CHROME_BROWSER_COCOA_EXTENSIONS_BROWSER_ACTIONS_CONTAINER_VIEW_ | 87 #endif // CHROME_BROWSER_COCOA_EXTENSIONS_BROWSER_ACTIONS_CONTAINER_VIEW_ |
| OLD | NEW |