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

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

Issue 1151373006: Update Confirmation UI for saved password change (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 5 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 unified diff | Download patch
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 gfx { 10 namespace gfx {
11 class ImageSkia; 11 class ImageSkia;
12 class Range; 12 class Range;
13 } // namespace gfx 13 } // namespace gfx
14 14
15 class GURL; 15 class GURL;
16 16
17 // The desired width and height in pixels for an account avatar. 17 // The desired width and height in pixels for an account avatar.
18 extern const int kAvatarImageSize; 18 extern const int kAvatarImageSize;
19 19
20 // Crops and scales |image_skia| to the desired size for an account avatar. 20 // Crops and scales |image_skia| to the desired size for an account avatar.
21 gfx::ImageSkia ScaleImageForAccountAvatar(gfx::ImageSkia image_skia); 21 gfx::ImageSkia ScaleImageForAccountAvatar(gfx::ImageSkia image_skia);
22 22
23 // Sets the formatted |title| in the Save Password bubble. If the registry 23 // Sets the formatted |title| in the Save Password bubble or the Update Password
24 // bubble (depending on |is_update_password_bubble|). If the registry
24 // controlled domain of |user_visible_url| (i.e. the one seen in the omnibox) 25 // controlled domain of |user_visible_url| (i.e. the one seen in the omnibox)
25 // differs from the registry controlled domain of |form_origin_url|, sets 26 // differs from the registry controlled domain of |form_origin_url|, sets
26 // |IDS_SAVE_PASSWORD_TITLE| as the |title| so that it replaces "this site" in 27 // |IDS_SAVE_PASSWORD_TITLE| as the |title| so that it replaces "this site" in
27 // title text with output of |FormatUrlForSecurityDisplay(form_origin_url)|. 28 // title text with output of |FormatUrlForSecurityDisplay(form_origin_url)|.
28 // Otherwise, sets |IDS_SAVE_PASSWORD| as the |title| having "this site". 29 // Otherwise, sets |IDS_SAVE_PASSWORD| as the |title| having "this site".
29 // If |is_smartlock_branding_enabled| is true, sets the |title_link_range| for 30 // If |is_smartlock_branding_enabled| is true, sets the |title_link_range| for
30 // the "Google Smart Lock" text range to be set visibly as a hyperlink in the 31 // the "Google Smart Lock" text range to be set visibly as a hyperlink in the
31 // dialog bubble. 32 // dialog bubble.
32 void GetSavePasswordDialogTitleTextAndLinkRange( 33 void GetSavePasswordDialogTitleTextAndLinkRange(
33 const GURL& user_visible_url, 34 const GURL& user_visible_url,
34 const GURL& form_origin_url, 35 const GURL& form_origin_url,
35 bool is_smartlock_branding_enabled, 36 bool is_smartlock_branding_enabled,
37 bool is_update_password_bubble,
36 base::string16* title, 38 base::string16* title,
37 gfx::Range* title_link_range); 39 gfx::Range* title_link_range);
38 40
39 #endif // CHROME_BROWSER_UI_PASSWORDS_MANAGE_PASSWORDS_VIEW_UTILS_H_ 41 #endif // CHROME_BROWSER_UI_PASSWORDS_MANAGE_PASSWORDS_VIEW_UTILS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698