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

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

Issue 1221173003: [Mac] Inform reference counted objects that hold a weak Browser* when the Browser is being destroye… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove dealloc override. Created 5 years, 5 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 <map> 9 #include <map>
10 10
(...skipping 282 matching lines...) Expand 10 before | Expand all | Expand 10 after
293 @property(assign, nonatomic) BOOL stateAnimationsEnabled; 293 @property(assign, nonatomic) BOOL stateAnimationsEnabled;
294 @property(assign, nonatomic) BOOL innerContentAnimationsEnabled; 294 @property(assign, nonatomic) BOOL innerContentAnimationsEnabled;
295 295
296 // Initializes the bookmark bar controller with the given browser 296 // Initializes the bookmark bar controller with the given browser
297 // profile and delegates. 297 // profile and delegates.
298 - (id)initWithBrowser:(Browser*)browser 298 - (id)initWithBrowser:(Browser*)browser
299 initialWidth:(CGFloat)initialWidth 299 initialWidth:(CGFloat)initialWidth
300 delegate:(id<BookmarkBarControllerDelegate>)delegate 300 delegate:(id<BookmarkBarControllerDelegate>)delegate
301 resizeDelegate:(id<ViewResizer>)resizeDelegate; 301 resizeDelegate:(id<ViewResizer>)resizeDelegate;
302 302
303 // Called by BrowserWindowController when the Browser is being destroyed.
304 - (void)browserWillBeDestroyed;
305
303 // The Browser corresponding to this BookmarkBarController. 306 // The Browser corresponding to this BookmarkBarController.
304 - (Browser*)browser; 307 - (Browser*)browser;
305 308
306 // The controller for all bookmark bar context menus. 309 // The controller for all bookmark bar context menus.
307 - (BookmarkContextMenuCocoaController*)menuController; 310 - (BookmarkContextMenuCocoaController*)menuController;
308 311
309 // Updates the bookmark bar (from its current, possibly in-transition) state to 312 // Updates the bookmark bar (from its current, possibly in-transition) state to
310 // the new state. 313 // the new state.
311 - (void)updateState:(BookmarkBar::State)newState 314 - (void)updateState:(BookmarkBar::State)newState
312 changeType:(BookmarkBar::AnimateChangeType)changeType; 315 changeType:(BookmarkBar::AnimateChangeType)changeType;
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
422 - (BookmarkButton*)buttonForDroppingOnAtPoint:(NSPoint)point; 425 - (BookmarkButton*)buttonForDroppingOnAtPoint:(NSPoint)point;
423 - (BOOL)isEventAnExitEvent:(NSEvent*)event; 426 - (BOOL)isEventAnExitEvent:(NSEvent*)event;
424 - (BOOL)shrinkOrHideView:(NSView*)view forMaxX:(CGFloat)maxViewX; 427 - (BOOL)shrinkOrHideView:(NSView*)view forMaxX:(CGFloat)maxViewX;
425 - (void)unhighlightBookmark:(const bookmarks::BookmarkNode*)node; 428 - (void)unhighlightBookmark:(const bookmarks::BookmarkNode*)node;
426 429
427 // The following are for testing purposes only and are not used internally. 430 // The following are for testing purposes only and are not used internally.
428 - (NSMenu *)menuForFolderNode:(const bookmarks::BookmarkNode*)node; 431 - (NSMenu *)menuForFolderNode:(const bookmarks::BookmarkNode*)node;
429 @end 432 @end
430 433
431 #endif // CHROME_BROWSER_UI_COCOA_BOOKMARKS_BOOKMARK_BAR_CONTROLLER_H_ 434 #endif // CHROME_BROWSER_UI_COCOA_BOOKMARKS_BOOKMARK_BAR_CONTROLLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698