#import "flutter/shell/platform/darwin/macos/framework/Source/FlutterTextInputPlugin.h"
#import <Foundation/Foundation.h>
#import <objc/message.h>
#include <algorithm>
#include <memory>
#include "flutter/fml/platform/darwin/string_range_sanitization.h"
#include "flutter/shell/platform/common/text_editing_delta.h"
#include "flutter/shell/platform/common/text_input_model.h"
#import "flutter/shell/platform/darwin/common/framework/Headers/FlutterCodecs.h"
#import "flutter/shell/platform/darwin/macos/framework/Source/FlutterTextInputSemanticsObject.h"
#import "flutter/shell/platform/darwin/macos/framework/Source/FlutterViewController_Internal.h"
#import "flutter/shell/platform/darwin/macos/framework/Source/NSView+ClipsToBounds.h"
Go to the source code of this file.
Classes | |
category | NSEvent(KeyEquivalentMarker) |
Functions | |
typedef | NS_ENUM (NSUInteger, FlutterTextAffinity) |
static flutter::TextRange | RangeFromBaseExtent (NSNumber *base, NSNumber *extent, const flutter::TextRange &range) |
static NSString * | GetAutofillHint (NSDictionary *autofill) |
static NSTextContentType | GetTextContentType (NSDictionary *configuration) API_AVAILABLE(macos(11.0)) |
static BOOL | EnableAutocompleteForTextInputConfiguration (NSDictionary *configuration) |
static BOOL | EnableAutocomplete (NSDictionary *configuration) |
Variables | |
static NSString *const | kTextInputChannel = @"@"flutter/textinput" |
static NSString *const | kSetClientMethod = @"@"TextInput.setClient" |
static NSString *const | kShowMethod = @"@"TextInput.show" |
static NSString *const | kHideMethod = @"@"TextInput.hide" |
static NSString *const | kClearClientMethod = @"@"TextInput.clearClient" |
static NSString *const | kSetEditingStateMethod = @"@"TextInput.setEditingState" |
static NSString *const | kSetEditableSizeAndTransform = @"@"TextInput.setEditableSizeAndTransform" |
static NSString *const | kSetCaretRect = @"@"TextInput.setCaretRect" |
static NSString *const | kUpdateEditStateResponseMethod = @"@"TextInputClient.updateEditingState" |
static NSString *const | kUpdateEditStateWithDeltasResponseMethod |
static NSString *const | kPerformAction = @"@"TextInputClient.performAction" |
static NSString *const | kPerformSelectors = @"@"TextInputClient.performSelectors" |
static NSString *const | kMultilineInputType = @"@"TextInputType.multiline" |
static NSString *const | kSecureTextEntry = @"@"obscureText" |
static NSString *const | kTextInputAction = @"@"inputAction" |
static NSString *const | kEnableDeltaModel = @"@"enableDeltaModel" |
static NSString *const | kTextInputType = @"@"inputType" |
static NSString *const | kTextInputTypeName = @"@"name" |
static NSString *const | kSelectionBaseKey = @"@"selectionBase" |
static NSString *const | kSelectionExtentKey = @"@"selectionExtent" |
static NSString *const | kSelectionAffinityKey = @"@"selectionAffinity" |
static NSString *const | kSelectionIsDirectionalKey = @"@"selectionIsDirectional" |
static NSString *const | kComposingBaseKey = @"@"composingBase" |
static NSString *const | kComposingExtentKey = @"@"composingExtent" |
static NSString *const | kTextKey = @"@"text" |
static NSString *const | kTransformKey = @"@"transform" |
static NSString *const | kAssociatedAutofillFields = @"@"fields" |
static NSString *const | kAutofillProperties = @"@"autofill" |
static NSString *const | kAutofillId = @"@"uniqueIdentifier" |
static NSString *const | kAutofillEditingValue = @"@"editingValue" |
static NSString *const | kAutofillHints = @"@"hints" |
static NSString *const | kTextAffinityDownstream = @"@"TextAffinity.downstream" |
static NSString *const | kTextAffinityUpstream = @"@"TextAffinity.upstream" |
static NSString *const | kInputActionNewline = @"@"TextInputAction.newline" |
static char | markerKey |
CATransform3D | _editableTransform |
CGRect | _caretRect |
|
static |
Definition at line 158 of file FlutterTextInputPlugin.mm.
References EnableAutocompleteForTextInputConfiguration(), and kAssociatedAutofillFields.
|
static |
Definition at line 130 of file FlutterTextInputPlugin.mm.
References GetAutofillHint(), kAutofillProperties, and kSecureTextEntry.
Referenced by EnableAutocomplete().
|
static |
Definition at line 97 of file FlutterTextInputPlugin.mm.
References kAutofillHints.
Referenced by EnableAutocompleteForTextInputConfiguration(), and GetTextContentType().
|
static |
Definition at line 104 of file FlutterTextInputPlugin.mm.
References GetAutofillHint(), kAutofillProperties, and kSecureTextEntry.
typedef NS_ENUM | ( | NSUInteger | , |
FlutterTextAffinity | |||
) |
The affinity of the current cursor position. If the cursor is at a position representing a soft line break, the cursor may be drawn either at the end of the current line (upstream) or at the beginning of the next (downstream).
Definition at line 74 of file FlutterTextInputPlugin.mm.
|
static |
Definition at line 84 of file FlutterTextInputPlugin.mm.
CGRect _caretRect |
Current position of caret in local (editable) coordinates.
Definition at line 339 of file FlutterTextInputPlugin.mm.
Referenced by FlutterTextInputPlugin::initWithViewController:.
CATransform3D _editableTransform |
Transform for current the editable. Used to determine position of accent selection menu.
Definition at line 325 of file FlutterTextInputPlugin.mm.
Referenced by FlutterTextInputPlugin::initWithViewController:.
|
static |
Definition at line 53 of file FlutterTextInputPlugin.mm.
Referenced by EnableAutocomplete().
|
static |
Definition at line 58 of file FlutterTextInputPlugin.mm.
|
static |
Definition at line 59 of file FlutterTextInputPlugin.mm.
Referenced by GetAutofillHint().
|
static |
Definition at line 57 of file FlutterTextInputPlugin.mm.
|
static |
Definition at line 56 of file FlutterTextInputPlugin.mm.
Referenced by EnableAutocompleteForTextInputConfiguration(), and GetTextContentType().
|
static |
Definition at line 28 of file FlutterTextInputPlugin.mm.
|
static |
Definition at line 49 of file FlutterTextInputPlugin.mm.
|
static |
Definition at line 50 of file FlutterTextInputPlugin.mm.
|
static |
Definition at line 42 of file FlutterTextInputPlugin.mm.
|
static |
Definition at line 27 of file FlutterTextInputPlugin.mm.
|
static |
Definition at line 66 of file FlutterTextInputPlugin.mm.
|
static |
Definition at line 37 of file FlutterTextInputPlugin.mm.
|
static |
Definition at line 35 of file FlutterTextInputPlugin.mm.
|
static |
Definition at line 36 of file FlutterTextInputPlugin.mm.
|
static |
Definition at line 40 of file FlutterTextInputPlugin.mm.
Referenced by EnableAutocompleteForTextInputConfiguration(), and GetTextContentType().
|
static |
Definition at line 47 of file FlutterTextInputPlugin.mm.
|
static |
Definition at line 45 of file FlutterTextInputPlugin.mm.
|
static |
Definition at line 46 of file FlutterTextInputPlugin.mm.
|
static |
Definition at line 48 of file FlutterTextInputPlugin.mm.
|
static |
Definition at line 31 of file FlutterTextInputPlugin.mm.
|
static |
Definition at line 25 of file FlutterTextInputPlugin.mm.
|
static |
Definition at line 30 of file FlutterTextInputPlugin.mm.
|
static |
Definition at line 29 of file FlutterTextInputPlugin.mm.
|
static |
Definition at line 26 of file FlutterTextInputPlugin.mm.
|
static |
Definition at line 62 of file FlutterTextInputPlugin.mm.
|
static |
Definition at line 63 of file FlutterTextInputPlugin.mm.
|
static |
Definition at line 41 of file FlutterTextInputPlugin.mm.
|
static |
Definition at line 21 of file FlutterTextInputPlugin.mm.
|
static |
Definition at line 43 of file FlutterTextInputPlugin.mm.
|
static |
Definition at line 44 of file FlutterTextInputPlugin.mm.
|
static |
Definition at line 51 of file FlutterTextInputPlugin.mm.
|
static |
Definition at line 52 of file FlutterTextInputPlugin.mm.
|
static |
Definition at line 32 of file FlutterTextInputPlugin.mm.
|
static |
Definition at line 33 of file FlutterTextInputPlugin.mm.
|
static |
Definition at line 188 of file FlutterTextInputPlugin.mm.
Referenced by NSEvent(KeyEquivalentMarker)::markAsKeyEquivalent.