| 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 // 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 NSString* const 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 NSString* const 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 NSString* const kBrowserActionGrippyDragFinishedNotification; | 17 extern NSString* const kBrowserActionGrippyDragFinishedNotification; |
| 18 | 18 |
| 19 // Sent before the dragging will resize the container. |
| 20 extern NSString* const kBrowserActionGrippyWillDragNotification; |
| 21 |
| 22 // Key which is used to notify the translation with delta. |
| 23 extern NSString* const kTranslationWithDelta; |
| 24 |
| 19 // The view that encompasses the Browser Action buttons in the toolbar and | 25 // The view that encompasses the Browser Action buttons in the toolbar and |
| 20 // provides mechanisms for resizing. | 26 // provides mechanisms for resizing. |
| 21 @interface BrowserActionsContainerView : NSView { | 27 @interface BrowserActionsContainerView : NSView { |
| 22 @private | 28 @private |
| 23 // The frame encompasing the grippy used for resizing the container. | 29 // The frame encompasing the grippy used for resizing the container. |
| 24 NSRect grippyRect_; | 30 NSRect grippyRect_; |
| 25 | 31 |
| 26 // The end frame of the animation currently running for this container or | 32 // The end frame of the animation currently running for this container or |
| 27 // NSZeroRect if none is in progress. | 33 // NSZeroRect if none is in progress. |
| 28 NSRect animationEndFrame_; | 34 NSRect animationEndFrame_; |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 74 @property(nonatomic) BOOL canDragLeft; | 80 @property(nonatomic) BOOL canDragLeft; |
| 75 @property(nonatomic) BOOL canDragRight; | 81 @property(nonatomic) BOOL canDragRight; |
| 76 @property(nonatomic) BOOL grippyPinned; | 82 @property(nonatomic) BOOL grippyPinned; |
| 77 @property(nonatomic,getter=isResizable) BOOL resizable; | 83 @property(nonatomic,getter=isResizable) BOOL resizable; |
| 78 @property(nonatomic) CGFloat maxWidth; | 84 @property(nonatomic) CGFloat maxWidth; |
| 79 @property(readonly, nonatomic) BOOL userIsResizing; | 85 @property(readonly, nonatomic) BOOL userIsResizing; |
| 80 | 86 |
| 81 @end | 87 @end |
| 82 | 88 |
| 83 #endif // CHROME_BROWSER_UI_COCOA_EXTENSIONS_BROWSER_ACTIONS_CONTAINER_VIEW_ | 89 #endif // CHROME_BROWSER_UI_COCOA_EXTENSIONS_BROWSER_ACTIONS_CONTAINER_VIEW_ |
| OLD | NEW |