| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 id<BookmarkButtonControllerProtocol> controller_; | 19 id<BookmarkButtonControllerProtocol> controller_; |
| 20 } | 20 } |
| 21 @property(readonly, assign) id<BookmarkButtonControllerProtocol> controller; | |
| 22 @end | 21 @end |
| 23 | |
| 24 @interface BookmarkBarFolderView() // TestingOrInternalAPI | |
| 25 @property(assign) BOOL dropIndicatorShown; | |
| 26 @property(readonly) CGFloat dropIndicatorPosition; | |
| 27 @property(assign) id<BookmarkButtonControllerProtocol> controller; | |
| 28 @end | |
| OLD | NEW |