| OLD | NEW |
| 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 UI_BASE_IME_CHROMEOS_INPUT_METHOD_DESCRIPTOR_H_ | 5 #ifndef UI_BASE_IME_CHROMEOS_INPUT_METHOD_DESCRIPTOR_H_ |
| 6 #define UI_BASE_IME_CHROMEOS_INPUT_METHOD_DESCRIPTOR_H_ | 6 #define UI_BASE_IME_CHROMEOS_INPUT_METHOD_DESCRIPTOR_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| 11 #include "ui/base/ime/ui_base_ime_export.h" | 11 #include "ui/base/ime/ui_base_ime_export.h" |
| 12 #include "url/gurl.h" | 12 #include "url/gurl.h" |
| 13 | 13 |
| 14 namespace chromeos { | 14 namespace chromeos { |
| 15 namespace input_method { | 15 namespace input_method { |
| 16 | 16 |
| 17 // A structure which represents an input method. | 17 // A structure which represents an input method. |
| 18 class UI_BASE_IME_EXPORT InputMethodDescriptor { | 18 class UI_BASE_IME_EXPORT InputMethodDescriptor { |
| 19 public: | 19 public: |
| 20 InputMethodDescriptor(); | 20 InputMethodDescriptor(); |
| 21 InputMethodDescriptor(const std::string& id, | 21 InputMethodDescriptor(const std::string& id, |
| 22 const std::string& name, | 22 const std::string& name, |
| 23 const std::string& indicator, | 23 const std::string& indicator, |
| 24 const std::vector<std::string>& keyboard_layouts, | 24 const std::vector<std::string>& keyboard_layouts, |
| 25 const std::vector<std::string>& language_codes, | 25 const std::vector<std::string>& language_codes, |
| 26 bool is_login_keyboard, | 26 bool is_login_keyboard, |
| 27 const GURL& options_page_url, | 27 const GURL& options_page_url, |
| 28 const GURL& input_view_url); | 28 const GURL& input_view_url); |
| 29 InputMethodDescriptor(const InputMethodDescriptor& other); |
| 29 ~InputMethodDescriptor(); | 30 ~InputMethodDescriptor(); |
| 30 | 31 |
| 31 // Accessors | 32 // Accessors |
| 32 const std::string& id() const { return id_; } | 33 const std::string& id() const { return id_; } |
| 33 const std::string& name() const { return name_; } | 34 const std::string& name() const { return name_; } |
| 34 const std::string& indicator() const { return indicator_; } | 35 const std::string& indicator() const { return indicator_; } |
| 35 const std::vector<std::string>& language_codes() const { | 36 const std::vector<std::string>& language_codes() const { |
| 36 return language_codes_; | 37 return language_codes_; |
| 37 } | 38 } |
| 38 const GURL& options_page_url() const { return options_page_url_; } | 39 const GURL& options_page_url() const { return options_page_url_; } |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 82 // This field is valid only for input method extension. | 83 // This field is valid only for input method extension. |
| 83 GURL input_view_url_; | 84 GURL input_view_url_; |
| 84 }; | 85 }; |
| 85 | 86 |
| 86 typedef std::vector<InputMethodDescriptor> InputMethodDescriptors; | 87 typedef std::vector<InputMethodDescriptor> InputMethodDescriptors; |
| 87 | 88 |
| 88 } // namespace input_method | 89 } // namespace input_method |
| 89 } // namespace chromeos | 90 } // namespace chromeos |
| 90 | 91 |
| 91 #endif // UI_BASE_IME_CHROMEOS_INPUT_METHOD_DESCRIPTOR_H_ | 92 #endif // UI_BASE_IME_CHROMEOS_INPUT_METHOD_DESCRIPTOR_H_ |
| OLD | NEW |