| 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. |
| (...skipping 25 matching lines...) Expand all Loading... |
| 36 | 36 |
| 37 // The maximum width of the container. | 37 // The maximum width of the container. |
| 38 CGFloat maxWidth_; | 38 CGFloat maxWidth_; |
| 39 | 39 |
| 40 // Whether there is a border to the right of the last Browser Action. | 40 // Whether there is a border to the right of the last Browser Action. |
| 41 BOOL rightBorderShown_; | 41 BOOL rightBorderShown_; |
| 42 | 42 |
| 43 // Whether the container is currently being resized by the user. | 43 // Whether the container is currently being resized by the user. |
| 44 BOOL userIsResizing_; | 44 BOOL userIsResizing_; |
| 45 | 45 |
| 46 // Whether the user can resize this at all. Resizing is disabled in incognito | 46 // Whether the user can resize this at all. Resizing is disabled in incognito |
| 47 // mode since any changes done in incognito mode are not saved anyway, and | 47 // mode since any changes done in incognito mode are not saved anyway, and |
| 48 // also to avoid a crash (http://crbug.com/42848). | 48 // also to avoid a crash. http://crbug.com/42848 |
| 49 BOOL resizable_; | 49 BOOL resizable_; |
| 50 | 50 |
| 51 // Whether the user is allowed to drag the grippy to the left. NO if all | 51 // Whether the user is allowed to drag the grippy to the left. NO if all |
| 52 // extensions are shown or the location bar has hit its minimum width (handled | 52 // extensions are shown or the location bar has hit its minimum width (handled |
| 53 // within toolbar_controller.mm). | 53 // within toolbar_controller.mm). |
| 54 BOOL canDragLeft_; | 54 BOOL canDragLeft_; |
| 55 | 55 |
| 56 // Whether the user is allowed to drag the grippy to the right. NO if all | 56 // Whether the user is allowed to drag the grippy to the right. NO if all |
| 57 // extensions are hidden. | 57 // extensions are hidden. |
| 58 BOOL canDragRight_; | 58 BOOL canDragRight_; |
| (...skipping 19 matching lines...) Expand all 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 |