Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(550)

Side by Side Diff: chrome/browser/ui/cocoa/passwords/manage_passwords_bubble_controller.h

Issue 422233009: Add ManagePasswordsBubbleController and unit tests. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
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_PASSWORDS_MANAGE_PASSWORDS_BUBBLE_CONTROLLER_H_
6 #define CHROME_BROWSER_UI_COCOA_PASSWORDS_MANAGE_PASSWORDS_BUBBLE_CONTROLLER_H_
7
8 #import <Cocoa/Cocoa.h>
9
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"
15
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 ManagePasswordsBubblePendingViewDelegate> {
22 @private
23 ManagePasswordsBubbleModel* model_;
24 base::scoped_nsobject<NSViewController> currentController_;
25 }
26 - (id)initWithParentWindow:(NSWindow*)parentWindow
27 model:(ManagePasswordsBubbleModel*)model;
28 @end
29
30 @interface ManagePasswordsBubbleController (Testing)
31 @property(readonly) NSViewController* currentController;
32 @end
33
34 #endif // CHROME_BROWSER_UI_COCOA_PASSWORDS_MANAGE_PASSWORDS_BUBBLE_CONTROLLER_ H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698