| OLD | NEW | 
|---|
| 1 // Copyright 2014 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 #include "remoting/protocol/input_filter.h" | 5 #ifndef REMOTING_CLIENT_NORMALIZING_INPUT_FILTER_CROS_H_ | 
|  | 6 #define REMOTING_CLIENT_NORMALIZING_INPUT_FILTER_CROS_H_ | 
| 6 | 7 | 
| 7 #include "remoting/proto/event.pb.h" | 8 #include "remoting/proto/event.pb.h" | 
|  | 9 #include "remoting/protocol/input_filter.h" | 
| 8 | 10 | 
| 9 namespace remoting { | 11 namespace remoting { | 
| 10 | 12 | 
| 11 // NormalizingInputFilterCros addresses the problems generated by key rewritings | 13 // NormalizingInputFilterCros addresses the problems generated by key rewritings | 
| 12 // such as Down->PageDown, 1->F1, etc, when keys are pressed in combination with | 14 // such as Down->PageDown, 1->F1, etc, when keys are pressed in combination with | 
| 13 // the OSKey (aka Search). Rewriting OSKey+Down, for example, causes us to | 15 // the OSKey (aka Search). Rewriting OSKey+Down, for example, causes us to | 
| 14 // receive the following: | 16 // receive the following: | 
| 15 // | 17 // | 
| 16 // keydown OSKey | 18 // keydown OSKey | 
| 17 // keydown PageDown | 19 // keydown PageDown | 
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 52   bool left_alt_is_pressed_; | 54   bool left_alt_is_pressed_; | 
| 53 | 55 | 
| 54   // Previous mouse coordinates. | 56   // Previous mouse coordinates. | 
| 55   int previous_mouse_x_; | 57   int previous_mouse_x_; | 
| 56   int previous_mouse_y_; | 58   int previous_mouse_y_; | 
| 57 | 59 | 
| 58   DISALLOW_COPY_AND_ASSIGN(NormalizingInputFilterCros); | 60   DISALLOW_COPY_AND_ASSIGN(NormalizingInputFilterCros); | 
| 59 }; | 61 }; | 
| 60 | 62 | 
| 61 }  // namespace remoting | 63 }  // namespace remoting | 
|  | 64 | 
|  | 65 #endif  // REMOTING_CLIENT_NORMALIZING_INPUT_FILTER_CROS_H_ | 
| OLD | NEW | 
|---|