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

Side by Side Diff: chrome/browser/chromeos/input_method/input_method_util.cc

Issue 11734021: Roll ICU and convert include style to standard Chromium style, (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 "chrome/browser/chromeos/input_method/input_method_util.h" 5 #include "chrome/browser/chromeos/input_method/input_method_util.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <functional> 8 #include <functional>
9 #include <map> 9 #include <map>
10 #include <utility> 10 #include <utility>
11 11
12 #include "base/basictypes.h" 12 #include "base/basictypes.h"
13 #include "base/memory/scoped_ptr.h" 13 #include "base/memory/scoped_ptr.h"
14 #include "base/prefs/public/pref_service_base.h" 14 #include "base/prefs/public/pref_service_base.h"
15 #include "base/string_split.h" 15 #include "base/string_split.h"
16 #include "base/string_util.h" 16 #include "base/string_util.h"
17 #include "base/utf_string_conversions.h" 17 #include "base/utf_string_conversions.h"
18 #include "chrome/browser/chromeos/input_method/input_method_delegate.h" 18 #include "chrome/browser/chromeos/input_method/input_method_delegate.h"
19 #include "grit/generated_resources.h" 19 #include "grit/generated_resources.h"
20 #include "third_party/icu/public/common/unicode/uloc.h"
20 #include "ui/base/l10n/l10n_util.h" 21 #include "ui/base/l10n/l10n_util.h"
21 #include "ui/base/l10n/l10n_util_collator.h" 22 #include "ui/base/l10n/l10n_util_collator.h"
22 #include "unicode/uloc.h"
23 23
24 namespace { 24 namespace {
25 25
26 // A mapping from an input method id to a string for the language indicator. The 26 // A mapping from an input method id to a string for the language indicator. The
27 // mapping is necessary since some input methods belong to the same language. 27 // mapping is necessary since some input methods belong to the same language.
28 // For example, both "xkb:us::eng" and "xkb:us:dvorak:eng" are for US English. 28 // For example, both "xkb:us::eng" and "xkb:us:dvorak:eng" are for US English.
29 const struct { 29 const struct {
30 const char* input_method_id; 30 const char* input_method_id;
31 const char* indicator_text; 31 const char* indicator_text;
32 } kMappingFromIdToIndicatorText[] = { 32 } kMappingFromIdToIndicatorText[] = {
(...skipping 662 matching lines...) Expand 10 before | Expand all | Expand 10 after
695 } 695 }
696 } 696 }
697 } 697 }
698 698
699 void InputMethodUtil::OnLocaleChanged() { 699 void InputMethodUtil::OnLocaleChanged() {
700 ReloadInternalMaps(); 700 ReloadInternalMaps();
701 } 701 }
702 702
703 } // namespace input_method 703 } // namespace input_method
704 } // namespace chromeos 704 } // namespace chromeos
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/input_method/input_method_manager_impl.cc ('k') | chrome/browser/chromeos/login/wallpaper_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698