OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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/dom_ui/language_options_handler.h" | 5 #include "chrome/browser/chromeos/dom_ui/language_options_handler.h" |
6 | 6 |
7 #include <map> | 7 #include <map> |
8 #include <set> | 8 #include <set> |
9 #include <string> | 9 #include <string> |
10 #include <utility> | 10 #include <utility> |
11 | 11 |
12 #include "app/l10n_util.h" | 12 #include "app/l10n_util.h" |
13 #include "base/utf_string_conversions.h" | 13 #include "base/utf_string_conversions.h" |
14 #include "base/values.h" | 14 #include "base/values.h" |
15 #include "chrome/app/chrome_dll_resource.h" | 15 #include "chrome/app/chrome_dll_resource.h" |
16 #include "chrome/browser/browser.h" | 16 #include "chrome/browser/browser.h" |
17 #include "chrome/browser/browser_process.h" | 17 #include "chrome/browser/browser_process.h" |
18 #include "chrome/browser/chromeos/cros/cros_library.h" | 18 #include "chrome/browser/chromeos/cros/cros_library.h" |
19 #include "chrome/browser/chromeos/cros/input_method_library.h" | 19 #include "chrome/browser/chromeos/cros/input_method_library.h" |
20 #include "chrome/browser/chromeos/input_method/input_method_util.h" | 20 #include "chrome/browser/chromeos/input_method/input_method_util.h" |
21 #include "chrome/browser/pref_service.h" | 21 #include "chrome/browser/prefs/pref_service.h" |
22 #include "chrome/browser/tab_contents/tab_contents.h" | 22 #include "chrome/browser/tab_contents/tab_contents.h" |
23 #include "chrome/common/pref_names.h" | 23 #include "chrome/common/pref_names.h" |
24 #include "grit/chromium_strings.h" | 24 #include "grit/chromium_strings.h" |
25 #include "grit/generated_resources.h" | 25 #include "grit/generated_resources.h" |
26 | 26 |
27 namespace chromeos { | 27 namespace chromeos { |
28 | 28 |
29 LanguageOptionsHandler::LanguageOptionsHandler() { | 29 LanguageOptionsHandler::LanguageOptionsHandler() { |
30 } | 30 } |
31 | 31 |
(...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
229 void LanguageOptionsHandler::RestartCallback(const ListValue* args) { | 229 void LanguageOptionsHandler::RestartCallback(const ListValue* args) { |
230 Browser* browser = Browser::GetBrowserForController( | 230 Browser* browser = Browser::GetBrowserForController( |
231 &dom_ui_->tab_contents()->controller(), NULL); | 231 &dom_ui_->tab_contents()->controller(), NULL); |
232 // TODO(kochi): For ChromiumOS, just exiting means browser restart. | 232 // TODO(kochi): For ChromiumOS, just exiting means browser restart. |
233 // Implement browser restart for Chromium Win/Linux/Mac. | 233 // Implement browser restart for Chromium Win/Linux/Mac. |
234 if (browser) | 234 if (browser) |
235 browser->ExecuteCommand(IDC_EXIT); | 235 browser->ExecuteCommand(IDC_EXIT); |
236 } | 236 } |
237 | 237 |
238 } // namespace chromeos | 238 } // namespace chromeos |
OLD | NEW |