OLD | NEW |
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 Loading... |
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; |
| 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 Loading... |
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 |
OLD | NEW |