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

Side by Side Diff: remoting/client/input/keyboard_interpreter.h

Issue 2868383003: [CRD iOS] Send key events to the session. (Closed)
Patch Set: Clean up old key input code. No longer used. 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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2017 The Chromium 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 #ifndef REMOTING_CLIENT_INPUT_KEYBOARD_INTERPRETER_H_
6 #define REMOTING_CLIENT_INPUT_KEYBOARD_INTERPRETER_H_
7
8 #include <string>
9
10 #include "base/macros.h"
11
joedow 2017/05/12 19:13:17 nit: remove newline
nicholss 2017/05/12 20:45:58 Done.
12 #include "remoting/client/chromoting_session.h"
13
14 namespace remoting {
15
16 class KeyboardInputStrategy;
17
18 // This is a class for interpreting raw keyboard input.
19 class KeyboardInterpreter {
20 public:
21 KeyboardInterpreter(ChromotingSession* input_stub);
joedow 2017/05/12 19:13:17 single param c'tors should be marked explicit.
nicholss 2017/05/12 20:45:58 Done.
22 ~KeyboardInterpreter();
23
24 // Delegates to |KeyboardInputStrategy| to covert the input and then sends
25 // the results to |ChromotingSession| via SendKeyEvent.
26 void HandleTextEvent(const std::string& text, uint8_t modifiers);
nicholss 2017/05/12 18:54:16 Modifiers are not used yet.
27 void HandleDeleteEvent(uint8_t modifiers);
28
29 private:
30 std::unique_ptr<KeyboardInputStrategy> input_strategy_;
31 ChromotingSession* input_stub_;
32
33 DISALLOW_COPY_AND_ASSIGN(KeyboardInterpreter);
34 };
35
36 } // namespace remoting
37 #endif // REMOTING_CLIENT_INPUT_KEYBOARD_INTERPRETER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698