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

Side by Side Diff: ui/base/ime/chromeos/extension_ime_util.cc

Issue 727143002: Moves code from chromeos/ime to ui/base/ime/chromeos. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: nit. Created 6 years 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
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 "chromeos/ime/extension_ime_util.h" 5 #include "ui/base/ime/chromeos/extension_ime_util.h"
6 6
7 #include "base/strings/string_util.h" 7 #include "base/strings/string_util.h"
8 8
9 namespace chromeos { 9 namespace chromeos {
10 10
11 namespace { 11 namespace {
12 12
13 const char kExtensionIMEPrefix[] = "_ext_ime_"; 13 const char kExtensionIMEPrefix[] = "_ext_ime_";
14 const int kExtensionIMEPrefixLength = 14 const int kExtensionIMEPrefixLength =
15 sizeof(kExtensionIMEPrefix) / sizeof(kExtensionIMEPrefix[0]) - 1; 15 sizeof(kExtensionIMEPrefix) / sizeof(kExtensionIMEPrefix[0]) - 1;
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
123 } 123 }
124 124
125 std::string MaybeGetLegacyXkbId(const std::string& input_method_id) { 125 std::string MaybeGetLegacyXkbId(const std::string& input_method_id) {
126 if (IsKeyboardLayoutExtension(input_method_id)) 126 if (IsKeyboardLayoutExtension(input_method_id))
127 return GetComponentIDByInputMethodID(input_method_id); 127 return GetComponentIDByInputMethodID(input_method_id);
128 return input_method_id; 128 return input_method_id;
129 } 129 }
130 130
131 } // namespace extension_ime_util 131 } // namespace extension_ime_util
132 } // namespace chromeos 132 } // namespace chromeos
OLDNEW
« no previous file with comments | « ui/base/ime/chromeos/extension_ime_util.h ('k') | ui/base/ime/chromeos/extension_ime_util_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698