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

Side by Side Diff: chrome/browser/chromeos/language_preferences.h

Issue 2861022: Add EnableInputMethodsAndKeyboardLayouts function (Closed)
Patch Set: fix Created 10 years, 5 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
OLDNEW
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 #ifndef CHROME_BROWSER_CHROMEOS_LANGUAGE_PREFERENCES_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_LANGUAGE_PREFERENCES_H_
6 #define CHROME_BROWSER_CHROMEOS_LANGUAGE_PREFERENCES_H_ 6 #define CHROME_BROWSER_CHROMEOS_LANGUAGE_PREFERENCES_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "chrome/common/pref_names.h" 9 #include "chrome/common/pref_names.h"
10 #include "grit/generated_resources.h" 10 #include "grit/generated_resources.h"
(...skipping 374 matching lines...) Expand 10 before | Expand all | Expand 10 after
385 const LanguageIntegerRangePreference kMozcIntegerPrefs[] = { 385 const LanguageIntegerRangePreference kMozcIntegerPrefs[] = {
386 { prefs::kLanguageMozcSuggestionsSize, 3, 1, 9, "suggestions_size", 386 { prefs::kLanguageMozcSuggestionsSize, 3, 1, 9, "suggestions_size",
387 IDS_MOZC(SUGGESTIONS_SIZE)}, 387 IDS_MOZC(SUGGESTIONS_SIZE)},
388 }; 388 };
389 const size_t kNumMozcIntegerPrefs = ARRAYSIZE_UNSAFE(kMozcIntegerPrefs); 389 const size_t kNumMozcIntegerPrefs = ARRAYSIZE_UNSAFE(kMozcIntegerPrefs);
390 390
391 #undef IDS_MOZC 391 #undef IDS_MOZC
392 392
393 // For Traditional Chinese input methods (ibus-pinyin-bopomofo and ibus-chewing) 393 // For Traditional Chinese input methods (ibus-pinyin-bopomofo and ibus-chewing)
394 // TODO(yusukes): Add constants for Traditional Chinese input methods. 394 // TODO(yusukes): Add constants for Traditional Chinese input methods.
395
396 // A input method name that corresponds the hardware keyboard layout.
397 // TODO(yusukes): just assuming US qwerty keyboard is not always correct.
398 const char kHardwareKeyboardLayout[] = "xkb:us::eng";
399
395 } // chromeos 400 } // chromeos
396 401
397 #endif // CHROME_BROWSER_CHROMEOS_LANGUAGE_PREFERENCES_H_ 402 #endif // CHROME_BROWSER_CHROMEOS_LANGUAGE_PREFERENCES_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698