2019-01-31 14:14:43 -08:00
|
|
|
// Copyright 2013 The Flutter Authors. All rights reserved.
|
|
|
|
|
// Use of this source code is governed by a BSD-style license that can be
|
|
|
|
|
// found in the LICENSE file.
|
|
|
|
|
|
|
|
|
|
#import <Cocoa/Cocoa.h>
|
|
|
|
|
|
2019-06-17 11:24:41 -07:00
|
|
|
#import "flutter/shell/platform/darwin/common/framework/Headers/FlutterBinaryMessenger.h"
|
2019-08-14 15:53:17 -07:00
|
|
|
#import "flutter/shell/platform/darwin/macos/framework/Headers/FlutterViewController.h"
|
2019-01-31 14:14:43 -08:00
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* A plugin to handle text input.
|
|
|
|
|
*
|
|
|
|
|
* Responsible for bridging the native macOS text input system with the Flutter framework text
|
|
|
|
|
* editing classes, via system channels.
|
|
|
|
|
*
|
2019-08-14 15:53:17 -07:00
|
|
|
* This is not an FlutterPlugin since it needs access to FlutterViewController internals, so needs
|
|
|
|
|
* to be managed differently.
|
2019-01-31 14:14:43 -08:00
|
|
|
*/
|
2019-08-14 15:53:17 -07:00
|
|
|
@interface FlutterTextInputPlugin : NSResponder
|
2019-01-31 14:14:43 -08:00
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Initializes a text input plugin that coordinates key event handling with |viewController|.
|
|
|
|
|
*/
|
2019-08-14 15:53:17 -07:00
|
|
|
- (instancetype)initWithViewController:(FlutterViewController*)viewController;
|
2019-01-31 14:14:43 -08:00
|
|
|
|
|
|
|
|
@end
|