| OLD | NEW |
| 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_DESCRIPTOR_H_ | 5 #ifndef CHROMEOS_IME_INPUT_METHOD_DESCRIPTOR_H_ |
| 6 #define CHROME_BROWSER_CHROMEOS_INPUT_METHOD_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 |
| 11 #include "base/basictypes.h" | 11 #include "base/basictypes.h" |
| 12 #include "chromeos/chromeos_export.h" |
| 12 | 13 |
| 13 namespace chromeos { | 14 namespace chromeos { |
| 14 namespace input_method { | 15 namespace input_method { |
| 15 | 16 |
| 16 class InputMethodWhitelist; | 17 class InputMethodWhitelist; |
| 17 | 18 |
| 18 // A structure which represents an input method. | 19 // A structure which represents an input method. |
| 19 class InputMethodDescriptor { | 20 class CHROMEOS_EXPORT InputMethodDescriptor { |
| 20 public: | 21 public: |
| 21 InputMethodDescriptor(); | 22 InputMethodDescriptor(); |
| 22 InputMethodDescriptor(const std::string& id, | 23 InputMethodDescriptor(const std::string& id, |
| 23 const std::string& name, | 24 const std::string& name, |
| 24 const std::string& keyboard_layout, | 25 const std::string& keyboard_layout, |
| 25 const std::string& language_code, | 26 const std::string& language_code, |
| 26 bool third_party); | 27 bool third_party); |
| 27 ~InputMethodDescriptor(); | 28 ~InputMethodDescriptor(); |
| 28 | 29 |
| 29 bool operator==(const InputMethodDescriptor& other) const; | 30 bool operator==(const InputMethodDescriptor& other) const; |
| (...skipping 27 matching lines...) Expand all Loading... |
| 57 std::string language_code_; | 58 std::string language_code_; |
| 58 // Indicates if this is a third party ime | 59 // Indicates if this is a third party ime |
| 59 bool third_party_; | 60 bool third_party_; |
| 60 }; | 61 }; |
| 61 | 62 |
| 62 typedef std::vector<InputMethodDescriptor> InputMethodDescriptors; | 63 typedef std::vector<InputMethodDescriptor> InputMethodDescriptors; |
| 63 | 64 |
| 64 } // namespace input_method | 65 } // namespace input_method |
| 65 } // namespace chromeos | 66 } // namespace chromeos |
| 66 | 67 |
| 67 #endif // CHROME_BROWSER_CHROMEOS_INPUT_METHOD_INPUT_METHOD_DESCRIPTOR_H_ | 68 #endif // CHROMEOS_IME_INPUT_METHOD_DESCRIPTOR_H_ |
| OLD | NEW |