summaryrefslogtreecommitdiffstats
path: root/chrome/browser/cocoa/autocomplete_text_field_cell.h
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/cocoa/autocomplete_text_field_cell.h')
-rw-r--r--chrome/browser/cocoa/autocomplete_text_field_cell.h26
1 files changed, 8 insertions, 18 deletions
diff --git a/chrome/browser/cocoa/autocomplete_text_field_cell.h b/chrome/browser/cocoa/autocomplete_text_field_cell.h
index 2aa04a8..65749a6 100644
--- a/chrome/browser/cocoa/autocomplete_text_field_cell.h
+++ b/chrome/browser/cocoa/autocomplete_text_field_cell.h
@@ -4,20 +4,17 @@
#import <Cocoa/Cocoa.h>
+#import "chrome/browser/cocoa/styled_text_field_cell.h"
+
#include "base/scoped_nsobject.h"
#include "chrome/browser/cocoa/location_bar_view_mac.h"
-// AutocompleteTextFieldCell customizes the look of the Omnibox text
-// field. The border and focus ring are modified, as is the font
-// baseline.
-
-// The cell also provides support for certain decorations to be
-// applied to the field. These are the search hint ("Type to search"
-// on the right-hand side), the keyword hint ("Press [Tab] to search
-// Engine" on the right-hand side), and keyword mode ("Search Engine:"
-// in a button-like token on the left-hand side).
-
-@interface AutocompleteTextFieldCell : NSTextFieldCell {
+// AutocompleteTextFieldCell extends StyledTextFieldCell to provide support for
+// certain decorations to be applied to the field. These are the search hint
+// ("Type to search" on the right-hand side), the keyword hint ("Press [Tab] to
+// search Engine" on the right-hand side), and keyword mode ("Search Engine:" in
+// a button-like token on the left-hand side).
+@interface AutocompleteTextFieldCell : StyledTextFieldCell {
@private
// Set if there is a string to display in a rounded rect on the
// left-hand side of the field. Exclusive WRT |hintString_|.
@@ -58,13 +55,6 @@
// security_image_view_ to handle the click (i.e., show the page info dialog).
- (void)onSecurityIconMousePressed;
-// Return the portion of the cell to show the text cursor over.
-- (NSRect)textCursorFrameForFrame:(NSRect)cellFrame;
-
-// Return the portion of the cell to use for text display. This
-// corresponds to the frame with our added decorations sliced off.
-- (NSRect)textFrameForFrame:(NSRect)cellFrame;
-
// Return the portion of the cell to use for displaying the security (SSL lock)
// icon, leaving space for its label if any.
- (NSRect)securityImageFrameForFrame:(NSRect)cellFrame;