OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 <stdint.h> | 5 #include <stdint.h> |
6 | 6 |
7 #include "mojo/converters/input_events/mojo_extended_key_event_data.h" | 7 #include "ui/events/mojo/mojo_extended_key_event_data.h" |
8 | 8 |
9 namespace mojo { | 9 namespace mojo { |
10 | 10 |
11 MojoExtendedKeyEventData::MojoExtendedKeyEventData(int32_t windows_key_code, | 11 MojoExtendedKeyEventData::MojoExtendedKeyEventData(int32_t windows_key_code, |
12 uint16_t text, | 12 uint16_t text, |
13 uint16_t unmodified_text) | 13 uint16_t unmodified_text) |
14 : windows_key_code_(windows_key_code), | 14 : windows_key_code_(windows_key_code), |
15 text_(text), | 15 text_(text), |
16 unmodified_text_(unmodified_text) { | 16 unmodified_text_(unmodified_text) { |
17 } | 17 } |
18 | 18 |
19 MojoExtendedKeyEventData::~MojoExtendedKeyEventData() {} | 19 MojoExtendedKeyEventData::~MojoExtendedKeyEventData() {} |
20 | 20 |
21 ui::ExtendedKeyEventData* MojoExtendedKeyEventData::Clone() const { | 21 ui::ExtendedKeyEventData* MojoExtendedKeyEventData::Clone() const { |
22 return new MojoExtendedKeyEventData(windows_key_code_, | 22 return new MojoExtendedKeyEventData(windows_key_code_, |
23 text_, | 23 text_, |
24 unmodified_text_); | 24 unmodified_text_); |
25 } | 25 } |
26 | 26 |
27 } // namespace mojo | 27 } // namespace mojo |
OLD | NEW |