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

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

Issue 2854051: [Mac] Convert omnibox keyword hint to decoration. (Closed) Base URL: git://codf21.jail/chromium.git
Patch Set: Created 10 years, 5 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
Index: chrome/browser/cocoa/location_bar/autocomplete_text_field_cell.h
diff --git a/chrome/browser/cocoa/location_bar/autocomplete_text_field_cell.h b/chrome/browser/cocoa/location_bar/autocomplete_text_field_cell.h
index d1150e2f5db1926c4431358d2ce1a5e505ce0509..ddf71c93309a60ab8adce89ab8aaea57c33abf17 100644
--- a/chrome/browser/cocoa/location_bar/autocomplete_text_field_cell.h
+++ b/chrome/browser/cocoa/location_bar/autocomplete_text_field_cell.h
@@ -8,8 +8,6 @@
#import "chrome/browser/cocoa/styled_text_field_cell.h"
-#include "base/scoped_nsobject.h"
-
@class AutocompleteTextField;
class LocationBarDecoration;
@@ -24,25 +22,8 @@ class LocationBarDecoration;
// from outside in. Decorations are owned by |LocationBarViewMac|.
std::vector<LocationBarDecoration*> leftDecorations_;
std::vector<LocationBarDecoration*> rightDecorations_;
-
- // Set if there is a string to display as a hint on the right-hand
- // side of the field. Exclusive WRT |keywordString_|;
- scoped_nsobject<NSAttributedString> hintString_;
}
-// Chooses |anImage| only if all pieces won't fit w/in |width|.
-// Inputs must be non-nil.
-- (void)setKeywordHintPrefix:(NSString*)prefixString
- image:(NSImage*)anImage
- suffix:(NSString*)suffixString
- availableWidth:(CGFloat)width;
-
-// Suppresses hint entirely if |aString| won't fit w/in |width|.
-// String must be non-nil.
-- (void)setSearchHintString:(NSString*)aString
- availableWidth:(CGFloat)width;
-- (void)clearHint;
-
// Clear |leftDecorations_| and |rightDecorations_|.
- (void)clearDecorations;
@@ -88,11 +69,3 @@ class LocationBarDecoration;
- (NSRect)textCursorFrameForFrame:(NSRect)cellFrame;
@end
-
-// Internal methods here exposed for unit testing.
-@interface AutocompleteTextFieldCell (UnitTesting)
-
-@property(nonatomic, readonly) NSAttributedString* hintString;
-@property(nonatomic, readonly) NSAttributedString* hintIconLabel;
-
-@end

Powered by Google App Engine
This is Rietveld 408576698