blob: 26cb91f052db37d4a10ea8e2cfe34e60d1666a22 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
// Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CHROME_BROWSER_UI_COCOA_PASSWORDS_PENDING_PASSWORD_VIEW_CONTROLLER_H_
#define CHROME_BROWSER_UI_COCOA_PASSWORDS_PENDING_PASSWORD_VIEW_CONTROLLER_H_
#import <Cocoa/Cocoa.h>
#include "base/mac/scoped_nsobject.h"
#import "chrome/browser/ui/cocoa/passwords/base_passwords_content_view_controller.h"
@class PasswordsListViewController;
// Base class for the views that offer to save/update the user's password.
@interface PendingPasswordViewController
: BasePasswordsContentViewController<NSTextViewDelegate> {
@private
base::scoped_nsobject<NSButton> closeButton_;
}
// Creates a controller for showing username/password and returns its view.
- (NSView*)createPasswordView;
// Returns whether GoogleSmartLock warm welcome should be shown.
- (BOOL)shouldShowGoogleSmartLockWelcome;
// Creates buttons that should be shown in the bubble and returns them.
- (NSArray*)createButtonsAndAddThemToView:(NSView*)view;
@property(readonly) ManagePasswordsBubbleModel* model;
@end
@interface PendingPasswordViewController (Testing)
@property(readonly) NSButton* closeButton;
@end
#endif // CHROME_BROWSER_UI_COCOA_PASSWORDS_PENDING_PASSWORD_VIEW_CONTROLLER_H_
|