diff options
author | shess@chromium.org <shess@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-07-16 04:56:06 +0000 |
---|---|---|
committer | shess@chromium.org <shess@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-07-16 04:56:06 +0000 |
commit | 6c14b76fede6abc592d9d65965fbdf4626e83efe (patch) | |
tree | a883217d4a1eee49750954f851188c5ca6fa6308 /chrome/browser/cocoa/autocomplete_text_field.mm | |
parent | eaf93d40a1230139c2e5b8b0772930f8a4aa3660 (diff) | |
download | chromium_src-6c14b76fede6abc592d9d65965fbdf4626e83efe.zip chromium_src-6c14b76fede6abc592d9d65965fbdf4626e83efe.tar.gz chromium_src-6c14b76fede6abc592d9d65965fbdf4626e83efe.tar.bz2 |
[Mac] Refactor location-bar autocomplete cell classes.
LocationBarCell -> AutocompleteTextFieldCell.
LocationBarFieldEditor -> AutocompleteTextFieldEditor.
AutocompleteTextField added as placeholder for future work (hints and
keyword search).
Review URL: http://codereview.chromium.org/149717
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@20853 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/cocoa/autocomplete_text_field.mm')
-rw-r--r-- | chrome/browser/cocoa/autocomplete_text_field.mm | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/chrome/browser/cocoa/autocomplete_text_field.mm b/chrome/browser/cocoa/autocomplete_text_field.mm new file mode 100644 index 0000000..0efb310a --- /dev/null +++ b/chrome/browser/cocoa/autocomplete_text_field.mm @@ -0,0 +1,20 @@ +// Copyright (c) 2009 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. + +#include "chrome/browser/cocoa/autocomplete_text_field.h" + +#include "base/logging.h" +#include "chrome/browser/cocoa/autocomplete_text_field_cell.h" + +@implementation AutocompleteTextField + ++ (Class)cellClass { + return [AutocompleteTextFieldCell class]; +} + +- (void)awakeFromNib { + DCHECK([[self cell] isKindOfClass:[AutocompleteTextFieldCell class]]); +} + +@end |