OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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/account_chooser_view_controller.h" | 5 #import "chrome/browser/ui/cocoa/passwords/account_chooser_view_controller.h" |
6 | 6 |
7 #include "base/mac/foundation_util.h" | 7 #include "base/mac/foundation_util.h" |
8 #include "base/mac/scoped_nsobject.h" | 8 #include "base/mac/scoped_nsobject.h" |
9 #include "base/strings/sys_string_conversions.h" | 9 #include "base/strings/sys_string_conversions.h" |
10 #include "base/strings/utf_string_conversions.h" | 10 #include "base/strings/utf_string_conversions.h" |
11 #import "chrome/browser/ui/cocoa/passwords/account_avatar_fetcher_manager.h" | 11 #import "chrome/browser/ui/cocoa/passwords/account_avatar_fetcher_manager.h" |
12 #import "chrome/browser/ui/cocoa/passwords/credential_item_button.h" | 12 #import "chrome/browser/ui/cocoa/passwords/credential_item_button.h" |
13 #import "chrome/browser/ui/cocoa/passwords/passwords_bubble_utils.h" | 13 #import "chrome/browser/ui/cocoa/passwords/passwords_bubble_utils.h" |
14 #include "chrome/browser/ui/passwords/manage_passwords_view_utils.h" | 14 #include "chrome/browser/ui/passwords/manage_passwords_view_utils.h" |
15 #include "chrome/browser/ui/passwords/password_dialog_controller.h" | 15 #include "chrome/browser/ui/passwords/password_dialog_controller.h" |
16 #include "chrome/browser/ui/passwords/password_dialog_prompts.h" | 16 #include "chrome/browser/ui/passwords/password_dialog_prompts.h" |
17 #include "chrome/grit/generated_resources.h" | 17 #include "chrome/grit/generated_resources.h" |
18 #include "components/autofill/core/common/password_form.h" | 18 #include "components/autofill/core/common/password_form.h" |
19 #include "components/password_manager/core/common/credential_manager_types.h" | 19 #include "components/password_manager/core/common/credential_manager_types.h" |
20 #include "grit/theme_resources.h" | 20 #include "grit/theme_resources.h" |
21 #include "skia/ext/skia_utils_mac.h" | 21 #include "skia/ext/skia_utils_mac.h" |
22 #include "ui/base/cocoa/controls/hyperlink_text_view.h" | 22 #include "ui/base/cocoa/controls/hyperlink_text_view.h" |
23 #include "ui/base/l10n/l10n_util.h" | 23 #include "ui/base/l10n/l10n_util.h" |
24 #include "ui/base/resource/resource_bundle.h" | 24 #include "ui/base/resource/resource_bundle.h" |
25 #include "ui/strings/grit/ui_strings.h" | 25 #include "ui/strings/grit/ui_strings.h" |
26 | 26 |
27 const SkColor kButtonHoverColor = SkColorSetRGB(0xEA, 0xEA, 0xEA); | |
28 | |
29 @interface AccountChooserViewController () { | 27 @interface AccountChooserViewController () { |
30 NSButton* cancelButton_; // Weak. | 28 NSButton* cancelButton_; // Weak. |
31 NSTextView* titleView_; // Weak. | 29 NSTextView* titleView_; // Weak. |
32 base::scoped_nsobject<NSArray> credentialButtons_; | 30 base::scoped_nsobject<NSArray> credentialButtons_; |
33 base::scoped_nsobject<AccountAvatarFetcherManager> avatarManager_; | 31 base::scoped_nsobject<AccountAvatarFetcherManager> avatarManager_; |
34 } | 32 } |
35 - (void)onCancelClicked:(id)sender; | 33 - (void)onCancelClicked:(id)sender; |
36 - (void)onCredentialClicked:(id)sender; | 34 - (void)onCredentialClicked:(id)sender; |
37 - (void)loadCredentialItems; | 35 - (void)loadCredentialItems; |
38 @end | 36 @end |
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
197 | 195 |
198 - (NSArray*)credentialButtons { | 196 - (NSArray*)credentialButtons { |
199 return credentialButtons_; | 197 return credentialButtons_; |
200 } | 198 } |
201 | 199 |
202 - (NSTextView*)titleView { | 200 - (NSTextView*)titleView { |
203 return titleView_; | 201 return titleView_; |
204 } | 202 } |
205 | 203 |
206 @end | 204 @end |
OLD | NEW |