Home | History | Annotate | Download | only in autofill
      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_OVERLAY_CONTROLLER_H_
      6 #define CHROME_BROWSER_UI_COCOA_AUTOFILL_AUTOFILL_OVERLAY_CONTROLLER_H_
      7 
      8 #import <Cocoa/Cocoa.h>
      9 
     10 #include "base/mac/scoped_nsobject.h"
     11 #include "base/memory/scoped_ptr.h"
     12 #import "chrome/browser/ui/cocoa/autofill/autofill_layout.h"
     13 
     14 namespace autofill {
     15 class AutofillDialogViewDelegate;
     16 struct DialogOverlayState;
     17 }  // autofill
     18 
     19 @class AutofillMessageView;
     20 
     21 @interface AutofillOverlayController : NSViewController<AutofillLayout> {
     22  @private
     23   base::scoped_nsobject<NSImageView> imageView_;
     24   base::scoped_nsobject<AutofillMessageView> messageView_;
     25 
     26   autofill::AutofillDialogViewDelegate* delegate_;  // not owned, owns dialog.
     27 }
     28 
     29 // Designated initializer.
     30 - (id)initWithDelegate:(autofill::AutofillDialogViewDelegate*)delegate;
     31 
     32 // Updates the state from the dialog controller.
     33 - (void)updateState;
     34 
     35 // Get the preferred view height for a given width.
     36 - (CGFloat)heightForWidth:(int)width;
     37 
     38 @end
     39 
     40 #endif  // CHROME_BROWSER_UI_COCOA_AUTOFILL_AUTOFILL_OVERLAY_CONTROLLER_H_
     41