| // Copyright 2021 The Chromium Authors |
| // Use of this source code is governed by a BSD-style license that can be |
| // found in the LICENSE file. |
| |
| #ifndef IOS_CHROME_CREDENTIAL_PROVIDER_EXTENSION_UI_UI_UTIL_H_ |
| #define IOS_CHROME_CREDENTIAL_PROVIDER_EXTENSION_UI_UI_UTIL_H_ |
| |
| #import <UIKit/UIKit.h> |
| |
| @class ASCredentialServiceIdentifier; |
| |
| extern const CGFloat kUITableViewInsetGroupedTopSpace; |
| |
| // The user friendly host for a service identifier. |
| NSString* HostForServiceIdentifier( |
| ASCredentialServiceIdentifier* serviceIdentifier); |
| |
| // Prompt for the top of the navigation controller telling what the current site |
| // is. |
| NSString* PromptForServiceIdentifiers( |
| NSArray<ASCredentialServiceIdentifier*>* serviceIdentifiers); |
| |
| // Returns the icon to show or hide a password. |
| UIImage* GetPasswordVisibilityIcon(bool is_visible); |
| |
| // Returns the credential info icon. |
| UIImage* GetCredentialInfoIcon(); |
| |
| // Returns the note error icon. |
| UIImage* GetNoteErrorIcon(); |
| |
| #endif // IOS_CHROME_CREDENTIAL_PROVIDER_EXTENSION_UI_UI_UTIL_H_ |