OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef REMOTING_CLIENT_KEY_EVENT_MAPPER_H_ | 5 #ifndef REMOTING_CLIENT_INPUT_KEY_EVENT_MAPPER_H_ |
6 #define REMOTING_CLIENT_KEY_EVENT_MAPPER_H_ | 6 #define REMOTING_CLIENT_INPUT_KEY_EVENT_MAPPER_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <map> | 10 #include <map> |
11 #include <set> | 11 #include <set> |
12 | 12 |
13 #include "base/callback.h" | 13 #include "base/callback.h" |
14 #include "base/compiler_specific.h" | 14 #include "base/compiler_specific.h" |
15 #include "base/macros.h" | 15 #include "base/macros.h" |
16 #include "remoting/protocol/input_filter.h" | 16 #include "remoting/protocol/input_filter.h" |
(...skipping 27 matching lines...) Expand all Loading... |
44 void InjectKeyEvent(const protocol::KeyEvent& event) override; | 44 void InjectKeyEvent(const protocol::KeyEvent& event) override; |
45 | 45 |
46 private: | 46 private: |
47 std::map<uint32_t, uint32_t> mapped_keys; | 47 std::map<uint32_t, uint32_t> mapped_keys; |
48 std::set<uint32_t> trapped_keys; | 48 std::set<uint32_t> trapped_keys; |
49 KeyTrapCallback trap_callback; | 49 KeyTrapCallback trap_callback; |
50 | 50 |
51 DISALLOW_COPY_AND_ASSIGN(KeyEventMapper); | 51 DISALLOW_COPY_AND_ASSIGN(KeyEventMapper); |
52 }; | 52 }; |
53 | 53 |
54 } // namespace remoting | 54 } // namespace remoting |
55 | 55 |
56 #endif // REMOTING_CLIENT_KEY_EVENT_MAPPER_H_ | 56 #endif // REMOTING_CLIENT_INPUT_KEY_EVENT_MAPPER_H_ |
OLD | NEW |