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

Side by Side Diff: chrome/browser/cocoa/autocomplete_text_field_cell.h

Issue 222020: [Mac] Show the page info window after clicking the security icon in the URL bar (Closed)
Patch Set: Unit tests 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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 #import <Cocoa/Cocoa.h> 5 #import <Cocoa/Cocoa.h>
6 6
7 #include "base/scoped_nsobject.h" 7 #include "base/scoped_nsobject.h"
8 8
9 // AutocompleteTextFieldCell customizes the look of the Omnibox text 9 // AutocompleteTextFieldCell customizes the look of the Omnibox text
10 // field. The border and focus ring are modified, as is the font 10 // field. The border and focus ring are modified, as is the font
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 61
62 - (void)setHintIcon:(NSImage*)icon; 62 - (void)setHintIcon:(NSImage*)icon;
63 63
64 // Return the portion of the cell to show the text cursor over. 64 // Return the portion of the cell to show the text cursor over.
65 - (NSRect)textCursorFrameForFrame:(NSRect)cellFrame; 65 - (NSRect)textCursorFrameForFrame:(NSRect)cellFrame;
66 66
67 // Return the portion of the cell to use for text display. This 67 // Return the portion of the cell to use for text display. This
68 // corresponds to the frame with our added decorations sliced off. 68 // corresponds to the frame with our added decorations sliced off.
69 - (NSRect)textFrameForFrame:(NSRect)cellFrame; 69 - (NSRect)textFrameForFrame:(NSRect)cellFrame;
70 70
71 // Return the portion of the cell to use for displaing the |hintIcon_|.
72 - (NSRect)hintImageFrameForFrame:(NSRect)cellFrame;
73
71 @end 74 @end
72 75
73 // Internal methods here exposed for unit testing. 76 // Internal methods here exposed for unit testing.
74 @interface AutocompleteTextFieldCell (UnitTesting) 77 @interface AutocompleteTextFieldCell (UnitTesting)
75 78
76 @property(readonly) NSAttributedString* keywordString; 79 @property(readonly) NSAttributedString* keywordString;
77 @property(readonly) NSAttributedString* hintString; 80 @property(readonly) NSAttributedString* hintString;
78 @property(readonly) NSImage* hintIcon; 81 @property(readonly) NSImage* hintIcon;
79 82
80 @end 83 @end
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698