Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(391)

Side by Side Diff: chrome/browser/ui/cocoa/bookmarks/bookmark_bar_controller.h

Issue 2729603008: [Mac] Remove bookmark bar NIB (Closed)
Patch Set: CL comments Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 211 matching lines...) Expand 10 before | Expand all | Expand 10 after
222 222
223 // A controller for a pop-up bookmark folder window (custom menu). 223 // A controller for a pop-up bookmark folder window (custom menu).
224 // This is not a scoped_nsobject because it owns itself (when its 224 // This is not a scoped_nsobject because it owns itself (when its
225 // window closes the controller gets autoreleased). 225 // window closes the controller gets autoreleased).
226 BookmarkBarFolderController* folderController_; 226 BookmarkBarFolderController* folderController_;
227 227
228 // The event tap that allows monitoring of all events, to properly close with 228 // The event tap that allows monitoring of all events, to properly close with
229 // a click outside the bounds of the window. 229 // a click outside the bounds of the window.
230 id exitEventTap_; 230 id exitEventTap_;
231 231
232 IBOutlet BookmarkBarView* buttonView_; // Contains 'no items' text fields. 232 base::scoped_nsobject<BookmarkBarView>
233 IBOutlet BookmarkButton* offTheSideButton_; // aka the chevron. 233 buttonView_; // Contains 'no items' text fields.
234 base::scoped_nsobject<BookmarkButton> offTheSideButton_; // aka the chevron.
234 235
235 NSRect originalNoItemsRect_; // Original, pre-resized field rect. 236 NSRect originalNoItemsRect_; // Original, pre-resized field rect.
236 NSRect originalImportBookmarksRect_; // Original, pre-resized field rect. 237 NSRect originalImportBookmarksRect_; // Original, pre-resized field rect.
237 238
238 // "Apps" button on the left side. 239 // "Apps" button on the left side.
239 base::scoped_nsobject<BookmarkButton> appsPageShortcutButton_; 240 base::scoped_nsobject<BookmarkButton> appsPageShortcutButton_;
240 241
241 // "Managed bookmarks" button on the left side, next to the apps button. 242 // "Managed bookmarks" button on the left side, next to the apps button.
242 base::scoped_nsobject<BookmarkButton> managedBookmarksButton_; 243 base::scoped_nsobject<BookmarkButton> managedBookmarksButton_;
243 244
(...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after
384 - (void)closeFolderAndStopTrackingMenus; 385 - (void)closeFolderAndStopTrackingMenus;
385 386
386 // Checks if operations such as edit or delete are allowed. 387 // Checks if operations such as edit or delete are allowed.
387 - (BOOL)canEditBookmark:(const bookmarks::BookmarkNode*)node; 388 - (BOOL)canEditBookmark:(const bookmarks::BookmarkNode*)node;
388 389
389 // Checks if bookmark editing is enabled at all. 390 // Checks if bookmark editing is enabled at all.
390 - (BOOL)canEditBookmarks; 391 - (BOOL)canEditBookmarks;
391 392
392 // Actions for manipulating bookmarks. 393 // Actions for manipulating bookmarks.
393 // Open a normal bookmark or folder from a button, ... 394 // Open a normal bookmark or folder from a button, ...
394 - (IBAction)openBookmark:(id)sender; 395 - (void)openBookmark:(id)sender;
395 - (IBAction)openBookmarkFolderFromButton:(id)sender; 396 - (void)openBookmarkFolderFromButton:(id)sender;
396 // From the "off the side" button, ... 397 // From the "off the side" button, ...
397 - (IBAction)openOffTheSideFolderFromButton:(id)sender; 398 - (void)openOffTheSideFolderFromButton:(id)sender;
398 // Import bookmarks from another browser. 399 // Import bookmarks from another browser.
399 - (IBAction)importBookmarks:(id)sender; 400 - (void)importBookmarks:(id)sender;
400 401
401 // Returns the app page shortcut button. 402 // Returns the app page shortcut button.
402 - (NSButton*)appsPageShortcutButton; 403 - (NSButton*)appsPageShortcutButton;
403 404
404 // Returns the "off the side" button (aka the chevron button). 405 // Returns the "off the side" button (aka the chevron button).
405 - (NSButton*)offTheSideButton; 406 - (NSButton*)offTheSideButton;
406 407
407 // Returns the "off the side" button image. 408 // Returns the "off the side" button image.
408 - (NSImage*)offTheSideButtonImage:(BOOL)forDarkMode; 409 - (NSImage*)offTheSideButtonImage:(BOOL)forDarkMode;
409 410
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
456 - (int32_t)menuTagFromNodeId:(int64_t)menuid; 457 - (int32_t)menuTagFromNodeId:(int64_t)menuid;
457 - (void)updateTheme:(const ui::ThemeProvider*)themeProvider; 458 - (void)updateTheme:(const ui::ThemeProvider*)themeProvider;
458 - (BookmarkButton*)buttonForDroppingOnAtPoint:(NSPoint)point; 459 - (BookmarkButton*)buttonForDroppingOnAtPoint:(NSPoint)point;
459 - (BOOL)isEventAnExitEvent:(NSEvent*)event; 460 - (BOOL)isEventAnExitEvent:(NSEvent*)event;
460 - (BOOL)shrinkOrHideView:(NSView*)view forMaxX:(CGFloat)maxViewX; 461 - (BOOL)shrinkOrHideView:(NSView*)view forMaxX:(CGFloat)maxViewX;
461 - (void)unhighlightBookmark:(const bookmarks::BookmarkNode*)node; 462 - (void)unhighlightBookmark:(const bookmarks::BookmarkNode*)node;
462 463
463 @end 464 @end
464 465
465 #endif // CHROME_BROWSER_UI_COCOA_BOOKMARKS_BOOKMARK_BAR_CONTROLLER_H_ 466 #endif // CHROME_BROWSER_UI_COCOA_BOOKMARKS_BOOKMARK_BAR_CONTROLLER_H_
OLDNEW
« no previous file with comments | « chrome/app/nibs/BookmarkBar.xib ('k') | chrome/browser/ui/cocoa/bookmarks/bookmark_bar_controller.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698