Check USB device path access when prompting users to select a device.
[chromium-blink-merge.git] / chrome / browser / ui / cocoa / autofill / autofill_header.h
blobd18d01d9b9bdd62f01a5411531e6cd7a447b9292
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.
5 #ifndef CHROME_BROWSER_UI_COCOA_AUTOFILL_AUTOFILL_HEADER_H_
6 #define CHROME_BROWSER_UI_COCOA_AUTOFILL_AUTOFILL_HEADER_H_
8 #import <Cocoa/Cocoa.h>
10 #include "base/mac/scoped_nsobject.h"
11 #import "chrome/browser/ui/cocoa/autofill/autofill_layout.h"
13 namespace autofill {
14 class AutofillDialogViewDelegate;
15 } // autofill
17 @class AutofillAccountChooser;
19 @interface AutofillHeader : NSViewController<AutofillLayout> {
20 @private
21 base::scoped_nsobject<AutofillAccountChooser> accountChooser_;
22 base::scoped_nsobject<NSTextField> title_;
24 autofill::AutofillDialogViewDelegate* delegate_; // not owned, owns dialog.
27 // Designated initializer.
28 - (id)initWithDelegate:(autofill::AutofillDialogViewDelegate*)delegate;
30 // Returns the anchor view for notifications, which is the middle of the account
31 // chooser view.
32 - (NSView*)anchorView;
34 // Updates the header's state from the dialog controller.
35 - (void)update;
37 @end
39 #endif // CHROME_BROWSER_UI_COCOA_AUTOFILL_AUTOFILL_DIALOG_HEADER_H_