Have the background for the URL text field in the bookmark editor present as red when the URL is not properly formed.
BUG=17612
TEST=Type an unacceptable character in the URL field or leave the URL field blank and observe a red background.
Review URL: http://codereview.chromium.org/837010
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@43043 0039d316-1c4b-4281-b951-d872f2087c98
diff --git a/chrome/browser/cocoa/bookmark_editor_controller.h b/chrome/browser/cocoa/bookmark_editor_controller.h
index 1fcf5f7..864840eb 100644
--- a/chrome/browser/cocoa/bookmark_editor_controller.h
+++ b/chrome/browser/cocoa/bookmark_editor_controller.h
@@ -15,6 +15,7 @@
const BookmarkNode* node_; // weak; owned by the model
scoped_nsobject<NSString> initialUrl_;
NSString* displayURL_; // Bound to a text field in the dialog.
+ IBOutlet NSTextField* urlField_;
}
@property (copy) NSString* displayURL;
@@ -28,4 +29,8 @@
@end
+@interface BookmarkEditorController (UnitTesting)
+- (NSColor *)urlFieldColor;
+@end
+
#endif /* CHROME_BROWSER_COCOA_BOOKMARK_EDITOR_CONTROLLER_H_ */