summaryrefslogtreecommitdiffstats
path: root/chrome/browser/ui/cocoa/passwords/passwords_bubble_controller.h
blob: e07d78c7f11ac22a16d22745c4e11468fbf98fec (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
// 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_PASSWORDS_BUBBLE_CONTROLLER_H_
#define CHROME_BROWSER_UI_COCOA_PASSWORDS_PASSWORDS_BUBBLE_CONTROLLER_H_

#import <Cocoa/Cocoa.h>

#include "base/mac/scoped_nsobject.h"
#import "chrome/browser/ui/cocoa/base_bubble_controller.h"
#import "chrome/browser/ui/cocoa/passwords/base_passwords_content_view_controller.h"
#import "chrome/browser/ui/cocoa/passwords/pending_password_view_controller.h"
#include "chrome/browser/ui/passwords/manage_passwords_bubble_model.h"

// Controller for the Cocoa manage passwords bubble. Transitions through several
// views according to user interaction and updates the password management state
// accordingly.
@interface ManagePasswordsBubbleController
    : BaseBubbleController<BasePasswordsContentViewDelegate> {
 @private
  ManagePasswordsBubbleModel* model_;
  base::scoped_nsobject<BasePasswordsContentViewController> currentController_;
}
- (id)initWithParentWindow:(NSWindow*)parentWindow
                     model:(ManagePasswordsBubbleModel*)model;
@end

@interface ManagePasswordsBubbleController (Testing)
@property(readonly) NSViewController* currentController;
@end

#endif  // CHROME_BROWSER_UI_COCOA_PASSWORDS_PASSWORDS_BUBBLE_CONTROLLER_H_