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

Side by Side Diff: chrome/browser/ui/passwords/manage_passwords_view_utils.h

Issue 2532313003: Show an info icon with a tooltip for PSL-matches in the account chooser on Views. (Closed)
Patch Set: delete the icon Created 4 years 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
« no previous file with comments | « no previous file | chrome/browser/ui/views/passwords/credentials_item_view.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 #ifndef CHROME_BROWSER_UI_PASSWORDS_MANAGE_PASSWORDS_VIEW_UTILS_H_ 5 #ifndef CHROME_BROWSER_UI_PASSWORDS_MANAGE_PASSWORDS_VIEW_UTILS_H_
6 #define CHROME_BROWSER_UI_PASSWORDS_MANAGE_PASSWORDS_VIEW_UTILS_H_ 6 #define CHROME_BROWSER_UI_PASSWORDS_MANAGE_PASSWORDS_VIEW_UTILS_H_
7 7
8 #include "base/strings/string16.h" 8 #include "base/strings/string16.h"
9 9
10 namespace autofill { 10 namespace autofill {
(...skipping 11 matching lines...) Expand all
22 SAVE_PASSWORD, // plain password 22 SAVE_PASSWORD, // plain password
23 SAVE_ACCOUNT, // login via IDP 23 SAVE_ACCOUNT, // login via IDP
24 UPDATE_PASSWORD, // update plain password 24 UPDATE_PASSWORD, // update plain password
25 }; 25 };
26 26
27 class Profile; 27 class Profile;
28 28
29 // The desired width and height in pixels for an account avatar. 29 // The desired width and height in pixels for an account avatar.
30 constexpr int kAvatarImageSize = 32; 30 constexpr int kAvatarImageSize = 32;
31 31
32 // The desired width and height for the 'i' icon used for the PSL matches in the
33 // account chooser.
34 constexpr int kInfoIconSize = 16;
35
32 // Crops and scales |image_skia| to the desired size for an account avatar. 36 // Crops and scales |image_skia| to the desired size for an account avatar.
33 gfx::ImageSkia ScaleImageForAccountAvatar(gfx::ImageSkia image_skia); 37 gfx::ImageSkia ScaleImageForAccountAvatar(gfx::ImageSkia image_skia);
34 38
35 // Returns the upper and lower label to be displayed in the account chooser UI 39 // Returns the upper and lower label to be displayed in the account chooser UI
36 // for |form|. The lower label can be multiline. 40 // for |form|. The lower label can be multiline.
37 std::pair<base::string16, base::string16> GetCredentialLabelsForAccountChooser( 41 std::pair<base::string16, base::string16> GetCredentialLabelsForAccountChooser(
38 const autofill::PasswordForm& form); 42 const autofill::PasswordForm& form);
39 43
40 // Sets the formatted |title| in the Save Password bubble or the Update Password 44 // Sets the formatted |title| in the Save Password bubble or the Update Password
41 // bubble (depending on |dialog_type|). If the registry controlled domain of 45 // bubble (depending on |dialog_type|). If the registry controlled domain of
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 gfx::Range* link_range); 95 gfx::Range* link_range);
92 96
93 // Returns an username in the form that should be shown in the bubble. 97 // Returns an username in the form that should be shown in the bubble.
94 base::string16 GetDisplayUsername(const autofill::PasswordForm& form); 98 base::string16 GetDisplayUsername(const autofill::PasswordForm& form);
95 99
96 // Check if |profile| syncing the Auto sign-in settings (by checking that user 100 // Check if |profile| syncing the Auto sign-in settings (by checking that user
97 // syncs the PRIORITY_PREFERENCE). The view appearance might depend on it. 101 // syncs the PRIORITY_PREFERENCE). The view appearance might depend on it.
98 bool IsSyncingAutosignSetting(Profile* profile); 102 bool IsSyncingAutosignSetting(Profile* profile);
99 103
100 #endif // CHROME_BROWSER_UI_PASSWORDS_MANAGE_PASSWORDS_VIEW_UTILS_H_ 104 #endif // CHROME_BROWSER_UI_PASSWORDS_MANAGE_PASSWORDS_VIEW_UTILS_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/ui/views/passwords/credentials_item_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698