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 <xkbcommon/xkbcommon-names.h> | 7 #include <xkbcommon/xkbcommon-names.h> |
8 | 8 |
| 9 #include <algorithm> |
| 10 |
9 #include "base/bind.h" | 11 #include "base/bind.h" |
10 #include "base/location.h" | 12 #include "base/location.h" |
11 #include "base/logging.h" | 13 #include "base/logging.h" |
12 #include "base/single_thread_task_runner.h" | 14 #include "base/single_thread_task_runner.h" |
13 #include "base/task_runner.h" | 15 #include "base/task_runner.h" |
14 #include "base/thread_task_runner_handle.h" | 16 #include "base/thread_task_runner_handle.h" |
15 #include "base/threading/worker_pool.h" | 17 #include "base/threading/worker_pool.h" |
16 #include "ui/events/event_constants.h" | 18 #include "ui/events/event_constants.h" |
17 #include "ui/events/keycodes/dom/dom_code.h" | 19 #include "ui/events/keycodes/dom/dom_code.h" |
18 #include "ui/events/keycodes/dom/dom_key.h" | 20 #include "ui/events/keycodes/dom/dom_key.h" |
(...skipping 934 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
953 close_index = layout_name.size(); | 955 close_index = layout_name.size(); |
954 *layout_variant = layout_name.substr(parentheses_index + 1, | 956 *layout_variant = layout_name.substr(parentheses_index + 1, |
955 close_index - parentheses_index - 1); | 957 close_index - parentheses_index - 1); |
956 } else if (dash_index != std::string::npos) { | 958 } else if (dash_index != std::string::npos) { |
957 *layout_id = layout_name.substr(0, dash_index); | 959 *layout_id = layout_name.substr(0, dash_index); |
958 *layout_variant = layout_name.substr(dash_index + 1); | 960 *layout_variant = layout_name.substr(dash_index + 1); |
959 } | 961 } |
960 } | 962 } |
961 | 963 |
962 } // namespace ui | 964 } // namespace ui |
OLD | NEW |