diff options
author | jrg@chromium.org <jrg@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-08-05 17:28:39 +0000 |
---|---|---|
committer | jrg@chromium.org <jrg@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-08-05 17:28:39 +0000 |
commit | 12e25ac5e01acee370b7467cf880b9eef6a6e2af (patch) | |
tree | 8da639f80c838870c65bd66789419da4e4a867d1 /chrome/browser/cocoa/bookmark_editor_controller.h | |
parent | 618c071b507f071ebb5591e4427f2d63b4fab538 (diff) | |
download | chromium_src-12e25ac5e01acee370b7467cf880b9eef6a6e2af.zip chromium_src-12e25ac5e01acee370b7467cf880b9eef6a6e2af.tar.gz chromium_src-12e25ac5e01acee370b7467cf880b9eef6a6e2af.tar.bz2 |
On bookmark edit, the OK button is now disabled if the entered URL is
invalid (e.g. is the empty string). The Cancel button is never
disabled.
BUG=http://crbug.com/17006
TEST=Right click on a bookmark button to edit it.
Make sure OK is enabled.
Set URL to "" (the empty string).
Make sure OK is DISabled.
Set URL to "x".
Make sure OK is enabled.
Review URL: http://codereview.chromium.org/160628
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@22490 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/cocoa/bookmark_editor_controller.h')
-rw-r--r-- | chrome/browser/cocoa/bookmark_editor_controller.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/chrome/browser/cocoa/bookmark_editor_controller.h b/chrome/browser/cocoa/bookmark_editor_controller.h index e297ea3..742fbd1 100644 --- a/chrome/browser/cocoa/bookmark_editor_controller.h +++ b/chrome/browser/cocoa/bookmark_editor_controller.h @@ -18,6 +18,7 @@ IBOutlet NSTextField* nameField_; IBOutlet NSTextField* urlField_; IBOutlet NSBrowser* browser_; + IBOutlet NSButton* okButton_; IBOutlet NSButton* newFolderButton_; NSWindow* parentWindow_; @@ -47,6 +48,7 @@ @interface BookmarkEditorController(TestingAPI) @property (assign) NSString* displayName; @property (assign) NSString* displayURL; +@property (readonly) BOOL okButtonEnabled; @end |