Disable view source for Developer Tools.
[chromium-blink-merge.git] / chrome / browser / ui / cocoa / autofill / autofill_overlay_controller.h
blobe051c2cffd641f394ef51fafa15c463104f06fca
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_OVERLAY_CONTROLLER_H_
6 #define CHROME_BROWSER_UI_COCOA_AUTOFILL_AUTOFILL_OVERLAY_CONTROLLER_H_
8 #import <Cocoa/Cocoa.h>
10 #include "base/mac/scoped_nsobject.h"
11 #include "base/memory/scoped_ptr.h"
12 #import "chrome/browser/ui/cocoa/autofill/autofill_layout.h"
14 namespace autofill {
15 class AutofillDialogViewDelegate;
16 struct DialogOverlayState;
17 } // autofill
19 @class AutofillMessageView;
21 @interface AutofillOverlayController : NSViewController<AutofillLayout> {
22 @private
23 base::scoped_nsobject<NSImageView> imageView_;
24 base::scoped_nsobject<AutofillMessageView> messageView_;
26 autofill::AutofillDialogViewDelegate* delegate_; // not owned, owns dialog.
29 // Designated initializer.
30 - (id)initWithDelegate:(autofill::AutofillDialogViewDelegate*)delegate;
32 // Updates the state from the dialog controller.
33 - (void)updateState;
35 // Get the preferred view height for a given width.
36 - (CGFloat)heightForWidth:(int)width;
38 @end
40 #endif // CHROME_BROWSER_UI_COCOA_AUTOFILL_AUTOFILL_OVERLAY_CONTROLLER_H_