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

Side by Side Diff: chrome/browser/ui/cocoa/passwords/credential_item_button.h

Issue 2703253007: Use (i) icon and the same tooltip for the credit cards dialog and account chooser on Mac. (Closed)
Patch Set: rebase Created 3 years, 9 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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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_COCOA_PASSWORDS_CREDENTIAL_ITEM_BUTTON_H_ 5 #ifndef CHROME_BROWSER_UI_COCOA_PASSWORDS_CREDENTIAL_ITEM_BUTTON_H_
6 #define CHROME_BROWSER_UI_COCOA_PASSWORDS_CREDENTIAL_ITEM_BUTTON_H_ 6 #define CHROME_BROWSER_UI_COCOA_PASSWORDS_CREDENTIAL_ITEM_BUTTON_H_
7 7
8 #import <Cocoa/Cocoa.h> 8 #import <Cocoa/Cocoa.h>
9 9
10 #include "components/password_manager/core/common/credential_manager_types.h" 10 #include "components/password_manager/core/common/credential_manager_types.h"
11 #import "ui/base/cocoa/hover_button.h" 11 #import "ui/base/cocoa/hover_button.h"
12 12
13 namespace autofill { 13 namespace autofill {
14 struct PasswordForm; 14 struct PasswordForm;
15 } // namespace autofill 15 } // namespace autofill
16 16
17 // A custom button that allows for setting a background color when hovered over. 17 // A custom button that allows for setting a background color when hovered over.
18 @interface CredentialItemButton : HoverButton 18 @interface CredentialItemButton : HoverButton
19 @property(nonatomic) autofill::PasswordForm* passwordForm; 19 @property(nonatomic) autofill::PasswordForm* passwordForm;
20 @property(nonatomic) password_manager::CredentialType credentialType; 20 @property(nonatomic) password_manager::CredentialType credentialType;
21 21
22 - (id)initWithFrame:(NSRect)frameRect 22 - (id)initWithFrame:(NSRect)frameRect
23 backgroundColor:(NSColor*)backgroundColor 23 backgroundColor:(NSColor*)backgroundColor
24 hoverColor:(NSColor*)hoverColor; 24 hoverColor:(NSColor*)hoverColor;
25
26 // Adds (i) icon with a tooltip to the view.
27 - (NSView*)addInfoIcon:(NSString*)tooltip;
28
29 // Returns an image to be used as a default avatar.
25 + (NSImage*)defaultAvatar; 30 + (NSImage*)defaultAvatar;
26 @end 31 @end
27 32
28 #endif // CHROME_BROWSER_UI_COCOA_PASSWORDS_CREDENTIAL_ITEM_BUTTON_H_ 33 #endif // CHROME_BROWSER_UI_COCOA_PASSWORDS_CREDENTIAL_ITEM_BUTTON_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698