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

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

Issue 337027: [Mac] Adjust Omnibox implementation to not break undo chain. (Closed)
Patch Set: Tweak a comment Created 11 years, 1 month 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 #ifndef CHROME_BROWSER_COCOA_AUTOCOMPLETE_TEXT_FIELD_H_ 5 #ifndef CHROME_BROWSER_COCOA_AUTOCOMPLETE_TEXT_FIELD_H_
6 #define CHROME_BROWSER_COCOA_AUTOCOMPLETE_TEXT_FIELD_H_ 6 #define CHROME_BROWSER_COCOA_AUTOCOMPLETE_TEXT_FIELD_H_
7 7
8 #import <Cocoa/Cocoa.h> 8 #import <Cocoa/Cocoa.h>
9 9
10 @class AutocompleteTextFieldCell; 10 @class AutocompleteTextFieldCell;
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 70
71 // If the keyword, keyword hint, or search hint changed, then the 71 // If the keyword, keyword hint, or search hint changed, then the
72 // field editor may need to be repositioned. 72 // field editor may need to be repositioned.
73 - (void)resetFieldEditorFrameIfNeeded; 73 - (void)resetFieldEditorFrameIfNeeded;
74 74
75 // Returns the amount of the field's width which is not being taken up 75 // Returns the amount of the field's width which is not being taken up
76 // by the text contents. May be negative if the contents are large 76 // by the text contents. May be negative if the contents are large
77 // enough to scroll. 77 // enough to scroll.
78 - (CGFloat)availableDecorationWidth; 78 - (CGFloat)availableDecorationWidth;
79 79
80 // Superclass aborts editing before changing the string, which causes
81 // problems for undo. This version modifies the field editor's
82 // contents if the control is already being edited.
83 - (void)setAttributedStringValue:(NSAttributedString*)aString;
84
80 @end 85 @end
81 86
82 #endif // CHROME_BROWSER_COCOA_AUTOCOMPLETE_TEXT_FIELD_H_ 87 #endif // CHROME_BROWSER_COCOA_AUTOCOMPLETE_TEXT_FIELD_H_
OLDNEW
« no previous file with comments | « chrome/browser/autocomplete/autocomplete_edit_view_mac.mm ('k') | chrome/browser/cocoa/autocomplete_text_field.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698