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

Side by Side Diff: chrome/browser/ui/cocoa/find_bar/find_bar_cocoa_controller.h

Issue 17593006: mac: Update clients of scoped_nsobject.h. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: iwyu, scoped_nsprotocol Created 7 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 | Annotate | Revision Log
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/memory/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/point.h" 9 #include "ui/gfx/point.h"
10 10
11 class Browser; 11 class Browser;
12 class FindBarBridge; 12 class FindBarBridge;
13 @class FindBarTextField; 13 @class FindBarTextField;
14 class FindNotificationDetails; 14 class FindNotificationDetails;
15 @class FocusTracker; 15 @class FocusTracker;
16 16
17 // A controller for the find bar in the browser window. Manages 17 // A controller for the find bar in the browser window. Manages
18 // updating the state of the find bar and provides a target for the 18 // updating the state of the find bar and provides a target for the
19 // next/previous/close buttons. Certain operations require a pointer 19 // next/previous/close buttons. Certain operations require a pointer
20 // to the cross-platform FindBarController, so be sure to call 20 // to the cross-platform FindBarController, so be sure to call
21 // setFindBarBridge: after creating this controller. 21 // setFindBarBridge: after creating this controller.
22 22
23 @interface FindBarCocoaController : NSViewController { 23 @interface FindBarCocoaController : NSViewController {
24 @private 24 @private
25 IBOutlet NSView* findBarView_; 25 IBOutlet NSView* findBarView_;
26 IBOutlet FindBarTextField* findText_; 26 IBOutlet FindBarTextField* findText_;
27 IBOutlet NSButton* nextButton_; 27 IBOutlet NSButton* nextButton_;
28 IBOutlet NSButton* previousButton_; 28 IBOutlet NSButton* previousButton_;
29 IBOutlet NSButton* closeButton_; 29 IBOutlet NSButton* closeButton_;
30 30
31 // Needed to call methods on FindBarController. 31 // Needed to call methods on FindBarController.
32 FindBarBridge* findBarBridge_; // weak 32 FindBarBridge* findBarBridge_; // weak
33 33
34 Browser* browser_; 34 Browser* browser_;
35 35
36 scoped_nsobject<FocusTracker> focusTracker_; 36 base::scoped_nsobject<FocusTracker> focusTracker_;
37 37
38 // The show/hide animation. This is defined to be non-nil if the 38 // The show/hide animation. This is defined to be non-nil if the
39 // animation is running, and is always nil otherwise. The 39 // animation is running, and is always nil otherwise. The
40 // FindBarCocoaController should not be deallocated while an animation is 40 // FindBarCocoaController should not be deallocated while an animation is
41 // running (stopAnimation is currently called before the last tab in a 41 // running (stopAnimation is currently called before the last tab in a
42 // window is removed). 42 // window is removed).
43 scoped_nsobject<NSViewAnimation> showHideAnimation_; 43 base::scoped_nsobject<NSViewAnimation> showHideAnimation_;
44 44
45 // The horizontal-moving animation, to avoid occluding find results. This 45 // The horizontal-moving animation, to avoid occluding find results. This
46 // is nil when the animation is not running, and is also stopped by 46 // is nil when the animation is not running, and is also stopped by
47 // stopAnimation. 47 // stopAnimation.
48 scoped_nsobject<NSViewAnimation> moveAnimation_; 48 base::scoped_nsobject<NSViewAnimation> moveAnimation_;
49 49
50 // If YES, do nothing as a result of find pasteboard update notifications. 50 // If YES, do nothing as a result of find pasteboard update notifications.
51 BOOL suppressPboardUpdateActions_; 51 BOOL suppressPboardUpdateActions_;
52 52
53 // Vertical point of attachment of the FindBar. 53 // Vertical point of attachment of the FindBar.
54 CGFloat maxY_; 54 CGFloat maxY_;
55 55
56 // Default width of FindBar. 56 // Default width of FindBar.
57 CGFloat defaultWidth_; 57 CGFloat defaultWidth_;
58 }; 58 };
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
94 - (BOOL)isFindBarAnimating; 94 - (BOOL)isFindBarAnimating;
95 95
96 // Returns the FindBar's position in the superview's coordinates, but with 96 // Returns the FindBar's position in the superview's coordinates, but with
97 // the Y coordinate growing down. 97 // the Y coordinate growing down.
98 - (gfx::Point)findBarWindowPosition; 98 - (gfx::Point)findBarWindowPosition;
99 99
100 // Returns the width of the FindBar. 100 // Returns the width of the FindBar.
101 - (int)findBarWidth; 101 - (int)findBarWidth;
102 102
103 @end 103 @end
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698