diff options
Diffstat (limited to 'chrome/browser/ui')
-rw-r--r-- | chrome/browser/ui/cocoa/location_bar/autocomplete_text_field.mm | 7 | ||||
-rw-r--r-- | chrome/browser/ui/cocoa/styled_text_field.mm | 13 |
2 files changed, 13 insertions, 7 deletions
diff --git a/chrome/browser/ui/cocoa/location_bar/autocomplete_text_field.mm b/chrome/browser/ui/cocoa/location_bar/autocomplete_text_field.mm index 7077e1a..3d454bb 100644 --- a/chrome/browser/ui/cocoa/location_bar/autocomplete_text_field.mm +++ b/chrome/browser/ui/cocoa/location_bar/autocomplete_text_field.mm @@ -1,4 +1,4 @@ -// Copyright (c) 2010 The Chromium Authors. All rights reserved. +// Copyright (c) 2011 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. @@ -177,11 +177,6 @@ [self updateCursorAndToolTipRects]; } -// Due to theming, parts of the field are transparent. -- (BOOL)isOpaque { - return NO; -} - - (void)setAttributedStringValue:(NSAttributedString*)aString { AutocompleteTextFieldEditor* editor = static_cast<AutocompleteTextFieldEditor*>([self currentEditor]); diff --git a/chrome/browser/ui/cocoa/styled_text_field.mm b/chrome/browser/ui/cocoa/styled_text_field.mm index 31dd3a7..ac88ae3 100644 --- a/chrome/browser/ui/cocoa/styled_text_field.mm +++ b/chrome/browser/ui/cocoa/styled_text_field.mm @@ -1,4 +1,4 @@ -// Copyright (c) 2009 The Chromium Authors. All rights reserved. +// Copyright (c) 2011 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. @@ -58,4 +58,15 @@ const NSRect bounds([self bounds]); return NSWidth(bounds) - size.width; } + +- (NSFocusRingType)focusRingType { + // This is taken care of by the custom drawing code in the cell. + return NSFocusRingTypeNone; +} + +// Due to theming, parts of the field are transparent. +- (BOOL)isOpaque { + return NO; +} + @end |