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

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

Issue 12438013: Move InputMethod misc class from c/b/chromeos (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 9 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/input_method_config.cc ('k') | chromeos/ime/input_method_property.cc » ('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 (c) 2012 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 CHROME_BROWSER_CHROMEOS_INPUT_METHOD_INPUT_METHOD_PROPERTY_H_ 5 #ifndef CHROMEOS_IME_INPUT_METHOD_PROPERTY_H_
6 #define CHROME_BROWSER_CHROMEOS_INPUT_METHOD_INPUT_METHOD_PROPERTY_H_ 6 #define CHROMEOS_IME_INPUT_METHOD_PROPERTY_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 #include "chromeos/chromeos_export.h"
10 11
11 namespace chromeos { 12 namespace chromeos {
12 namespace input_method { 13 namespace input_method {
13 14
14 // A structure which represents a property for an input method engine. 15 // A structure which represents a property for an input method engine.
15 struct InputMethodProperty { 16 struct CHROMEOS_EXPORT InputMethodProperty {
16 InputMethodProperty(const std::string& in_key, 17 InputMethodProperty(const std::string& in_key,
17 const std::string& in_label, 18 const std::string& in_label,
18 bool in_is_selection_item, 19 bool in_is_selection_item,
19 bool in_is_selection_item_checked); 20 bool in_is_selection_item_checked);
20 21
21 InputMethodProperty(); 22 InputMethodProperty();
22 ~InputMethodProperty(); 23 ~InputMethodProperty();
23 24
24 bool operator==(const InputMethodProperty& other) const; 25 bool operator==(const InputMethodProperty& other) const;
25 bool operator!=(const InputMethodProperty& other) const; 26 bool operator!=(const InputMethodProperty& other) const;
26 27
27 // Debug print function. 28 // Debug print function.
28 std::string ToString() const; 29 std::string ToString() const;
29 30
30 std::string key; // A key which identifies the property. Non-empty string. 31 std::string key; // A key which identifies the property. Non-empty string.
31 // (e.g. "InputMode.HalfWidthKatakana") 32 // (e.g. "InputMode.HalfWidthKatakana")
32 std::string label; // A description of the property. Non-empty string. 33 std::string label; // A description of the property. Non-empty string.
33 // (e.g. "Switch to full punctuation mode", "Hiragana") 34 // (e.g. "Switch to full punctuation mode", "Hiragana")
34 bool is_selection_item; // true if the property is a selection item. 35 bool is_selection_item; // true if the property is a selection item.
35 bool is_selection_item_checked; // true if |is_selection_item| is true and 36 bool is_selection_item_checked; // true if |is_selection_item| is true and
36 // the selection_item is selected. 37 // the selection_item is selected.
37 }; 38 };
38 typedef std::vector<InputMethodProperty> InputMethodPropertyList; 39 typedef std::vector<InputMethodProperty> InputMethodPropertyList;
39 40
40 } // namespace input_method 41 } // namespace input_method
41 } // namespace chromeos 42 } // namespace chromeos
42 43
43 #endif // CHROME_BROWSER_CHROMEOS_INPUT_METHOD_INPUT_METHOD_PROPERTY_H_ 44 #endif // CHROMEOS_IME_INPUT_METHOD_PROPERTY_H_
OLDNEW
« no previous file with comments | « chromeos/ime/input_method_config.cc ('k') | chromeos/ime/input_method_property.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698