| 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" |
| (...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 129 CGFloat verticalScrollDelta_; | 129 CGFloat verticalScrollDelta_; |
| 130 | 130 |
| 131 // We need to know the size of the vertical scrolling arrows so we | 131 // We need to know the size of the vertical scrolling arrows so we |
| 132 // can obscure/unobscure them. | 132 // can obscure/unobscure them. |
| 133 CGFloat verticalScrollArrowHeight_; | 133 CGFloat verticalScrollArrowHeight_; |
| 134 | 134 |
| 135 // Set to YES to prevent any node animations. Useful for unit testing so that | 135 // Set to YES to prevent any node animations. Useful for unit testing so that |
| 136 // incomplete animations do not cause valgrind complaints. | 136 // incomplete animations do not cause valgrind complaints. |
| 137 BOOL ignoreAnimations_; | 137 BOOL ignoreAnimations_; |
| 138 | 138 |
| 139 // The screen to which the menu should be restricted. | |
| 140 NSScreen* screen_; | |
| 141 | |
| 142 int selectedIndex_; | 139 int selectedIndex_; |
| 143 NSString* typedPrefix_; | 140 NSString* typedPrefix_; |
| 144 | 141 |
| 145 Profile* profile_; | 142 Profile* profile_; |
| 146 } | 143 } |
| 147 | 144 |
| 148 // Designated initializer. | 145 // Designated initializer. |
| 149 - (id)initWithParentButton:(BookmarkButton*)button | 146 - (id)initWithParentButton:(BookmarkButton*)button |
| 150 parentController:(BookmarkBarFolderController*)parentController | 147 parentController:(BookmarkBarFolderController*)parentController |
| 151 barController:(BookmarkBarController*)barController | 148 barController:(BookmarkBarController*)barController |
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 206 - (NSView*)visibleView; | 203 - (NSView*)visibleView; |
| 207 - (NSScrollView*)scrollView; | 204 - (NSScrollView*)scrollView; |
| 208 - (NSView*)folderView; | 205 - (NSView*)folderView; |
| 209 | 206 |
| 210 - (IBAction)openBookmarkFolderFromButton:(id)sender; | 207 - (IBAction)openBookmarkFolderFromButton:(id)sender; |
| 211 | 208 |
| 212 - (BookmarkButton*)buttonForDroppingOnAtPoint:(NSPoint)point; | 209 - (BookmarkButton*)buttonForDroppingOnAtPoint:(NSPoint)point; |
| 213 @end | 210 @end |
| 214 | 211 |
| 215 #endif // CHROME_BROWSER_UI_COCOA_BOOKMARKS_BOOKMARK_BAR_FOLDER_CONTROLLER_H_ | 212 #endif // CHROME_BROWSER_UI_COCOA_BOOKMARKS_BOOKMARK_BAR_FOLDER_CONTROLLER_H_ |
| OLD | NEW |