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

Side by Side Diff: chrome/browser/ui/cocoa/profiles/avatar_base_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: Fix ToolbarActionsBar tests. 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_PROFILES_AVATAR_BASE_CONTROLLER_H_ 5 #ifndef CHROME_BROWSER_UI_COCOA_PROFILES_AVATAR_BASE_CONTROLLER_H_
6 #define CHROME_BROWSER_UI_COCOA_PROFILES_AVATAR_BASE_CONTROLLER_H_ 6 #define CHROME_BROWSER_UI_COCOA_PROFILES_AVATAR_BASE_CONTROLLER_H_
7 7
8 #import <AppKit/AppKit.h> 8 #import <AppKit/AppKit.h>
9 9
10 #import "base/mac/scoped_nsobject.h" 10 #import "base/mac/scoped_nsobject.h"
(...skipping 21 matching lines...) Expand all
32 // Observer that listens for updates to the ProfileInfoCache. 32 // Observer that listens for updates to the ProfileInfoCache.
33 scoped_ptr<ProfileInfoUpdateObserver> profileInfoObserver_; 33 scoped_ptr<ProfileInfoUpdateObserver> profileInfoObserver_;
34 } 34 }
35 35
36 // The avatar button view. 36 // The avatar button view.
37 @property(readonly, nonatomic) NSButton* buttonView; 37 @property(readonly, nonatomic) NSButton* buttonView;
38 38
39 // Designated initializer. 39 // Designated initializer.
40 - (id)initWithBrowser:(Browser*)browser; 40 - (id)initWithBrowser:(Browser*)browser;
41 41
42 // Called by BrowserWindowController when the Browser is being destroyed.
43 - (void)browserWillBeDestroyed;
44
42 // Shows the avatar bubble in the given mode. 45 // Shows the avatar bubble in the given mode.
43 - (void)showAvatarBubbleAnchoredAt:(NSView*)anchor 46 - (void)showAvatarBubbleAnchoredAt:(NSView*)anchor
44 withMode:(BrowserWindow::AvatarBubbleMode)mode 47 withMode:(BrowserWindow::AvatarBubbleMode)mode
45 withServiceType:(signin::GAIAServiceType)serviceType; 48 withServiceType:(signin::GAIAServiceType)serviceType;
46 49
47 - (void)closeAvatarBubble; 50 - (void)closeAvatarBubble;
48 @end 51 @end
49 52
50 @interface AvatarBaseController (ExposedForTesting) 53 @interface AvatarBaseController (ExposedForTesting)
51 - (BaseBubbleController*)menuController; 54 - (BaseBubbleController*)menuController;
52 @end 55 @end
53 56
54 #endif // CHROME_BROWSER_UI_COCOA_PROFILES_AVATAR_BASE_CONTROLLER_H_ 57 #endif // CHROME_BROWSER_UI_COCOA_PROFILES_AVATAR_BASE_CONTROLLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698