OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 "mojo/services/public/cpp/input_events/input_events_type_converters.h" | 5 #include "mojo/services/public/cpp/input_events/input_events_type_converters.h" |
6 | 6 |
7 #include "mojo/services/public/cpp/geometry/geometry_type_converters.h" | 7 #include "mojo/services/public/cpp/geometry/geometry_type_converters.h" |
8 #include "ui/events/keycodes/keyboard_codes.h" | 8 #include "ui/events/keycodes/keyboard_codes.h" |
9 | 9 |
10 namespace mojo { | 10 namespace mojo { |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
51 case ui::ET_KEY_RELEASED: | 51 case ui::ET_KEY_RELEASED: |
52 ui_event.reset(new ui::KeyEvent( | 52 ui_event.reset(new ui::KeyEvent( |
53 static_cast<ui::EventType>(input->action), | 53 static_cast<ui::EventType>(input->action), |
54 static_cast<ui::KeyboardCode>( | 54 static_cast<ui::KeyboardCode>( |
55 input->key_data->key_code), | 55 input->key_data->key_code), |
56 input->flags, | 56 input->flags, |
57 input->key_data->is_char)); | 57 input->key_data->is_char)); |
58 break; | 58 break; |
59 default: | 59 default: |
60 // TODO: support other types. | 60 // TODO: support other types. |
61 NOTIMPLEMENTED(); | 61 // NOTIMPLEMENTED(); |
| 62 ; |
62 } | 63 } |
63 // TODO: need to support time_stamp. | 64 // TODO: need to support time_stamp. |
64 return ui_event.Pass(); | 65 return ui_event.Pass(); |
65 } | 66 } |
66 | 67 |
67 } // namespace mojo | 68 } // namespace mojo |
OLD | NEW |