| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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_COCOA_BOOKMARK_BAR_CONTROLLER_H_ | 5 #ifndef CHROME_BROWSER_COCOA_BOOKMARK_BAR_CONTROLLER_H_ |
| 6 #define CHROME_BROWSER_COCOA_BOOKMARK_BAR_CONTROLLER_H_ | 6 #define CHROME_BROWSER_COCOA_BOOKMARK_BAR_CONTROLLER_H_ |
| 7 | 7 |
| 8 #import <Cocoa/Cocoa.h> | 8 #import <Cocoa/Cocoa.h> |
| 9 #include <map> | 9 #include <map> |
| 10 | 10 |
| (...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 130 | 130 |
| 131 // Returns true if the bookmark bar needs to be shown currently because a tab | 131 // Returns true if the bookmark bar needs to be shown currently because a tab |
| 132 // that requires it is selected. The bookmark bar will have a different | 132 // that requires it is selected. The bookmark bar will have a different |
| 133 // appearance when it is shown if isAlwaysVisible returns NO. | 133 // appearance when it is shown if isAlwaysVisible returns NO. |
| 134 - (BOOL)isNewTabPage; | 134 - (BOOL)isNewTabPage; |
| 135 | 135 |
| 136 // Returns true if the bookmark bar is visible for all tabs. (This corresponds | 136 // Returns true if the bookmark bar is visible for all tabs. (This corresponds |
| 137 // to the user having selected "Always show the bookmark bar") | 137 // to the user having selected "Always show the bookmark bar") |
| 138 - (BOOL)isAlwaysVisible; | 138 - (BOOL)isAlwaysVisible; |
| 139 | 139 |
| 140 // Returns true if at least one bookmark was added. |
| 141 - (BOOL)addURLs:(NSArray*)urls withTitles:(NSArray*)titles at:(NSPoint)point; |
| 142 |
| 140 // Actions for manipulating bookmarks. | 143 // Actions for manipulating bookmarks. |
| 141 // From a button, ... | 144 // From a button, ... |
| 142 - (IBAction)openBookmark:(id)sender; | 145 - (IBAction)openBookmark:(id)sender; |
| 143 - (IBAction)openFolderMenuFromButton:(id)sender; | 146 - (IBAction)openFolderMenuFromButton:(id)sender; |
| 144 // From a context menu over the button, ... | 147 // From a context menu over the button, ... |
| 145 - (IBAction)openBookmarkInNewForegroundTab:(id)sender; | 148 - (IBAction)openBookmarkInNewForegroundTab:(id)sender; |
| 146 - (IBAction)openBookmarkInNewWindow:(id)sender; | 149 - (IBAction)openBookmarkInNewWindow:(id)sender; |
| 147 - (IBAction)openBookmarkInIncognitoWindow:(id)sender; | 150 - (IBAction)openBookmarkInIncognitoWindow:(id)sender; |
| 148 - (IBAction)editBookmark:(id)sender; | 151 - (IBAction)editBookmark:(id)sender; |
| 149 - (IBAction)copyBookmark:(id)sender; | 152 - (IBAction)copyBookmark:(id)sender; |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 189 - (void)frameDidChange; | 192 - (void)frameDidChange; |
| 190 - (BOOL)offTheSideButtonIsHidden; | 193 - (BOOL)offTheSideButtonIsHidden; |
| 191 - (NSMenu *)menuForFolderNode:(const BookmarkNode*)node; | 194 - (NSMenu *)menuForFolderNode:(const BookmarkNode*)node; |
| 192 - (int64)nodeIdFromMenuTag:(int32)tag; | 195 - (int64)nodeIdFromMenuTag:(int32)tag; |
| 193 - (int32)menuTagFromNodeId:(int64)menuid; | 196 - (int32)menuTagFromNodeId:(int64)menuid; |
| 194 - (void)buildOffTheSideMenu; | 197 - (void)buildOffTheSideMenu; |
| 195 - (NSMenu*)offTheSideMenu; | 198 - (NSMenu*)offTheSideMenu; |
| 196 @end | 199 @end |
| 197 | 200 |
| 198 #endif // CHROME_BROWSER_COCOA_BOOKMARK_BAR_CONTROLLER_H_ | 201 #endif // CHROME_BROWSER_COCOA_BOOKMARK_BAR_CONTROLLER_H_ |
| OLD | NEW |