Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / chrome / browser / ui / cocoa / passwords / manage_passwords_bubble_controller.h
blob5bb71df0fedf2c39aba947aee7eec5bed7d6069f
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.
5 #ifndef CHROME_BROWSER_UI_COCOA_PASSWORDS_MANAGE_PASSWORDS_BUBBLE_CONTROLLER_H_
6 #define CHROME_BROWSER_UI_COCOA_PASSWORDS_MANAGE_PASSWORDS_BUBBLE_CONTROLLER_H_
8 #import <Cocoa/Cocoa.h>
10 #include "base/mac/scoped_nsobject.h"
11 #import "chrome/browser/ui/cocoa/base_bubble_controller.h"
12 #import "chrome/browser/ui/cocoa/passwords/manage_passwords_bubble_content_view_controller.h"
13 #import "chrome/browser/ui/cocoa/passwords/manage_passwords_bubble_pending_view_controller.h"
14 #include "chrome/browser/ui/passwords/manage_passwords_bubble_model.h"
16 // Controller for the Cocoa manage passwords bubble. Transitions through several
17 // views according to user interaction and updates the password management state
18 // accordingly.
19 @interface ManagePasswordsBubbleController
20 : BaseBubbleController<ManagePasswordsBubbleContentViewDelegate> {
21 @private
22 ManagePasswordsBubbleModel* model_;
23 base::scoped_nsobject<ManagePasswordsBubbleContentViewController>
24 currentController_;
26 - (id)initWithParentWindow:(NSWindow*)parentWindow
27 model:(ManagePasswordsBubbleModel*)model;
28 @end
30 @interface ManagePasswordsBubbleController (Testing)
31 @property(readonly) NSViewController* currentController;
32 @end
34 #endif // CHROME_BROWSER_UI_COCOA_PASSWORDS_MANAGE_PASSWORDS_BUBBLE_CONTROLLER_H_