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

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

Issue 181011: [Mac] Make I-beam cursor match editing area. (Closed)
Patch Set: Created 11 years, 3 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
« no previous file with comments | « no previous file | chrome/browser/cocoa/autocomplete_text_field_cell.mm » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 // The following setup |keywordString_| or |hintString_| based on the 49 // The following setup |keywordString_| or |hintString_| based on the
50 // input, and set |fieldEditorNeedsReset_| if the layout of the field 50 // input, and set |fieldEditorNeedsReset_| if the layout of the field
51 // changed. 51 // changed.
52 - (void)setKeywordString:(NSString*)aString; 52 - (void)setKeywordString:(NSString*)aString;
53 - (void)setKeywordHintPrefix:(NSString*)prefixString 53 - (void)setKeywordHintPrefix:(NSString*)prefixString
54 image:(NSImage*)anImage 54 image:(NSImage*)anImage
55 suffix:(NSString*)suffixString; 55 suffix:(NSString*)suffixString;
56 - (void)setSearchHintString:(NSString*)aString; 56 - (void)setSearchHintString:(NSString*)aString;
57 - (void)clearKeywordAndHint; 57 - (void)clearKeywordAndHint;
58 58
59 // Return the portion of the cell to show the text cursor over.
60 - (NSRect)textCursorFrameForFrame:(NSRect)cellFrame;
61
59 // Return the portion of the cell to use for text display. 62 // Return the portion of the cell to use for text display.
60 - (NSRect)textFrameForFrame:(NSRect)cellFrame; 63 - (NSRect)textFrameForFrame:(NSRect)cellFrame;
61 64
62 @end 65 @end
63 66
64 // Internal methods here exposed for unit testing. 67 // Internal methods here exposed for unit testing.
65 @interface AutocompleteTextFieldCell (UnitTesting) 68 @interface AutocompleteTextFieldCell (UnitTesting)
66 69
67 @property(readonly) NSAttributedString* keywordString; 70 @property(readonly) NSAttributedString* keywordString;
68 @property(readonly) NSAttributedString* hintString; 71 @property(readonly) NSAttributedString* hintString;
69 72
70 @end 73 @end
OLDNEW
« 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