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/memory/scoped_nsobject.h" | 10 #include "base/memory/scoped_nsobject.h" |
(...skipping 11 matching lines...) Expand all Loading... |
22 // which look sort of like menus. | 22 // which look sort of like menus. |
23 @interface BookmarkBarFolderController : | 23 @interface BookmarkBarFolderController : |
24 NSWindowController<BookmarkButtonDelegate, | 24 NSWindowController<BookmarkButtonDelegate, |
25 BookmarkButtonControllerProtocol, | 25 BookmarkButtonControllerProtocol, |
26 NSUserInterfaceValidations> { | 26 NSUserInterfaceValidations> { |
27 @private | 27 @private |
28 // The button whose click opened us. | 28 // The button whose click opened us. |
29 scoped_nsobject<BookmarkButton> parentButton_; | 29 scoped_nsobject<BookmarkButton> parentButton_; |
30 | 30 |
31 // Bookmark bar folder controller chains are torn down in two ways: | 31 // Bookmark bar folder controller chains are torn down in two ways: |
32 // 1. Clicking "outside" the folder (see use of | 32 // 1. Clicking "outside" the folder (see use of the NSEvent local event |
33 // CrApplicationEventHookProtocol in the bookmark bar controller). | 33 // monitor in the bookmark bar controller). |
34 // 2. Engaging a different folder (via hover over or explicit click). | 34 // 2. Engaging a different folder (via hover over or explicit click). |
35 // | 35 // |
36 // In either case, the BookmarkButtonControllerProtocol method | 36 // In either case, the BookmarkButtonControllerProtocol method |
37 // closeAllBookmarkFolders gets called. For bookmark bar folder | 37 // closeAllBookmarkFolders gets called. For bookmark bar folder |
38 // controllers, this is passed up the chain so we begin with a top | 38 // controllers, this is passed up the chain so we begin with a top |
39 // level "close". | 39 // level "close". |
40 // When any bookmark folder window closes, it necessarily tells | 40 // When any bookmark folder window closes, it necessarily tells |
41 // subcontroller windows to close (down the chain), and autoreleases | 41 // subcontroller windows to close (down the chain), and autoreleases |
42 // the controller. (Must autorelease since the controller can still | 42 // the controller. (Must autorelease since the controller can still |
43 // get delegate events such as windowDidClose). | 43 // get delegate events such as windowDidClose). |
(...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
225 - (BOOL)canScrollDown; | 225 - (BOOL)canScrollDown; |
226 - (CGFloat)verticalScrollArrowHeight; | 226 - (CGFloat)verticalScrollArrowHeight; |
227 - (NSView*)visibleView; | 227 - (NSView*)visibleView; |
228 - (NSScrollView*)scrollView; | 228 - (NSScrollView*)scrollView; |
229 - (NSView*)folderView; | 229 - (NSView*)folderView; |
230 | 230 |
231 - (BookmarkButton*)buttonForDroppingOnAtPoint:(NSPoint)point; | 231 - (BookmarkButton*)buttonForDroppingOnAtPoint:(NSPoint)point; |
232 @end | 232 @end |
233 | 233 |
234 #endif // CHROME_BROWSER_UI_COCOA_BOOKMARKS_BOOKMARK_BAR_FOLDER_CONTROLLER_H_ | 234 #endif // CHROME_BROWSER_UI_COCOA_BOOKMARKS_BOOKMARK_BAR_FOLDER_CONTROLLER_H_ |
OLD | NEW |