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

Unified 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 side-by-side diff with in-line comments
Download patch
« 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 »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chromeos/ime/input_method_delegate.h
diff --git a/chromeos/ime/input_method_delegate.h b/chromeos/ime/input_method_delegate.h
index e242f3b05d478edf97f0c35cf6284d114ab8fa29..906cfb19938824db6fc4e124e844fdb31d5f6b29 100644
--- a/chromeos/ime/input_method_delegate.h
+++ b/chromeos/ime/input_method_delegate.h
@@ -8,6 +8,7 @@
#include <string>
#include "base/basictypes.h"
+#include "base/string16.h"
namespace chromeos {
namespace input_method {
@@ -21,8 +22,16 @@ class InputMethodDelegate {
// Retrieves the hardware keyboard layout ID. May return an empty string if
// the ID is unknown.
virtual std::string GetHardwareKeyboardLayout() const = 0;
- // Retrieves the currently active UI locale.
- virtual std::string GetActiveLocale() const = 0;
+
+ // Retrieves localized string for |resource_id|.
+ virtual string16 GetLocalizedString(int resource_id) const = 0;
+
+ // Converts a language code to a language display name, using the
+ // current application locale.
+ // Examples: "fi" => "Finnish"
+ // "en-US" => "English (United States)"
+ virtual string16 GetDisplayLanguageName(
+ const std::string& language_code) const = 0;
private:
DISALLOW_COPY_AND_ASSIGN(InputMethodDelegate);
« 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