summaryrefslogtreecommitdiffstats
path: root/chrome/browser/autofill/autofill_text_field_mac.h
diff options
context:
space:
mode:
authordhollowa@chromium.org <dhollowa@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-02-16 23:53:47 +0000
committerdhollowa@chromium.org <dhollowa@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-02-16 23:53:47 +0000
commit68ffae9bd14821f934428e3405bf7abd0292081b (patch)
treefd9f8213b3f5ab98223179d3237392f50addd809 /chrome/browser/autofill/autofill_text_field_mac.h
parent00642a43c6e1b37d6ba869fc8ba0256e8958b761 (diff)
downloadchromium_src-68ffae9bd14821f934428e3405bf7abd0292081b.zip
chromium_src-68ffae9bd14821f934428e3405bf7abd0292081b.tar.gz
chromium_src-68ffae9bd14821f934428e3405bf7abd0292081b.tar.bz2
Adding UI behavioral improvements for managing tabbing between form fields where the form is embedded within an NSScrollView. Also, when a disclosure view closes, its "content" should be disabled from the point-of-view of receiving tabbing focus.
Nib file changes add the new |detailsView_| outlet to disclosure views. Also changed text fields to AutoFillTextFields to pick up auto-scrolling behavior. BUG=33029 TEST=unit_tests --gtest_filter=AutoFillDialogControllerTest.* Review URL: http://codereview.chromium.org/606067 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@39161 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/autofill/autofill_text_field_mac.h')
-rw-r--r--chrome/browser/autofill/autofill_text_field_mac.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/chrome/browser/autofill/autofill_text_field_mac.h b/chrome/browser/autofill/autofill_text_field_mac.h
new file mode 100644
index 0000000..559b0a8
--- /dev/null
+++ b/chrome/browser/autofill/autofill_text_field_mac.h
@@ -0,0 +1,18 @@
+// Copyright (c) 2010 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.
+
+#ifndef CHROME_BROWSER_AUTOFILL_AUTOFILL_TEXT_FIELD_MAC_
+#define CHROME_BROWSER_AUTOFILL_AUTOFILL_TEXT_FIELD_MAC_
+
+#import <Cocoa/Cocoa.h>
+
+// Subclass of NSTextField that automatically scrolls containing NSScrollView
+// to visually reveal the text field. When the user tabs between text fields
+// embedded in a scrolling view they'd like the "first responder" to be visible.
+// This class helps achieve that.
+@interface AutoFillTextField : NSTextField {
+}
+@end
+
+#endif // CHROME_BROWSER_AUTOFILL_AUTOFILL_TEXT_FIELD_MAC_