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/layout/xkb/xkb_keyboard_layout_engine.h" | 5 #include "ui/events/ozone/layout/xkb/xkb_keyboard_layout_engine.h" |
6 | 6 |
7 #include <stddef.h> | 7 #include <stddef.h> |
8 #include <xkbcommon/xkbcommon-names.h> | 8 #include <xkbcommon/xkbcommon-names.h> |
9 | 9 |
10 #include <algorithm> | 10 #include <algorithm> |
11 | 11 |
12 #include "base/bind.h" | 12 #include "base/bind.h" |
13 #include "base/location.h" | 13 #include "base/location.h" |
14 #include "base/logging.h" | 14 #include "base/logging.h" |
15 #include "base/macros.h" | 15 #include "base/macros.h" |
16 #include "base/memory/free_deleter.h" | 16 #include "base/memory/free_deleter.h" |
17 #include "base/single_thread_task_runner.h" | 17 #include "base/single_thread_task_runner.h" |
18 #include "base/task_runner.h" | 18 #include "base/task_runner.h" |
19 #include "base/thread_task_runner_handle.h" | 19 #include "base/threading/thread_task_runner_handle.h" |
20 #include "base/threading/worker_pool.h" | 20 #include "base/threading/worker_pool.h" |
21 #include "build/build_config.h" | 21 #include "build/build_config.h" |
22 #include "ui/events/event_constants.h" | 22 #include "ui/events/event_constants.h" |
23 #include "ui/events/keycodes/dom/dom_code.h" | 23 #include "ui/events/keycodes/dom/dom_code.h" |
24 #include "ui/events/keycodes/dom/dom_key.h" | 24 #include "ui/events/keycodes/dom/dom_key.h" |
25 #include "ui/events/keycodes/dom/keycode_converter.h" | 25 #include "ui/events/keycodes/dom/keycode_converter.h" |
26 #include "ui/events/keycodes/keyboard_code_conversion.h" | 26 #include "ui/events/keycodes/keyboard_code_conversion.h" |
27 #include "ui/events/keycodes/keyboard_code_conversion_xkb.h" | 27 #include "ui/events/keycodes/keyboard_code_conversion_xkb.h" |
28 | 28 |
29 namespace ui { | 29 namespace ui { |
(...skipping 940 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
970 close_index = layout_name.size(); | 970 close_index = layout_name.size(); |
971 *layout_variant = layout_name.substr(parentheses_index + 1, | 971 *layout_variant = layout_name.substr(parentheses_index + 1, |
972 close_index - parentheses_index - 1); | 972 close_index - parentheses_index - 1); |
973 } else if (dash_index != std::string::npos) { | 973 } else if (dash_index != std::string::npos) { |
974 *layout_id = layout_name.substr(0, dash_index); | 974 *layout_id = layout_name.substr(0, dash_index); |
975 *layout_variant = layout_name.substr(dash_index + 1); | 975 *layout_variant = layout_name.substr(dash_index + 1); |
976 } | 976 } |
977 } | 977 } |
978 | 978 |
979 } // namespace ui | 979 } // namespace ui |
OLD | NEW |