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

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

Issue 2868383003: [CRD iOS] Send key events to the session. (Closed)
Patch Set: Update based on feedback. 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 #include "remoting/client/input/keyboard_interpreter.h"
6
7 #include "base/logging.h"
8 #include "remoting/client/input/text_keyboard_input_strategy.h"
9
10 namespace remoting {
11
12 KeyboardInterpreter::KeyboardInterpreter(ClientInputInjector* input_injector) {
13 // TODO(nicholss): This should be configurable.
14 input_strategy_.reset(new TextKeyboardInputStrategy(input_injector));
15 }
16
17 KeyboardInterpreter::~KeyboardInterpreter() {}
18
19 void KeyboardInterpreter::HandleTextEvent(const std::string& text,
20 uint8_t modifiers) {
21 input_strategy_->HandleTextEvent(text, modifiers);
22 }
23
24 void KeyboardInterpreter::HandleDeleteEvent(uint8_t modifiers) {
25 input_strategy_->HandleDeleteEvent(modifiers);
26 }
27
28 } // namespace remoting
OLDNEW
« no previous file with comments | « remoting/client/input/keyboard_interpreter.h ('k') | remoting/client/input/text_keyboard_input_strategy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698