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

Unified 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: NSWidth 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/cocoa/passwords/manage_passwords_bubble_controller.h
diff --git a/chrome/browser/ui/cocoa/passwords/manage_passwords_bubble_controller.h b/chrome/browser/ui/cocoa/passwords/manage_passwords_bubble_controller.h
new file mode 100644
index 0000000000000000000000000000000000000000..508b18cfb1f377824c3345e4d0ece673ff595182
--- /dev/null
+++ b/chrome/browser/ui/cocoa/passwords/manage_passwords_bubble_controller.h
@@ -0,0 +1,35 @@
+// 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_MANAGE_PASSWORDS_BUBBLE_CONTROLLER_H_
+#define CHROME_BROWSER_UI_COCOA_PASSWORDS_MANAGE_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/manage_passwords_bubble_content_view_controller.h"
+#import "chrome/browser/ui/cocoa/passwords/manage_passwords_bubble_pending_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<ManagePasswordsBubbleContentViewDelegate,
+ ManagePasswordsBubblePendingViewDelegate> {
+ @private
+ ManagePasswordsBubbleModel* model_;
+ base::scoped_nsobject<NSViewController> currentController_;
+ bool neverSave_;
Scott Hess - ex-Googler 2014/08/07 23:54:14 Cocoa-style would be BOOL.
dconnelly 2014/08/08 09:03:15 Done.
+}
+- (id)initWithParentWindow:(NSWindow*)parentWindow
+ model:(ManagePasswordsBubbleModel*)model;
+@end
+
+@interface ManagePasswordsBubbleController (Testing)
+@property(readonly) NSViewController* currentController;
+@end
+
+#endif // CHROME_BROWSER_UI_COCOA_PASSWORDS_MANAGE_PASSWORDS_BUBBLE_CONTROLLER_H_

Powered by Google App Engine
This is Rietveld 408576698