| 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" |
| 11 #import "chrome/browser/ui/cocoa/passwords/manage_passwords_bubble_manage_view_c
ontroller.h" | |
| 12 #include "chrome/browser/ui/cocoa/location_bar/location_bar_view_mac.h" | 11 #include "chrome/browser/ui/cocoa/location_bar/location_bar_view_mac.h" |
| 13 #import "chrome/browser/ui/cocoa/passwords/manage_passwords_bubble_account_choos
er_view_controller.h" | 12 #import "chrome/browser/ui/cocoa/passwords/manage_passwords_bubble_account_choos
er_view_controller.h" |
| 14 #import "chrome/browser/ui/cocoa/passwords/manage_passwords_bubble_blacklist_vie
w_controller.h" | 13 #import "chrome/browser/ui/cocoa/passwords/manage_passwords_bubble_blacklist_vie
w_controller.h" |
| 15 #import "chrome/browser/ui/cocoa/passwords/manage_passwords_bubble_confirmation_
view_controller.h" | 14 #import "chrome/browser/ui/cocoa/passwords/manage_passwords_bubble_confirmation_
view_controller.h" |
| 15 #import "chrome/browser/ui/cocoa/passwords/manage_passwords_bubble_manage_view_c
ontroller.h" |
| 16 #include "ui/base/cocoa/window_size_constants.h" | 16 #include "ui/base/cocoa/window_size_constants.h" |
| 17 | 17 |
| 18 @interface ManagePasswordsBubbleController () | 18 @interface ManagePasswordsBubbleController () |
| 19 // Updates the content view controller according to the current state. | 19 // Updates the content view controller according to the current state. |
| 20 - (void)updateState; | 20 - (void)updateState; |
| 21 @end | 21 @end |
| 22 | 22 |
| 23 @implementation ManagePasswordsBubbleController | 23 @implementation ManagePasswordsBubbleController |
| 24 - (id)initWithParentWindow:(NSWindow*)parentWindow | 24 - (id)initWithParentWindow:(NSWindow*)parentWindow |
| 25 model:(ManagePasswordsBubbleModel*)model { | 25 model:(ManagePasswordsBubbleModel*)model { |
| (...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 139 | 139 |
| 140 @end | 140 @end |
| 141 | 141 |
| 142 @implementation ManagePasswordsBubbleController (Testing) | 142 @implementation ManagePasswordsBubbleController (Testing) |
| 143 | 143 |
| 144 - (NSViewController*)currentController { | 144 - (NSViewController*)currentController { |
| 145 return currentController_.get(); | 145 return currentController_.get(); |
| 146 } | 146 } |
| 147 | 147 |
| 148 @end | 148 @end |
| OLD | NEW |