password_generation_popup_view_cocoa.h revision cedac228d2dd51db4b79ea1e72c7f249408ee061
1// Copyright 2014 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_PASSWORD_GENERATION_POPUP_VIEW_COCOA_H_ 6#define CHROME_BROWSER_UI_COCOA_AUTOFILL_PASSWORD_GENERATION_POPUP_VIEW_COCOA_H_ 7 8#import <Cocoa/Cocoa.h> 9 10#include "chrome/browser/ui/autofill/password_generation_popup_controller.h" 11#import "chrome/browser/ui/cocoa/autofill/autofill_popup_base_view_cocoa.h" 12 13namespace autofill { 14class AutofillPopupController; 15} // namespace autofill 16 17// Draws the native password generation popup view on Mac. 18@interface PasswordGenerationPopupViewCocoa : AutofillPopupBaseViewCocoa { 19 @private 20 // The cross-platform controller for this view. 21 __weak autofill::PasswordGenerationPopupController* controller_; 22 23 __weak NSTextField* passwordField_; 24 __weak NSTextField* passwordSubtextField_; 25 __weak NSTextField* helpTextField_; 26} 27 28// Designated initializer. 29- (id)initWithController: 30 (autofill::PasswordGenerationPopupController*)controller 31 frame:(NSRect)frame; 32 33// Informs the view that its controller has been (or will imminently be) 34// destroyed. 35- (void)controllerDestroyed; 36 37@end 38 39#endif // CHROME_BROWSER_UI_COCOA_AUTOFILL_PASSWORD_GENERATION_POPUP_VIEW_COCOA_H_ 40