OLD | NEW |
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/pref_service.h" | 14 #include "base/prefs/pref_service.h" |
15 #include "base/strings/string_split.h" | 15 #include "base/strings/string_split.h" |
16 #include "base/strings/string_util.h" | 16 #include "base/strings/string_util.h" |
17 #include "base/strings/utf_string_conversions.h" | 17 #include "base/strings/utf_string_conversions.h" |
18 #include "chrome/common/extensions/extension_constants.h" | 18 #include "chrome/common/extensions/extension_constants.h" |
19 | |
20 // TODO(nona): move this header from this file. | 19 // TODO(nona): move this header from this file. |
21 #include "chrome/grit/generated_resources.h" | 20 #include "chrome/grit/generated_resources.h" |
22 | 21 #include "chromeos/ime/component_extension_ime_manager.h" |
23 #include "ui/base/ime/chromeos/component_extension_ime_manager.h" | 22 #include "chromeos/ime/extension_ime_util.h" |
24 #include "ui/base/ime/chromeos/extension_ime_util.h" | |
25 | |
26 // For SetHardwareKeyboardLayoutForTesting. | 23 // For SetHardwareKeyboardLayoutForTesting. |
27 #include "ui/base/ime/chromeos/fake_input_method_delegate.h" | 24 #include "chromeos/ime/fake_input_method_delegate.h" |
28 #include "ui/base/ime/chromeos/input_method_delegate.h" | 25 #include "chromeos/ime/input_method_delegate.h" |
29 #include "ui/base/ime/chromeos/input_method_whitelist.h" | 26 #include "chromeos/ime/input_method_whitelist.h" |
30 | 27 |
31 namespace { | 28 namespace { |
32 | 29 |
33 // A mapping from an input method id to a resource id for a | 30 // A mapping from an input method id to a resource id for a |
34 // medium length language indicator. | 31 // medium length language indicator. |
35 // For those languages that want to display a slightly longer text in the | 32 // For those languages that want to display a slightly longer text in the |
36 // "Your input method has changed to..." bubble than in the status tray. | 33 // "Your input method has changed to..." bubble than in the status tray. |
37 // If an entry is not found in this table the short name is used. | 34 // If an entry is not found in this table the short name is used. |
38 const struct { | 35 const struct { |
39 const char* engine_id; | 36 const char* engine_id; |
(...skipping 584 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
624 "US", | 621 "US", |
625 layouts, | 622 layouts, |
626 languages, | 623 languages, |
627 true, // login keyboard. | 624 true, // login keyboard. |
628 GURL(), // options page, not available. | 625 GURL(), // options page, not available. |
629 GURL()); // input view page, not available. | 626 GURL()); // input view page, not available. |
630 } | 627 } |
631 | 628 |
632 } // namespace input_method | 629 } // namespace input_method |
633 } // namespace chromeos | 630 } // namespace chromeos |
OLD | NEW |