Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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_UI_COCOA_AUTOFILL_AUTOFILL_TEXTFIELD_H_ | 5 #ifndef CHROME_BROWSER_UI_COCOA_AUTOFILL_AUTOFILL_TEXTFIELD_H_ |
| 6 #define CHROME_BROWSER_UI_COCOA_AUTOFILL_AUTOFILL_TEXTFIELD_H_ | 6 #define CHROME_BROWSER_UI_COCOA_AUTOFILL_AUTOFILL_TEXTFIELD_H_ |
| 7 | 7 |
| 8 #import <Cocoa/Cocoa.h> | 8 #import <Cocoa/Cocoa.h> |
| 9 | 9 |
| 10 #include <base/memory/scoped_nsobject.h> | 10 #include <base/mac/scoped_nsobject.h> |
|
Mark Mentovai
2013/06/24 21:29:48
Use "quotes" to #include this.
| |
| 11 | 11 |
| 12 // Text field used for text inputs inside Autofill. | 12 // Text field used for text inputs inside Autofill. |
| 13 // Provide both dog ear and red outline when the contents are marked invalid. | 13 // Provide both dog ear and red outline when the contents are marked invalid. |
| 14 @interface AutofillTextField : NSTextField | 14 @interface AutofillTextField : NSTextField |
| 15 @end | 15 @end |
| 16 | 16 |
| 17 @interface AutofillTextFieldCell : NSTextFieldCell { | 17 @interface AutofillTextFieldCell : NSTextFieldCell { |
| 18 @private | 18 @private |
| 19 BOOL invalid_; | 19 BOOL invalid_; |
| 20 scoped_nsobject<NSImage> icon_; | 20 base::scoped_nsobject<NSImage> icon_; |
| 21 } | 21 } |
| 22 | 22 |
| 23 @property(assign, nonatomic) BOOL invalid; | 23 @property(assign, nonatomic) BOOL invalid; |
| 24 @property(nonatomic, retain, getter=icon, setter=setIcon:) NSImage* icon; | 24 @property(nonatomic, retain, getter=icon, setter=setIcon:) NSImage* icon; |
| 25 | 25 |
| 26 @end | 26 @end |
| 27 | 27 |
| 28 #endif // CHROME_BROWSER_UI_COCOA_AUTOFILL_AUTOFILL_TEXTFIELD_H_ | 28 #endif // CHROME_BROWSER_UI_COCOA_AUTOFILL_AUTOFILL_TEXTFIELD_H_ |
| OLD | NEW |