1 // Copyright 2013 The Flutter Authors. All rights reserved. 2 // Use of this source code is governed by a BSD-style license that can be 3 // found in the LICENSE file. 4 5 #import <Cocoa/Cocoa.h> 6 7 #import "flutter/shell/platform/darwin/common/framework/Headers/FlutterBinaryMessenger.h" 8 #import "flutter/shell/platform/darwin/macos/framework/Headers/FlutterViewController.h" 9 10 /** 11 * A plugin to handle text input. 12 * 13 * Responsible for bridging the native macOS text input system with the Flutter framework text 14 * editing classes, via system channels. 15 * 16 * This is not an FlutterPlugin since it needs access to FlutterViewController internals, so needs 17 * to be managed differently. 18 */ 19 @interface FlutterTextInputPlugin : NSResponder 20 21 /** 22 * Initializes a text input plugin that coordinates key event handling with |viewController|. 23 */ 24 - (instancetype)initWithViewController:(FlutterViewController*)viewController; 25 26 @end 27