Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(592)

Side by Side Diff: ui/events/ozone/layout/xkb/xkb_keyboard_layout_engine.cc

Issue 1615713003: Allow std::unordered_*. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: leak_detector fixes and git cl format Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « ui/base/x/selection_utils.cc ('k') | ui/gfx/generic_shared_memory_id.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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>
11
10 #include "base/bind.h" 12 #include "base/bind.h"
11 #include "base/location.h" 13 #include "base/location.h"
12 #include "base/logging.h" 14 #include "base/logging.h"
13 #include "base/macros.h" 15 #include "base/macros.h"
14 #include "base/single_thread_task_runner.h" 16 #include "base/single_thread_task_runner.h"
15 #include "base/task_runner.h" 17 #include "base/task_runner.h"
16 #include "base/thread_task_runner_handle.h" 18 #include "base/thread_task_runner_handle.h"
17 #include "base/threading/worker_pool.h" 19 #include "base/threading/worker_pool.h"
18 #include "build/build_config.h" 20 #include "build/build_config.h"
19 #include "ui/events/event_constants.h" 21 #include "ui/events/event_constants.h"
(...skipping 935 matching lines...) Expand 10 before | Expand all | Expand 10 after
955 close_index = layout_name.size(); 957 close_index = layout_name.size();
956 *layout_variant = layout_name.substr(parentheses_index + 1, 958 *layout_variant = layout_name.substr(parentheses_index + 1,
957 close_index - parentheses_index - 1); 959 close_index - parentheses_index - 1);
958 } else if (dash_index != std::string::npos) { 960 } else if (dash_index != std::string::npos) {
959 *layout_id = layout_name.substr(0, dash_index); 961 *layout_id = layout_name.substr(0, dash_index);
960 *layout_variant = layout_name.substr(dash_index + 1); 962 *layout_variant = layout_name.substr(dash_index + 1);
961 } 963 }
962 } 964 }
963 965
964 } // namespace ui 966 } // namespace ui
OLDNEW
« no previous file with comments | « ui/base/x/selection_utils.cc ('k') | ui/gfx/generic_shared_memory_id.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698