Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(5998)

Unified Diff: chrome/browser/ui/cocoa/autofill/autofill_textfield.h

Issue 51933002: [rAC, OSX] Autofill popup should be shown on 2nd click. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix test helper. Created 7 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/cocoa/autofill/autofill_textfield.h
diff --git a/chrome/browser/ui/cocoa/autofill/autofill_textfield.h b/chrome/browser/ui/cocoa/autofill/autofill_textfield.h
index f1c3c1658279fcfd696e952debaf4000929dd619..bd72e4104dcec672a0cd883c1bfc2fcbc402b023 100644
--- a/chrome/browser/ui/cocoa/autofill/autofill_textfield.h
+++ b/chrome/browser/ui/cocoa/autofill/autofill_textfield.h
@@ -15,10 +15,22 @@
@interface AutofillTextField : NSTextField<AutofillInputField,
NSTextFieldDelegate> {
@private
- id<AutofillInputDelegate> delegate_;
- base::scoped_nsobject<NSString> validityMessage_;
+ id<AutofillInputDelegate> delegate_;
+ base::scoped_nsobject<NSString> validityMessage_;
+
+ // |shouldFilterFirstClick_| ensures only the very first click after
+ // -becomeFirstResponder: is treated specially.
+ BOOL shouldFilterClick_;
+
+ // YES if the field is currently handling a click that caused the field to
+ // become first responder.
+ BOOL handlingFirstClick_;
}
+// Can be invoked by field editor to forward mouseDown messages from the field
+// editor to the AutofillTextField.
+- (void)onEditorMouseDown:(id)sender;
+
@end
@interface AutofillTextFieldCell : NSTextFieldCell<AutofillInputCell> {
« no previous file with comments | « chrome/browser/ui/cocoa/autofill/autofill_section_container.mm ('k') | chrome/browser/ui/cocoa/autofill/autofill_textfield.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698