| 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 #ifndef CHROME_BROWSER_UI_COCOA_BOOKMARKS_BOOKMARK_BAR_FOLDER_CONTROLLER_H_ | 5 #ifndef CHROME_BROWSER_UI_COCOA_BOOKMARKS_BOOKMARK_BAR_FOLDER_CONTROLLER_H_ |
| 6 #define CHROME_BROWSER_UI_COCOA_BOOKMARKS_BOOKMARK_BAR_FOLDER_CONTROLLER_H_ | 6 #define CHROME_BROWSER_UI_COCOA_BOOKMARKS_BOOKMARK_BAR_FOLDER_CONTROLLER_H_ |
| 7 | 7 |
| 8 #import <Cocoa/Cocoa.h> | 8 #import <Cocoa/Cocoa.h> |
| 9 | 9 |
| 10 #include "base/mac/scoped_nsobject.h" | 10 #include "base/mac/scoped_nsobject.h" |
| 11 #import "chrome/browser/ui/cocoa/bookmarks/bookmark_button.h" | 11 #import "chrome/browser/ui/cocoa/bookmarks/bookmark_button.h" |
| 12 #import "ui/base/cocoa/tracking_area.h" | 12 #import "ui/base/cocoa/tracking_area.h" |
| 13 | 13 |
| 14 class Profile; | 14 class Profile; |
| 15 | 15 |
| 16 @class BookmarkBarController; | 16 @class BookmarkBarController; |
| 17 @class BookmarkBarFolderView; | 17 @class BookmarkBarFolderView; |
| 18 @class BookmarkBarFolderHoverState; | 18 @class BookmarkBarFolderHoverState; |
| 19 @class BookmarkBarFolderWindow; | 19 @class BookmarkBarFolderWindow; |
| 20 @class BookmarkBarFolderWindowContentView; | 20 @class BookmarkBarFolderWindowContentView; |
| 21 @class BookmarkFolderTarget; | 21 @class BookmarkFolderTarget; |
| 22 | 22 |
| 23 namespace bookmarks { | |
| 24 | |
| 25 // The padding between the top of the folder menu and the topmost button. | |
| 26 CGFloat BookmarkTopVerticalPadding(); | |
| 27 | |
| 28 // The padding between the bottom of the folder menu and the bottommost button. | |
| 29 CGFloat BookmarkBottomVerticalPadding(); | |
| 30 | |
| 31 } // bookmarks | |
| 32 | |
| 33 // A controller for the pop-up windows from bookmark folder buttons | 23 // A controller for the pop-up windows from bookmark folder buttons |
| 34 // which look sort of like menus. | 24 // which look sort of like menus. |
| 35 @interface BookmarkBarFolderController : | 25 @interface BookmarkBarFolderController : |
| 36 NSWindowController<BookmarkButtonDelegate, | 26 NSWindowController<BookmarkButtonDelegate, |
| 37 BookmarkButtonControllerProtocol> { | 27 BookmarkButtonControllerProtocol> { |
| 38 @private | 28 @private |
| 39 // The button whose click opened us. | 29 // The button whose click opened us. |
| 40 base::scoped_nsobject<BookmarkButton> parentButton_; | 30 base::scoped_nsobject<BookmarkButton> parentButton_; |
| 41 | 31 |
| 42 // Bookmark bar folder controller chains are torn down in two ways: | 32 // Bookmark bar folder controller chains are torn down in two ways: |
| (...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 216 - (NSView*)visibleView; | 206 - (NSView*)visibleView; |
| 217 - (NSScrollView*)scrollView; | 207 - (NSScrollView*)scrollView; |
| 218 - (NSView*)folderView; | 208 - (NSView*)folderView; |
| 219 | 209 |
| 220 - (IBAction)openBookmarkFolderFromButton:(id)sender; | 210 - (IBAction)openBookmarkFolderFromButton:(id)sender; |
| 221 | 211 |
| 222 - (BookmarkButton*)buttonForDroppingOnAtPoint:(NSPoint)point; | 212 - (BookmarkButton*)buttonForDroppingOnAtPoint:(NSPoint)point; |
| 223 @end | 213 @end |
| 224 | 214 |
| 225 #endif // CHROME_BROWSER_UI_COCOA_BOOKMARKS_BOOKMARK_BAR_FOLDER_CONTROLLER_H_ | 215 #endif // CHROME_BROWSER_UI_COCOA_BOOKMARKS_BOOKMARK_BAR_FOLDER_CONTROLLER_H_ |
| OLD | NEW |