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

Side by Side 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: Trying to fix "old chunk mismatch" 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_UI_COCOA_AUTOFILL_AUTOFILL_INPUT_FIELD_H_ 5 #ifndef CHROME_BROWSER_UI_COCOA_AUTOFILL_AUTOFILL_INPUT_FIELD_H_
6 #define CHROME_BROWSER_UI_COCOA_AUTOFILL_AUTOFILL_INPUT_FIELD_H_ 6 #define CHROME_BROWSER_UI_COCOA_AUTOFILL_AUTOFILL_INPUT_FIELD_H_
7 7
8 #import <Cocoa/Cocoa.h> 8 #import <Cocoa/Cocoa.h>
9 9
10 @protocol AutofillInputField; 10 @protocol AutofillInputField;
11 11
12 // Access to cell state for autofill input controls. 12 // Access to cell state for autofill input controls.
13 @protocol AutofillInputCell<NSObject> 13 @protocol AutofillInputCell<NSObject>
14 14
15 @property(nonatomic, assign) BOOL invalid; 15 @property(nonatomic, assign) BOOL invalid;
16 @property(nonatomic, copy) NSString* fieldValue; 16 @property(nonatomic, copy) NSString* fieldValue;
17 @property(nonatomic, copy) NSString* defaultValue; 17 @property(nonatomic, copy) NSString* defaultValue;
18 18
19 @end 19 @end
20 20
21 // Delegate to handle editing events on the AutofillInputFields. 21 // Delegate to handle editing events on the AutofillInputFields.
22 @protocol AutofillInputDelegate<NSObject> 22 @protocol AutofillInputDelegate<NSObject>
23 23
24 // Indicates if an event should be forwarded on.
25 enum KeyEventHandled {
26 kKeyEventNotHandled,
27 kKeyEventHandled
28 };
29
30 // keyEvent should return kKeyEventHandled if it handled the event, or
Robert Sesek 2013/11/22 16:52:39 |keyEvent| presumably references the method name,
groby-ooo-7-16 2013/11/22 21:31:32 Done.
31 // kEventNotHandled if it should be forwarded to the input's super class.
32 - (KeyEventHandled)keyEvent:(NSEvent*)event forInput:(id)sender;
33
24 // Input field or its editor received a mouseDown: message. 34 // Input field or its editor received a mouseDown: message.
25 - (void)onMouseDown:(NSControl<AutofillInputField>*)sender; 35 - (void)onMouseDown:(NSControl<AutofillInputField>*)sender;
26 36
27 // An input field just became first responder. 37 // An input field just became first responder.
28 - (void)fieldBecameFirstResponder:(NSControl<AutofillInputField>*)field; 38 - (void)fieldBecameFirstResponder:(NSControl<AutofillInputField>*)field;
29 39
30 // The user made changes to the value in the field. This is only invoked by 40 // The user made changes to the value in the field. This is only invoked by
31 // AutofillTextFields. 41 // AutofillTextFields.
32 - (void)didChange:(id)sender; 42 - (void)didChange:(id)sender;
33 43
(...skipping 20 matching lines...) Expand all
54 // field, everything else is a message to be displayed to the user when the 64 // field, everything else is a message to be displayed to the user when the
55 // field has firstResponder status. 65 // field has firstResponder status.
56 @property(nonatomic, copy) NSString* validityMessage; 66 @property(nonatomic, copy) NSString* validityMessage;
57 67
58 // A reflection of the state of the validityMessage described above. 68 // A reflection of the state of the validityMessage described above.
59 @property(nonatomic, readonly) BOOL invalid; 69 @property(nonatomic, readonly) BOOL invalid;
60 70
61 @end 71 @end
62 72
63 #endif // CHROME_BROWSER_UI_COCOA_AUTOFILL_AUTOFILL_INPUT_FIELD_H_ 73 #endif // CHROME_BROWSER_UI_COCOA_AUTOFILL_AUTOFILL_INPUT_FIELD_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698