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

Side by Side Diff: chrome/browser/ui/cocoa/autofill/autofill_header.h

Issue 77283002: [rAc OSX] Factor out AutofillHeader class to contain dialog header elements. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase and remove unused member variable Created 7 years, 1 month 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
(Empty)
1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef CHROME_BROWSER_UI_COCOA_AUTOFILL_AUTOFILL_HEADER_H_
6 #define CHROME_BROWSER_UI_COCOA_AUTOFILL_AUTOFILL_HEADER_H_
7
8 #import <Cocoa/Cocoa.h>
9
10 #include "base/mac/scoped_nsobject.h"
11 #import "chrome/browser/ui/cocoa/autofill/autofill_layout.h"
12
13 namespace autofill {
14 class AutofillDialogViewDelegate;
15 } // autofill
16
17 @class AutofillAccountChooser;
18
19 @interface AutofillHeader : NSView<AutofillLayout> {
20 @private
21 base::scoped_nsobject<AutofillAccountChooser> accountChooser_;
22 base::scoped_nsobject<NSTextField> title_;
23 // TODO(isherman): Include notifications in the header.
24
25 autofill::AutofillDialogViewDelegate* delegate_; // not owned, owns dialog.
26 }
27
28 // Designated initializer.
29 - (id)initWithDelegate:(autofill::AutofillDialogViewDelegate*)delegate;
30
31 // Returns the anchor view for notifications, which is the middle of the account
32 // chooser view.
33 - (NSView*)anchorView;
34
35 // Updates the header's state from the dialog controller.
36 - (void)update;
37
38 // Get the preferred view height for a given width.
39 - (CGFloat)heightForWidth:(int)width;
40
41 @end
42
43 #endif // CHROME_BROWSER_UI_COCOA_AUTOFILL_AUTOFILL_DIALOG_HEADER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698