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

Side by Side Diff: chrome/browser/chromeos/input_method/input_method_util.h

Issue 10056001: chromeos: Remove old status-area related code. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_INPUT_METHOD_INPUT_METHOD_UTIL_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_INPUT_METHOD_INPUT_METHOD_UTIL_H_
6 #define CHROME_BROWSER_CHROMEOS_INPUT_METHOD_INPUT_METHOD_UTIL_H_ 6 #define CHROME_BROWSER_CHROMEOS_INPUT_METHOD_INPUT_METHOD_UTIL_H_
7 #pragma once 7 #pragma once
8 8
9 #include <cstddef> 9 #include <cstddef>
10 #include <map> 10 #include <map>
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 const std::string& input_method_id) const; 67 const std::string& input_method_id) const;
68 68
69 // Converts an input method ID to a display name of the IME. Returns 69 // Converts an input method ID to a display name of the IME. Returns
70 // an empty strng when |input_method_id| is unknown. 70 // an empty strng when |input_method_id| is unknown.
71 // Examples: "pinyin" => "Pinyin" 71 // Examples: "pinyin" => "Pinyin"
72 std::string GetInputMethodDisplayNameFromId( 72 std::string GetInputMethodDisplayNameFromId(
73 const std::string& input_method_id) const; 73 const std::string& input_method_id) const;
74 74
75 string16 GetInputMethodShortName( 75 string16 GetInputMethodShortName(
76 const InputMethodDescriptor& input_method) const; 76 const InputMethodDescriptor& input_method) const;
77 string16 GetInputMethodLongName(const InputMethodDescriptor& ime) const;
77 78
78 // Converts an input method ID to an input method descriptor. Returns NULL 79 // Converts an input method ID to an input method descriptor. Returns NULL
79 // when |input_method_id| is unknown. 80 // when |input_method_id| is unknown.
80 // Example: "pinyin" => { id: "pinyin", display_name: "Pinyin", 81 // Example: "pinyin" => { id: "pinyin", display_name: "Pinyin",
81 // keyboard_layout: "us", language_code: "zh" } 82 // keyboard_layout: "us", language_code: "zh" }
82 const InputMethodDescriptor* GetInputMethodDescriptorFromId( 83 const InputMethodDescriptor* GetInputMethodDescriptorFromId(
83 const std::string& input_method_id) const; 84 const std::string& input_method_id) const;
84 85
85 // Converts an XKB layout ID to an input method descriptor. Returns NULL when 86 // Converts an XKB layout ID to an input method descriptor. Returns NULL when
86 // |xkb_id| is unknown. 87 // |xkb_id| is unknown.
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
195 typedef base::hash_map<std::string, int> HashType; 196 typedef base::hash_map<std::string, int> HashType;
196 HashType english_to_resource_id_; 197 HashType english_to_resource_id_;
197 198
198 std::string hardware_input_method_id_for_testing_; 199 std::string hardware_input_method_id_for_testing_;
199 }; 200 };
200 201
201 } // namespace input_method 202 } // namespace input_method
202 } // namespace chromeos 203 } // namespace chromeos
203 204
204 #endif // CHROME_BROWSER_CHROMEOS_INPUT_METHOD_INPUT_METHOD_UTIL_H_ 205 #endif // CHROME_BROWSER_CHROMEOS_INPUT_METHOD_INPUT_METHOD_UTIL_H_
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/chrome_browser_main_chromeos.cc ('k') | chrome/browser/chromeos/input_method/input_method_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698