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

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

Issue 608183002: Move all white-listed input method indicator text from InputMethodUtil to manifests of IME extensio… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: revised per comments. Created 6 years, 2 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 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_DESCRIPTOR_H_ 5 #ifndef CHROMEOS_IME_INPUT_METHOD_DESCRIPTOR_H_
6 #define CHROMEOS_IME_INPUT_METHOD_DESCRIPTOR_H_ 6 #define CHROMEOS_IME_INPUT_METHOD_DESCRIPTOR_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 29 matching lines...) Expand all
40 const GURL& input_view_url() const { return input_view_url_; } 40 const GURL& input_view_url() const { return input_view_url_; }
41 const std::vector<std::string>& keyboard_layouts() const { 41 const std::vector<std::string>& keyboard_layouts() const {
42 return keyboard_layouts_; 42 return keyboard_layouts_;
43 } 43 }
44 44
45 bool is_login_keyboard() const { return is_login_keyboard_; } 45 bool is_login_keyboard() const { return is_login_keyboard_; }
46 46
47 // Returns preferred keyboard layout. 47 // Returns preferred keyboard layout.
48 std::string GetPreferredKeyboardLayout() const; 48 std::string GetPreferredKeyboardLayout() const;
49 49
50 // Returns the indicator text of this input method.
51 std::string GetIndicator() const;
52
50 private: 53 private:
51 // An ID that identifies an input method engine (e.g., "t:latn-post", 54 // An ID that identifies an input method engine (e.g., "t:latn-post",
52 // "pinyin", "hangul"). 55 // "pinyin", "hangul").
53 std::string id_; 56 std::string id_;
54 57
55 // A name used to specify the user-visible name of this input method. It is 58 // A name used to specify the user-visible name of this input method. It is
56 // only used by extension IMEs, and should be blank for internal IMEs. 59 // only used by extension IMEs, and should be blank for internal IMEs.
57 std::string name_; 60 std::string name_;
58 61
59 // A preferred physical keyboard layout for the input method (e.g., "us", 62 // A preferred physical keyboard layout for the input method (e.g., "us",
(...skipping 20 matching lines...) Expand all
80 // This field is valid only for input method extension. 83 // This field is valid only for input method extension.
81 GURL input_view_url_; 84 GURL input_view_url_;
82 }; 85 };
83 86
84 typedef std::vector<InputMethodDescriptor> InputMethodDescriptors; 87 typedef std::vector<InputMethodDescriptor> InputMethodDescriptors;
85 88
86 } // namespace input_method 89 } // namespace input_method
87 } // namespace chromeos 90 } // namespace chromeos
88 91
89 #endif // CHROMEOS_IME_INPUT_METHOD_DESCRIPTOR_H_ 92 #endif // CHROMEOS_IME_INPUT_METHOD_DESCRIPTOR_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698