forked from flutter/engine
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Hardware Keyboard: iOS (flutter#25961)
Implement new keyboard event system for iOS.
- Loading branch information
1 parent
b243070
commit 50b5b3f
Showing
48 changed files
with
4,299 additions
and
296 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
29 changes: 29 additions & 0 deletions
29
shell/platform/darwin/ios/framework/Source/FlutterChannelKeyResponder.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
// 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. | ||
|
||
#ifndef FLUTTER_SHELL_PLATFORM_DARWIN_IOS_FRAMEWORK_SOURCE_FLUTTER_CHANNEL_KEY_RESPONDER_H_ | ||
#define FLUTTER_SHELL_PLATFORM_DARWIN_IOS_FRAMEWORK_SOURCE_FLUTTER_CHANNEL_KEY_RESPONDER_H_ | ||
|
||
#import "flutter/shell/platform/darwin/ios/framework/Source/FlutterKeyPrimaryResponder.h" | ||
|
||
#import <UIKit/UIKit.h> | ||
|
||
#import "flutter/shell/platform/darwin/common/framework/Headers/FlutterChannels.h" | ||
|
||
/** | ||
* A primary responder of |FlutterKeyboardManager| that handles events by | ||
* sending the raw information through a method channel. | ||
* | ||
* This class corresponds to the RawKeyboard API in the framework. | ||
*/ | ||
@interface FlutterChannelKeyResponder : NSObject <FlutterKeyPrimaryResponder> | ||
|
||
/** | ||
* Create an instance by specifying the method channel to use. | ||
*/ | ||
- (nonnull instancetype)initWithChannel:(nonnull FlutterBasicMessageChannel*)channel; | ||
|
||
@end | ||
|
||
#endif // FLUTTER_SHELL_PLATFORM_DARWIN_IOS_FRAMEWORK_SOURCE_FLUTTER_CHANNEL_KEY_RESPONDER_H_ |
Oops, something went wrong.