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

Unified Diff: chrome/browser/cocoa/autocomplete_text_field_cell.h

Issue 216031: Add EV certificate text to the Mac location bar... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 2 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/browser/cocoa/autocomplete_text_field_cell.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/cocoa/autocomplete_text_field_cell.h
===================================================================
--- chrome/browser/cocoa/autocomplete_text_field_cell.h (revision 28476)
+++ chrome/browser/cocoa/autocomplete_text_field_cell.h (working copy)
@@ -40,6 +40,11 @@
// Icon that represents the state of the SSL connection
scoped_nsobject<NSImage> hintIcon_;
+
+ // Optional text that appears to the right of the hint icon which
+ // appears only alongside the icon (i.e., it's possible to display a
+ // hintIcon without an hintIconLabel, but not vice-versa).
+ scoped_nsobject<NSAttributedString> hintIconLabel_;
}
@property BOOL fieldEditorNeedsReset;
@@ -59,7 +64,9 @@
- (void)setSearchHintString:(NSString*)aString;
- (void)clearKeywordAndHint;
-- (void)setHintIcon:(NSImage*)icon;
+// Sets the hint icon and optional icon label. If |icon| is nil, the current
+// icon is cleared. If |label| is provided, |color| must be provided as well.
+- (void)setHintIcon:(NSImage*)icon label:(NSString*)label color:(NSColor*)color;
// Return the portion of the cell to show the text cursor over.
- (NSRect)textCursorFrameForFrame:(NSRect)cellFrame;
@@ -79,5 +86,6 @@
@property(readonly) NSAttributedString* keywordString;
@property(readonly) NSAttributedString* hintString;
@property(readonly) NSImage* hintIcon;
+@property(readonly) NSAttributedString* hintIconLabel;
@end
« no previous file with comments | « no previous file | chrome/browser/cocoa/autocomplete_text_field_cell.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698