OLD | NEW |
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 "chrome/browser/chromeos/base/locale_util.h" | 5 #include "chrome/browser/chromeos/base/locale_util.h" |
6 | 6 |
7 #include <vector> | 7 #include <vector> |
8 | 8 |
9 #include "chrome/browser/browser_process.h" | 9 #include "chrome/browser/browser_process.h" |
10 #include "chrome/browser/chromeos/input_method/input_method_util.h" | 10 #include "chrome/browser/chromeos/input_method/input_method_util.h" |
11 #include "chromeos/ime/input_method_manager.h" | |
12 #include "content/public/browser/browser_thread.h" | 11 #include "content/public/browser/browser_thread.h" |
| 12 #include "ui/base/ime/chromeos/input_method_manager.h" |
13 #include "ui/base/resource/resource_bundle.h" | 13 #include "ui/base/resource/resource_bundle.h" |
14 #include "ui/gfx/platform_font_pango.h" | 14 #include "ui/gfx/platform_font_pango.h" |
15 | 15 |
16 namespace chromeos { | 16 namespace chromeos { |
17 | 17 |
18 namespace { | 18 namespace { |
19 | 19 |
20 struct SwitchLanguageData { | 20 struct SwitchLanguageData { |
21 SwitchLanguageData(const std::string& locale, | 21 SwitchLanguageData(const std::string& locale, |
22 const bool enable_locale_keyboard_layouts, | 22 const bool enable_locale_keyboard_layouts, |
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
113 base::Closure reloader( | 113 base::Closure reloader( |
114 base::Bind(&SwitchLanguageDoReloadLocale, base::Unretained(data.get()))); | 114 base::Bind(&SwitchLanguageDoReloadLocale, base::Unretained(data.get()))); |
115 content::BrowserThread::PostBlockingPoolTaskAndReply( | 115 content::BrowserThread::PostBlockingPoolTaskAndReply( |
116 FROM_HERE, | 116 FROM_HERE, |
117 reloader, | 117 reloader, |
118 base::Bind(&FinishSwitchLanguage, base::Passed(data.Pass()))); | 118 base::Bind(&FinishSwitchLanguage, base::Passed(data.Pass()))); |
119 } | 119 } |
120 | 120 |
121 } // namespace locale_util | 121 } // namespace locale_util |
122 } // namespace chromeos | 122 } // namespace chromeos |
OLD | NEW |