| 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 12 matching lines...) Expand all Loading... |
| 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 |
| 33 // CrApplicationEventHookProtocol in the bookmark bar controller). | 33 // CrEventHookProtocol 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 178 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 222 - (BOOL)canScrollDown; | 222 - (BOOL)canScrollDown; |
| 223 - (CGFloat)verticalScrollArrowHeight; | 223 - (CGFloat)verticalScrollArrowHeight; |
| 224 - (NSView*)visibleView; | 224 - (NSView*)visibleView; |
| 225 - (NSScrollView*)scrollView; | 225 - (NSScrollView*)scrollView; |
| 226 - (NSView*)folderView; | 226 - (NSView*)folderView; |
| 227 | 227 |
| 228 - (BookmarkButton*)buttonForDroppingOnAtPoint:(NSPoint)point; | 228 - (BookmarkButton*)buttonForDroppingOnAtPoint:(NSPoint)point; |
| 229 @end | 229 @end |
| 230 | 230 |
| 231 #endif // CHROME_BROWSER_UI_COCOA_BOOKMARKS_BOOKMARK_BAR_FOLDER_CONTROLLER_H_ | 231 #endif // CHROME_BROWSER_UI_COCOA_BOOKMARKS_BOOKMARK_BAR_FOLDER_CONTROLLER_H_ |
| OLD | NEW |