Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_CONTROLLER_H_ | 5 #ifndef CHROME_BROWSER_UI_COCOA_BOOKMARKS_BOOKMARK_BAR_CONTROLLER_H_ |
| 6 #define CHROME_BROWSER_UI_COCOA_BOOKMARKS_BOOKMARK_BAR_CONTROLLER_H_ | 6 #define CHROME_BROWSER_UI_COCOA_BOOKMARKS_BOOKMARK_BAR_CONTROLLER_H_ |
| 7 | 7 |
| 8 #import <Cocoa/Cocoa.h> | 8 #import <Cocoa/Cocoa.h> |
| 9 #include <stdint.h> | 9 #include <stdint.h> |
| 10 | 10 |
| (...skipping 382 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 393 | 393 |
| 394 // Actions for manipulating bookmarks. | 394 // Actions for manipulating bookmarks. |
| 395 // Open a normal bookmark or folder from a button, ... | 395 // Open a normal bookmark or folder from a button, ... |
| 396 - (IBAction)openBookmark:(id)sender; | 396 - (IBAction)openBookmark:(id)sender; |
| 397 - (IBAction)openBookmarkFolderFromButton:(id)sender; | 397 - (IBAction)openBookmarkFolderFromButton:(id)sender; |
| 398 // From the "off the side" button, ... | 398 // From the "off the side" button, ... |
| 399 - (IBAction)openOffTheSideFolderFromButton:(id)sender; | 399 - (IBAction)openOffTheSideFolderFromButton:(id)sender; |
| 400 // Import bookmarks from another browser. | 400 // Import bookmarks from another browser. |
| 401 - (IBAction)importBookmarks:(id)sender; | 401 - (IBAction)importBookmarks:(id)sender; |
| 402 | 402 |
| 403 // Returns the app page shortcut button/ | |
|
Avi (use Gerrit)
2016/05/24 18:04:32
period at the end of the comment
shrike
2016/05/24 18:06:52
Done.
| |
| 404 - (NSButton*)appsPageShortcutButton; | |
| 405 | |
| 403 // Returns the "off the side" button (aka the chevron button). | 406 // Returns the "off the side" button (aka the chevron button). |
| 404 - (NSButton*)offTheSideButton; | 407 - (NSButton*)offTheSideButton; |
| 405 | 408 |
| 406 // Returns the "off the side" button image. | 409 // Returns the "off the side" button image. |
| 407 - (NSImage*)offTheSideButtonImage:(BOOL)forDarkMode; | 410 - (NSImage*)offTheSideButtonImage:(BOOL)forDarkMode; |
| 408 | 411 |
| 409 @end | 412 @end |
| 410 | 413 |
| 411 // Redirects from BookmarkBarBridge, the C++ object which glues us to | 414 // Redirects from BookmarkBarBridge, the C++ object which glues us to |
| 412 // the rest of Chromium. Internal to BookmarkBarController. | 415 // the rest of Chromium. Internal to BookmarkBarController. |
| (...skipping 17 matching lines...) Expand all Loading... | |
| 430 - (void)nodeChildrenReordered:(bookmarks::BookmarkModel*)model | 433 - (void)nodeChildrenReordered:(bookmarks::BookmarkModel*)model |
| 431 node:(const bookmarks::BookmarkNode*)node; | 434 node:(const bookmarks::BookmarkNode*)node; |
| 432 @end | 435 @end |
| 433 | 436 |
| 434 // These APIs should only be used by unit tests (or used internally). | 437 // These APIs should only be used by unit tests (or used internally). |
| 435 @interface BookmarkBarController(InternalOrTestingAPI) | 438 @interface BookmarkBarController(InternalOrTestingAPI) |
| 436 - (void)openBookmarkFolder:(id)sender; | 439 - (void)openBookmarkFolder:(id)sender; |
| 437 - (void)openOrCloseBookmarkFolderForOffTheSideButton; | 440 - (void)openOrCloseBookmarkFolderForOffTheSideButton; |
| 438 - (BookmarkBarView*)buttonView; | 441 - (BookmarkBarView*)buttonView; |
| 439 - (NSMutableArray*)buttons; | 442 - (NSMutableArray*)buttons; |
| 440 - (NSButton*)appsPageShortcutButton; | |
| 441 - (BOOL)offTheSideButtonIsHidden; | 443 - (BOOL)offTheSideButtonIsHidden; |
| 442 - (BOOL)appsPageShortcutButtonIsHidden; | 444 - (BOOL)appsPageShortcutButtonIsHidden; |
| 443 - (BookmarkButton*)otherBookmarksButton; | 445 - (BookmarkButton*)otherBookmarksButton; |
| 444 - (BookmarkBarFolderController*)folderController; | 446 - (BookmarkBarFolderController*)folderController; |
| 445 - (id)folderTarget; | 447 - (id)folderTarget; |
| 446 - (int)displayedButtonCount; | 448 - (int)displayedButtonCount; |
| 447 - (void)openURL:(GURL)url disposition:(WindowOpenDisposition)disposition; | 449 - (void)openURL:(GURL)url disposition:(WindowOpenDisposition)disposition; |
| 448 - (void)clearBookmarkBar; | 450 - (void)clearBookmarkBar; |
| 449 - (BookmarkButtonCell*)cellForBookmarkNode:(const bookmarks::BookmarkNode*)node; | 451 - (BookmarkButtonCell*)cellForBookmarkNode:(const bookmarks::BookmarkNode*)node; |
| 450 - (BookmarkButtonCell*)cellForCustomButtonWithText:(NSString*)text | 452 - (BookmarkButtonCell*)cellForCustomButtonWithText:(NSString*)text |
| 451 image:(NSImage*)image; | 453 image:(NSImage*)image; |
| 452 - (NSRect)frameForBookmarkButtonFromCell:(NSCell*)cell xOffset:(int*)xOffset; | 454 - (NSRect)frameForBookmarkButtonFromCell:(NSCell*)cell xOffset:(int*)xOffset; |
| 453 - (void)checkForBookmarkButtonGrowth:(NSButton*)button; | 455 - (void)checkForBookmarkButtonGrowth:(NSButton*)button; |
| 454 - (void)frameDidChange; | 456 - (void)frameDidChange; |
| 455 - (int64_t)nodeIdFromMenuTag:(int32_t)tag; | 457 - (int64_t)nodeIdFromMenuTag:(int32_t)tag; |
| 456 - (int32_t)menuTagFromNodeId:(int64_t)menuid; | 458 - (int32_t)menuTagFromNodeId:(int64_t)menuid; |
| 457 - (void)updateTheme:(const ui::ThemeProvider*)themeProvider; | 459 - (void)updateTheme:(const ui::ThemeProvider*)themeProvider; |
| 458 - (BookmarkButton*)buttonForDroppingOnAtPoint:(NSPoint)point; | 460 - (BookmarkButton*)buttonForDroppingOnAtPoint:(NSPoint)point; |
| 459 - (BOOL)isEventAnExitEvent:(NSEvent*)event; | 461 - (BOOL)isEventAnExitEvent:(NSEvent*)event; |
| 460 - (BOOL)shrinkOrHideView:(NSView*)view forMaxX:(CGFloat)maxViewX; | 462 - (BOOL)shrinkOrHideView:(NSView*)view forMaxX:(CGFloat)maxViewX; |
| 461 - (void)unhighlightBookmark:(const bookmarks::BookmarkNode*)node; | 463 - (void)unhighlightBookmark:(const bookmarks::BookmarkNode*)node; |
| 462 | 464 |
| 463 // The following are for testing purposes only and are not used internally. | 465 // The following are for testing purposes only and are not used internally. |
| 464 - (NSMenu *)menuForFolderNode:(const bookmarks::BookmarkNode*)node; | 466 - (NSMenu *)menuForFolderNode:(const bookmarks::BookmarkNode*)node; |
| 465 @end | 467 @end |
| 466 | 468 |
| 467 #endif // CHROME_BROWSER_UI_COCOA_BOOKMARKS_BOOKMARK_BAR_CONTROLLER_H_ | 469 #endif // CHROME_BROWSER_UI_COCOA_BOOKMARKS_BOOKMARK_BAR_CONTROLLER_H_ |
| OLD | NEW |