From 68ffae9bd14821f934428e3405bf7abd0292081b Mon Sep 17 00:00:00 2001 From: "dhollowa@chromium.org" Date: Tue, 16 Feb 2010 23:53:47 +0000 Subject: 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 --- chrome/browser/autofill/autofill_text_field_mac.h | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 chrome/browser/autofill/autofill_text_field_mac.h (limited to 'chrome/browser/autofill/autofill_text_field_mac.h') 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 + +// 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_ -- cgit v1.1