| 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 #import <Cocoa/Cocoa.h> | 5 #import <Cocoa/Cocoa.h> |
| 6 | 6 |
| 7 @protocol BookmarkButtonControllerProtocol; | 7 @protocol BookmarkButtonControllerProtocol; |
| 8 @class BookmarkBarFolderController; | 8 @class BookmarkBarFolderController; |
| 9 | 9 |
| 10 // Main content view for a bookmark bar folder "menu" window. This is | 10 // Main content view for a bookmark bar folder "menu" window. This is |
| 11 // logically similar to a BookmarkBarView but is oriented vertically. | 11 // logically similar to a BookmarkBarView but is oriented vertically. |
| 12 @interface BookmarkBarFolderView : NSView { | 12 @interface BookmarkBarFolderView : NSView { |
| 13 @private | 13 @private |
| 14 BOOL inDrag_; // Are we in the middle of a drag? | 14 BOOL inDrag_; // Are we in the middle of a drag? |
| 15 BOOL dropIndicatorShown_; | 15 BOOL dropIndicatorShown_; |
| 16 CGFloat dropIndicatorPosition_; // y position | 16 CGFloat dropIndicatorPosition_; // y position |
| 17 // The following |controller_| is weak; used for testing only. See the imple- | 17 // The following |controller_| is weak; used for testing only. See the imple- |
| 18 // mentation comment for - (id<BookmarkButtonControllerProtocol>)controller. | 18 // mentation comment for - (id<BookmarkButtonControllerProtocol>)controller. |
| 19 BookmarkBarFolderController* controller_; | 19 BookmarkBarFolderController* controller_; |
| 20 } | 20 } |
| 21 // Return the controller that owns this view. | 21 // Return the controller that owns this view. |
| 22 - (id<BookmarkButtonControllerProtocol>)controller; | 22 - (id<BookmarkButtonControllerProtocol>)controller; |
| 23 @end | 23 @end |
| 24 | 24 |
| 25 @interface BookmarkBarFolderView() // TestingOrInternalAPI | 25 @interface BookmarkBarFolderView() // TestingOrInternalAPI |
| 26 @property (assign) BOOL dropIndicatorShown; | 26 @property(assign) BOOL dropIndicatorShown; |
| 27 @property (readonly) CGFloat dropIndicatorPosition; | 27 @property(readonly) CGFloat dropIndicatorPosition; |
| 28 - (void)setController:(id)controller; | 28 - (void)setController:(id)controller; |
| 29 @end | 29 @end |
| OLD | NEW |