| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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 // A simple custom NSView for the bookmark bar used to prevent clicking and | 5 // A simple custom NSView for the bookmark bar used to prevent clicking and |
| 6 // dragging from moving the browser window. | 6 // dragging from moving the browser window. |
| 7 | 7 |
| 8 #ifndef CHROME_BROWSER_COCOA_BOOKMARK_BAR_VIEW_H_ | 8 #ifndef CHROME_BROWSER_COCOA_BOOKMARK_BAR_VIEW_H_ |
| 9 #define CHROME_BROWSER_COCOA_BOOKMARK_BAR_VIEW_H_ | 9 #define CHROME_BROWSER_COCOA_BOOKMARK_BAR_VIEW_H_ |
| 10 | 10 |
| 11 #import <Cocoa/Cocoa.h> | 11 #import <Cocoa/Cocoa.h> |
| 12 | 12 |
| 13 @class BookmarkBarController; | 13 @class BookmarkBarController; |
| 14 | 14 |
| 15 @interface BookmarkBarView : NSView { | 15 @interface BookmarkBarView : NSView { |
| 16 @private | 16 @private |
| 17 BOOL dropIndicatorShown_; | 17 BOOL dropIndicatorShown_; |
| 18 CGFloat dropIndicatorPosition_; // x position | 18 CGFloat dropIndicatorPosition_; // x position |
| 19 | 19 |
| 20 IBOutlet BookmarkBarController* controller_; | 20 IBOutlet BookmarkBarController* controller_; |
| 21 IBOutlet NSTextField* noItemTextfield_; | 21 IBOutlet NSTextField* noItemTextfield_; |
| 22 IBOutlet NSButton* importBookmarksButton_; | 22 IBOutlet NSButton* importBookmarksButton_; |
| 23 NSView* noItemContainer_; | 23 NSView* noItemContainer_; |
| 24 } | 24 } |
| 25 - (NSTextField*)noItemTextfield; | 25 - (NSTextField*)noItemTextfield; |
| 26 - (NSButton*)importBookmarksButton; | 26 - (NSButton*)importBookmarksButton; |
| 27 - (BookmarkBarController*)controller; | 27 - (BookmarkBarController*)controller; |
| 28 | 28 |
| 29 @property (assign, nonatomic) IBOutlet NSView* noItemContainer; | 29 @property (nonatomic, assign) IBOutlet NSView* noItemContainer; |
| 30 @end | 30 @end |
| 31 | 31 |
| 32 @interface BookmarkBarView() // TestingOrInternalAPI | 32 @interface BookmarkBarView() // TestingOrInternalAPI |
| 33 @property (readonly) BOOL dropIndicatorShown; | 33 @property (nonatomic, readonly) BOOL dropIndicatorShown; |
| 34 @property (readonly) CGFloat dropIndicatorPosition; | 34 @property (nonatomic, readonly) CGFloat dropIndicatorPosition; |
| 35 - (void)setController:(id)controller; | 35 - (void)setController:(id)controller; |
| 36 @end | 36 @end |
| 37 | 37 |
| 38 #endif // CHROME_BROWSER_COCOA_BOOKMARK_BAR_VIEW_H_ | 38 #endif // CHROME_BROWSER_COCOA_BOOKMARK_BAR_VIEW_H_ |
| OLD | NEW |