| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #import "chrome/browser/ui/cocoa/passwords/manage_passwords_bubble_controller.h" | 5 #import "chrome/browser/ui/cocoa/passwords/manage_passwords_bubble_controller.h" |
| 6 | 6 |
| 7 #include "base/mac/scoped_nsobject.h" | 7 #include "base/mac/scoped_nsobject.h" |
| 8 #import "chrome/browser/ui/cocoa/browser_window_controller.h" | 8 #import "chrome/browser/ui/cocoa/browser_window_controller.h" |
| 9 #import "chrome/browser/ui/cocoa/info_bubble_view.h" | 9 #import "chrome/browser/ui/cocoa/info_bubble_view.h" |
| 10 #import "chrome/browser/ui/cocoa/info_bubble_window.h" | 10 #import "chrome/browser/ui/cocoa/info_bubble_window.h" |
| (...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 83 | 83 |
| 84 #pragma mark ManagePasswordsBubbleContentViewDelegate | 84 #pragma mark ManagePasswordsBubbleContentViewDelegate |
| 85 | 85 |
| 86 - (void)viewShouldDismiss { | 86 - (void)viewShouldDismiss { |
| 87 [self close]; | 87 [self close]; |
| 88 } | 88 } |
| 89 | 89 |
| 90 #pragma mark ManagePasswordsBubblePendingViewDelegate | 90 #pragma mark ManagePasswordsBubblePendingViewDelegate |
| 91 | 91 |
| 92 - (void)passwordShouldNeverBeSavedOnSiteWithExistingPasswords { | 92 - (void)passwordShouldNeverBeSavedOnSiteWithExistingPasswords { |
| 93 // TODO(dconnelly): Set the NeverSaveViewController once it's implemented. | 93 currentController_.reset([[ManagePasswordsBubbleNeverSaveViewController alloc] |
| 94 initWithModel:model_ |
| 95 delegate:self]); |
| 94 [self performLayout]; | 96 [self performLayout]; |
| 95 } | 97 } |
| 96 | 98 |
| 99 #pragma mark ManagePasswordsBubbleNeverSaveViewDelegate |
| 100 |
| 101 - (void)neverSavePasswordCancelled { |
| 102 [self updateState]; |
| 103 } |
| 104 |
| 97 @end | 105 @end |
| 98 | 106 |
| 99 @implementation ManagePasswordsBubbleController (Testing) | 107 @implementation ManagePasswordsBubbleController (Testing) |
| 100 | 108 |
| 101 - (NSViewController*)currentController { | 109 - (NSViewController*)currentController { |
| 102 return currentController_.get(); | 110 return currentController_.get(); |
| 103 } | 111 } |
| 104 | 112 |
| 105 @end | 113 @end |
| OLD | NEW |