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

Side by Side Diff: chrome/browser/chromeos/base/locale_util.h

Issue 133273032: Guest Mode: input method should default to the underlying latin keyboard layout. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase. Use EnableInputMethod instead of EnableInputMethods. Created 6 years, 10 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
« no previous file with comments | « no previous file | chrome/browser/chromeos/base/locale_util.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 // This file contains utility functions for locale change. 5 // This file contains utility functions for locale change.
6 6
7 #ifndef CHROME_BROWSER_CHROMEOS_BASE_LOCALE_UTIL_H_ 7 #ifndef CHROME_BROWSER_CHROMEOS_BASE_LOCALE_UTIL_H_
8 #define CHROME_BROWSER_CHROMEOS_BASE_LOCALE_UTIL_H_ 8 #define CHROME_BROWSER_CHROMEOS_BASE_LOCALE_UTIL_H_
9 9
10 #include <string> 10 #include <string>
(...skipping 19 matching lines...) Expand all
30 // (const std::string* locale, const std::string* loaded_locale, bool success) 30 // (const std::string* locale, const std::string* loaded_locale, bool success)
31 typedef base::Callback<void(const std::string&, const std::string&, bool)> 31 typedef base::Callback<void(const std::string&, const std::string&, bool)>
32 SwitchLanguageCallback; 32 SwitchLanguageCallback;
33 33
34 // This function updates input methods only if requested. In general you want 34 // This function updates input methods only if requested. In general you want
35 // "enableLocaleKeyboardLayouts=true". 35 // "enableLocaleKeyboardLayouts=true".
36 // Note: in case of "enableLocaleKeyboardLayouts=false" the input 36 // Note: in case of "enableLocaleKeyboardLayouts=false" the input
37 // method currently in use may not be supported by the new locale. (i.e. 37 // method currently in use may not be supported by the new locale. (i.e.
38 // using new locale with unsupported input method may lead to undefined 38 // using new locale with unsupported input method may lead to undefined
39 // behavior; use "enableLocaleKeyboardLayouts=false" with caution) 39 // behavior; use "enableLocaleKeyboardLayouts=false" with caution)
40 // Note2: login_layouts_only=true enables only login-capable layouts.
40 void SwitchLanguage(const std::string& locale, 41 void SwitchLanguage(const std::string& locale,
41 bool enableLocaleKeyboardLayouts, 42 const bool enableLocaleKeyboardLayouts,
43 const bool login_layouts_only,
42 scoped_ptr<SwitchLanguageCallback> callback); 44 scoped_ptr<SwitchLanguageCallback> callback);
43 45
44 } // namespace locale_util 46 } // namespace locale_util
45 } // namespace chromeos 47 } // namespace chromeos
46 48
47 #endif // CHROME_BROWSER_CHROMEOS_BASE_LOCALE_UTIL_H_ 49 #endif // CHROME_BROWSER_CHROMEOS_BASE_LOCALE_UTIL_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/chromeos/base/locale_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698