| 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 "ui/events/ozone/evdev/keyboard_evdev.h" | 5 #include "ui/events/ozone/evdev/keyboard_evdev.h" |
| 6 | 6 |
| 7 #include "base/single_thread_task_runner.h" | 7 #include "base/single_thread_task_runner.h" |
| 8 #include "base/thread_task_runner_handle.h" | 8 #include "base/threading/thread_task_runner_handle.h" |
| 9 #include "ui/events/event.h" | 9 #include "ui/events/event.h" |
| 10 #include "ui/events/event_constants.h" | 10 #include "ui/events/event_constants.h" |
| 11 #include "ui/events/event_utils.h" | 11 #include "ui/events/event_utils.h" |
| 12 #include "ui/events/keycodes/dom/dom_code.h" | 12 #include "ui/events/keycodes/dom/dom_code.h" |
| 13 #include "ui/events/keycodes/dom/keycode_converter.h" | 13 #include "ui/events/keycodes/dom/keycode_converter.h" |
| 14 #include "ui/events/ozone/evdev/event_modifiers_evdev.h" | 14 #include "ui/events/ozone/evdev/event_modifiers_evdev.h" |
| 15 #include "ui/events/ozone/evdev/keyboard_util_evdev.h" | 15 #include "ui/events/ozone/evdev/keyboard_util_evdev.h" |
| 16 #include "ui/events/ozone/layout/keyboard_layout_engine.h" | 16 #include "ui/events/ozone/layout/keyboard_layout_engine.h" |
| 17 #include "ui/events/ozone/layout/keyboard_layout_engine_manager.h" | 17 #include "ui/events/ozone/layout/keyboard_layout_engine_manager.h" |
| 18 #include "ui/events/ozone/layout/layout_util.h" | 18 #include "ui/events/ozone/layout/layout_util.h" |
| (...skipping 220 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 239 UpdateModifier(flag, down); | 239 UpdateModifier(flag, down); |
| 240 } | 240 } |
| 241 | 241 |
| 242 KeyEvent event(down ? ET_KEY_PRESSED : ET_KEY_RELEASED, key_code, dom_code, | 242 KeyEvent event(down ? ET_KEY_PRESSED : ET_KEY_RELEASED, key_code, dom_code, |
| 243 modifiers_->GetModifierFlags(), dom_key, timestamp); | 243 modifiers_->GetModifierFlags(), dom_key, timestamp); |
| 244 event.set_source_device_id(device_id); | 244 event.set_source_device_id(device_id); |
| 245 callback_.Run(&event); | 245 callback_.Run(&event); |
| 246 } | 246 } |
| 247 | 247 |
| 248 } // namespace ui | 248 } // namespace ui |
| OLD | NEW |