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

Unified Diff: remoting/ios/client_keyboard.h

Issue 2868383003: [CRD iOS] Send key events to the session. (Closed)
Patch Set: Removing the simple keyboard, not needed. Created 3 years, 7 months 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 side-by-side diff with in-line comments
Download patch
Index: remoting/ios/client_keyboard.h
diff --git a/remoting/ios/client_keyboard.h b/remoting/ios/client_keyboard.h
index c84612204065472078d220121cbe926f8120876e..7f9dee4be10941b769abfc1da2bb4d7546b093bb 100644
--- a/remoting/ios/client_keyboard.h
+++ b/remoting/ios/client_keyboard.h
@@ -8,6 +8,11 @@
#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
+@protocol ClientKeyboardDelegate<NSObject>
+- (void)clientKeyboardShouldSend:(NSString*)text;
+- (void)clientKeyboardShouldDelete;
+@end
+
@interface ClientKeyboard : UIView<UIKeyInput, UITextInputTraits>
@property(nonatomic) UIKeyboardAppearance keyboardAppearance;
@@ -16,6 +21,8 @@
@property(nonatomic) UITextAutocorrectionType autocorrectionType;
@property(nonatomic) UITextSpellCheckingType spellCheckingType;
+// This delegate is used to call back to handler key entry.
+@property(weak, nonatomic) id<ClientKeyboardDelegate> delegate;
Yuwei 2017/05/16 00:47:30 Have you considered just storing and using Keyboar
nicholss 2017/05/16 17:13:39 I have, there is a comment about that from last re
@end
#endif // REMOTING_CLIENT_IOS_CLIENT_KEYBOARD_H_

Powered by Google App Engine
This is Rietveld 408576698