| 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 #ifndef CHROME_BROWSER_UI_COCOA_PASSWORDS_PASSWORDS_BUBBLE_UTILS_H_ | 5 #ifndef CHROME_BROWSER_UI_COCOA_PASSWORDS_PASSWORDS_BUBBLE_UTILS_H_ |
| 6 #define CHROME_BROWSER_UI_COCOA_PASSWORDS_PASSWORDS_BUBBLE_UTILS_H_ | 6 #define CHROME_BROWSER_UI_COCOA_PASSWORDS_PASSWORDS_BUBBLE_UTILS_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #import <Cocoa/Cocoa.h> | 10 #import <Cocoa/Cocoa.h> |
| (...skipping 29 matching lines...) Expand all Loading... |
| 40 std::pair<CGFloat, CGFloat> GetResizedColumns( | 40 std::pair<CGFloat, CGFloat> GetResizedColumns( |
| 41 CGFloat maxWidth, | 41 CGFloat maxWidth, |
| 42 std::pair<CGFloat, CGFloat> columnsWidth); | 42 std::pair<CGFloat, CGFloat> columnsWidth); |
| 43 | 43 |
| 44 // Returns a password text field initialized with |text|. | 44 // Returns a password text field initialized with |text|. |
| 45 NSSecureTextField* PasswordLabel(const base::string16& text); | 45 NSSecureTextField* PasswordLabel(const base::string16& text); |
| 46 | 46 |
| 47 // Returns a button of the standard style for the bubble. | 47 // Returns a button of the standard style for the bubble. |
| 48 NSButton* DialogButton(NSString* title); | 48 NSButton* DialogButton(NSString* title); |
| 49 | 49 |
| 50 // Returns a NSRegularControlSize button. It's used for improving the contrast |
| 51 // due to Accessabilty standards. |
| 52 NSButton* BiggerDialogButton(NSString* title); |
| 53 |
| 50 // Returns a title label with |text| for a bubble. Nonempty |range| may specify | 54 // Returns a title label with |text| for a bubble. Nonempty |range| may specify |
| 51 // a link range. | 55 // a link range. |
| 52 HyperlinkTextView* TitleBubbleLabelWithLink(const base::string16& text, | 56 HyperlinkTextView* TitleBubbleLabelWithLink(const base::string16& text, |
| 53 gfx::Range range, | 57 gfx::Range range, |
| 54 id<NSTextViewDelegate> delegate); | 58 id<NSTextViewDelegate> delegate); |
| 55 | 59 |
| 56 // Returns a title label with |text| for a dialog. Nonempty |range| may specify | 60 // Returns a title label with |text| for a dialog. Nonempty |range| may specify |
| 57 // a link range. | 61 // a link range. |
| 58 HyperlinkTextView* TitleDialogLabelWithLink(const base::string16& text, | 62 HyperlinkTextView* TitleDialogLabelWithLink(const base::string16& text, |
| 59 gfx::Range range, | 63 gfx::Range range, |
| 60 id<NSTextViewDelegate> delegate); | 64 id<NSTextViewDelegate> delegate); |
| 61 | 65 |
| 62 // Returns a label with |text| and small font. Nonempty |range| may specify a | 66 // Returns a label with |text| and small font. Nonempty |range| may specify a |
| 63 // link range. | 67 // link range. |
| 64 HyperlinkTextView* LabelWithLink(const base::string16& text, | 68 HyperlinkTextView* LabelWithLink(const base::string16& text, |
| 65 SkColor color, | 69 SkColor color, |
| 66 gfx::Range range, | 70 gfx::Range range, |
| 67 id<NSTextViewDelegate> delegate); | 71 id<NSTextViewDelegate> delegate); |
| 68 | 72 |
| 69 #endif // CHROME_BROWSER_UI_COCOA_PASSWORDS_PASSWORDS_BUBBLE_UTILS_H_ | 73 #endif // CHROME_BROWSER_UI_COCOA_PASSWORDS_PASSWORDS_BUBBLE_UTILS_H_ |
| OLD | NEW |