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

Side by Side Diff: chromeos/ime/input_method_delegate.h

Issue 14200032: Decouple l10n_util from InputMethodUtil. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: /MockInputMethodDelegate/FakeInputMethodDelegate/ Created 7 years, 8 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 | Annotate | Revision Log
« no previous file with comments | « chromeos/ime/fake_input_method_delegate.cc ('k') | chromeos/ime/mock_input_method_delegate.h » ('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 #ifndef CHROMEOS_IME_INPUT_METHOD_DELEGATE_H_ 5 #ifndef CHROMEOS_IME_INPUT_METHOD_DELEGATE_H_
6 #define CHROMEOS_IME_INPUT_METHOD_DELEGATE_H_ 6 #define CHROMEOS_IME_INPUT_METHOD_DELEGATE_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
11 #include "base/string16.h"
11 12
12 namespace chromeos { 13 namespace chromeos {
13 namespace input_method { 14 namespace input_method {
14 15
15 // Provides access to read/persist Input Method-related properties. 16 // Provides access to read/persist Input Method-related properties.
16 class InputMethodDelegate { 17 class InputMethodDelegate {
17 public: 18 public:
18 InputMethodDelegate() {} 19 InputMethodDelegate() {}
19 virtual ~InputMethodDelegate() {} 20 virtual ~InputMethodDelegate() {}
20 21
21 // Retrieves the hardware keyboard layout ID. May return an empty string if 22 // Retrieves the hardware keyboard layout ID. May return an empty string if
22 // the ID is unknown. 23 // the ID is unknown.
23 virtual std::string GetHardwareKeyboardLayout() const = 0; 24 virtual std::string GetHardwareKeyboardLayout() const = 0;
24 // Retrieves the currently active UI locale. 25
25 virtual std::string GetActiveLocale() const = 0; 26 // Retrieves localized string for |resource_id|.
27 virtual string16 GetLocalizedString(int resource_id) const = 0;
28
29 // Converts a language code to a language display name, using the
30 // current application locale.
31 // Examples: "fi" => "Finnish"
32 // "en-US" => "English (United States)"
33 virtual string16 GetDisplayLanguageName(
34 const std::string& language_code) const = 0;
26 35
27 private: 36 private:
28 DISALLOW_COPY_AND_ASSIGN(InputMethodDelegate); 37 DISALLOW_COPY_AND_ASSIGN(InputMethodDelegate);
29 }; 38 };
30 39
31 } // namespace input_method 40 } // namespace input_method
32 } // namespace chromeos 41 } // namespace chromeos
33 42
34 #endif // CHROMEOS_IME_INPUT_METHOD_DELEGATE_H_ 43 #endif // CHROMEOS_IME_INPUT_METHOD_DELEGATE_H_
OLDNEW
« no previous file with comments | « chromeos/ime/fake_input_method_delegate.cc ('k') | chromeos/ime/mock_input_method_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698