| 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 // | |
| 5 // A simple custom NSView for the bookmark bar used to prevent clicking and | |
| 6 // dragging from moving the browser window. | |
| 7 | 4 |
| 8 #ifndef CHROME_BROWSER_UI_COCOA_BOOKMARKS_BOOKMARK_BAR_VIEW_COCOA_H_ | 5 #ifndef CHROME_BROWSER_UI_COCOA_BOOKMARKS_BOOKMARK_BAR_VIEW_COCOA_H_ |
| 9 #define CHROME_BROWSER_UI_COCOA_BOOKMARKS_BOOKMARK_BAR_VIEW_COCOA_H_ | 6 #define CHROME_BROWSER_UI_COCOA_BOOKMARKS_BOOKMARK_BAR_VIEW_COCOA_H_ |
| 10 | 7 |
| 11 #import <Cocoa/Cocoa.h> | 8 #import <Cocoa/Cocoa.h> |
| 12 | 9 |
| 13 #include "base/mac/scoped_nsobject.h" | 10 #include "base/mac/scoped_nsobject.h" |
| 14 | 11 |
| 15 @class BookmarkBarController; | 12 @class BookmarkBarController; |
| 16 | 13 |
| (...skipping 12 matching lines...) Expand all Loading... |
| 29 - (NSView*)noItemContainer; | 26 - (NSView*)noItemContainer; |
| 30 | 27 |
| 31 - (instancetype)initWithController:(BookmarkBarController*)controller | 28 - (instancetype)initWithController:(BookmarkBarController*)controller |
| 32 frame:(NSRect)frame; | 29 frame:(NSRect)frame; |
| 33 - (void)registerForNotificationsAndDraggedTypes; | 30 - (void)registerForNotificationsAndDraggedTypes; |
| 34 | 31 |
| 35 // Exposed so the controller can nil itself out. | 32 // Exposed so the controller can nil itself out. |
| 36 @property(nonatomic, assign) BookmarkBarController* controller; | 33 @property(nonatomic, assign) BookmarkBarController* controller; |
| 37 @end | 34 @end |
| 38 | 35 |
| 36 // A simple custom NSView for the bookmark bar used to prevent clicking and |
| 37 // dragging from moving the browser window. |
| 39 @interface BookmarkBarView() // TestingOrInternalAPI | 38 @interface BookmarkBarView() // TestingOrInternalAPI |
| 40 @property(nonatomic, readonly) BOOL dropIndicatorShown; | 39 @property(nonatomic, readonly) BOOL dropIndicatorShown; |
| 41 @property(nonatomic, readonly) CGFloat dropIndicatorPosition; | 40 @property(nonatomic, readonly) CGFloat dropIndicatorPosition; |
| 42 @end | 41 @end |
| 43 | 42 |
| 44 #endif // CHROME_BROWSER_UI_COCOA_BOOKMARKS_BOOKMARK_BAR_VIEW_COCOA_H_ | 43 #endif // CHROME_BROWSER_UI_COCOA_BOOKMARKS_BOOKMARK_BAR_VIEW_COCOA_H_ |
| OLD | NEW |