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

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

Issue 82193002: [rAC, OSX] Autofill text field hot keys. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Review fixes. 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_input_field.h
diff --git a/chrome/browser/ui/cocoa/autofill/autofill_input_field.h b/chrome/browser/ui/cocoa/autofill/autofill_input_field.h
index 8ed34b58765677d322abdbbc4be24a5c710b4319..24daab9fab04349c9c9f0007bfd66c8af9a2a1a5 100644
--- a/chrome/browser/ui/cocoa/autofill/autofill_input_field.h
+++ b/chrome/browser/ui/cocoa/autofill/autofill_input_field.h
@@ -21,6 +21,17 @@
// Delegate to handle editing events on the AutofillInputFields.
@protocol AutofillInputDelegate<NSObject>
+// Indicates if an event should be forwarded on.
+enum KeyEventHandled {
+ kKeyEventNotHandled,
+ kKeyEventHandled
+};
+
+// The input field received a key event. This should return kKeyEventHandled if
+// it handled the event, or kEventNotHandled if it should be forwarded to the
+// input's super class.
+- (KeyEventHandled)keyEvent:(NSEvent*)event forInput:(id)sender;
+
// Input field or its editor received a mouseDown: message.
- (void)onMouseDown:(NSControl<AutofillInputField>*)sender;

Powered by Google App Engine
This is Rietveld 408576698