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

Side by Side Diff: chrome/browser/ui/cocoa/find_bar/find_bar_cocoa_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 (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 #import <Cocoa/Cocoa.h> 5 #import <Cocoa/Cocoa.h>
6 6
7 #include "base/mac/scoped_nsobject.h" 7 #include "base/mac/scoped_nsobject.h"
8 #include "base/strings/string16.h" 8 #include "base/strings/string16.h"
9 #include "ui/gfx/geometry/point.h" 9 #include "ui/gfx/geometry/point.h"
10 10
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 55
56 // Default width of FindBar. 56 // Default width of FindBar.
57 CGFloat defaultWidth_; 57 CGFloat defaultWidth_;
58 }; 58 };
59 59
60 @property (readonly, nonatomic) NSView* findBarView; 60 @property (readonly, nonatomic) NSView* findBarView;
61 61
62 // Initializes a new FindBarCocoaController. 62 // Initializes a new FindBarCocoaController.
63 - (id)initWithBrowser:(Browser*)browser; 63 - (id)initWithBrowser:(Browser*)browser;
64 64
65 // Called by BrowserWindowController when the Browser is being destroyed.
66 - (void)browserWillBeDestroyed;
tapted 2015/07/07 04:25:59 Hm - I think this is OK to be consistent. But the
jackhou1 2015/07/07 08:33:05 Added note in BrowserWindowController::dealloc
67
65 - (void)setFindBarBridge:(FindBarBridge*)findBar; 68 - (void)setFindBarBridge:(FindBarBridge*)findBar;
66 69
67 - (IBAction)close:(id)sender; 70 - (IBAction)close:(id)sender;
68 71
69 - (IBAction)nextResult:(id)sender; 72 - (IBAction)nextResult:(id)sender;
70 73
71 - (IBAction)previousResult:(id)sender; 74 - (IBAction)previousResult:(id)sender;
72 75
73 // Position the find bar at the given maximum y-coordinate (the min-y of the 76 // Position the find bar at the given maximum y-coordinate (the min-y of the
74 // bar -- toolbar + possibly bookmark bar, but not including the infobars) with 77 // bar -- toolbar + possibly bookmark bar, but not including the infobars) with
(...skipping 21 matching lines...) Expand all
96 - (BOOL)isFindBarAnimating; 99 - (BOOL)isFindBarAnimating;
97 100
98 // Returns the FindBar's position in the superview's coordinates, but with 101 // Returns the FindBar's position in the superview's coordinates, but with
99 // the Y coordinate growing down. 102 // the Y coordinate growing down.
100 - (gfx::Point)findBarWindowPosition; 103 - (gfx::Point)findBarWindowPosition;
101 104
102 // Returns the width of the FindBar. 105 // Returns the width of the FindBar.
103 - (int)findBarWidth; 106 - (int)findBarWidth;
104 107
105 @end 108 @end
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698