| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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_NORMALIZING_INPUT_FILTER_MAC_H_ | 5 #ifndef REMOTING_CLIENT_NORMALIZING_INPUT_FILTER_MAC_H_ |
| 6 #define REMOTING_CLIENT_NORMALIZING_INPUT_FILTER_MAC_H_ | 6 #define REMOTING_CLIENT_NORMALIZING_INPUT_FILTER_MAC_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 | 9 |
| 10 #include "base/macros.h" |
| 10 #include "remoting/protocol/input_filter.h" | 11 #include "remoting/protocol/input_filter.h" |
| 11 | 12 |
| 12 namespace remoting { | 13 namespace remoting { |
| 13 | 14 |
| 14 // NormalizingInputFilterMac is designed to solve the problem of missing keyup | 15 // NormalizingInputFilterMac is designed to solve the problem of missing keyup |
| 15 // events on Mac. | 16 // events on Mac. |
| 16 // | 17 // |
| 17 // PROBLEM | 18 // PROBLEM |
| 18 // | 19 // |
| 19 // On Mac if user presses CMD and then C key there is no keyup event generated | 20 // On Mac if user presses CMD and then C key there is no keyup event generated |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 61 | 62 |
| 62 // A map that stores pressed keycodes and the corresponding key event. | 63 // A map that stores pressed keycodes and the corresponding key event. |
| 63 KeyPressedMap key_pressed_map_; | 64 KeyPressedMap key_pressed_map_; |
| 64 | 65 |
| 65 DISALLOW_COPY_AND_ASSIGN(NormalizingInputFilterMac); | 66 DISALLOW_COPY_AND_ASSIGN(NormalizingInputFilterMac); |
| 66 }; | 67 }; |
| 67 | 68 |
| 68 } // namespace remoting | 69 } // namespace remoting |
| 69 | 70 |
| 70 #endif // REMOTING_CLIENT_NORMALIZING_INPUT_FILTER_MAC_H_ | 71 #endif // REMOTING_CLIENT_NORMALIZING_INPUT_FILTER_MAC_H_ |
| OLD | NEW |