| 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 CHROMEOS_IME_COMPONENT_EXTENSION_IME_MANAGER_H_ | 5 #ifndef CHROMEOS_IME_COMPONENT_EXTENSION_IME_MANAGER_H_ |
| 6 #define CHROMEOS_IME_COMPONENT_EXTENSION_IME_MANAGER_H_ | 6 #define CHROMEOS_IME_COMPONENT_EXTENSION_IME_MANAGER_H_ |
| 7 | 7 |
| 8 #include "base/files/file_path.h" | 8 #include "base/files/file_path.h" |
| 9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
| 10 #include "base/observer_list.h" | 10 #include "base/observer_list.h" |
| 11 #include "chromeos/chromeos_export.h" | 11 #include "chromeos/chromeos_export.h" |
| 12 #include "chromeos/ime/input_method_descriptor.h" | 12 #include "chromeos/ime/input_method_descriptor.h" |
| 13 | 13 |
| 14 namespace chromeos { | 14 namespace chromeos { |
| 15 | 15 |
| 16 // Represents an engine in component extension IME. | 16 // Represents an engine in component extension IME. |
| 17 struct CHROMEOS_EXPORT ComponentExtensionEngine { | 17 struct CHROMEOS_EXPORT ComponentExtensionEngine { |
| 18 ComponentExtensionEngine(); | 18 ComponentExtensionEngine(); |
| 19 ~ComponentExtensionEngine(); | 19 ~ComponentExtensionEngine(); |
| 20 std::string engine_id; // The engine id. | 20 std::string engine_id; // The engine id. |
| 21 std::string display_name; // The display name. | 21 std::string display_name; // The display name. |
| 22 std::vector<std::string> language_codes; // The engine's language(ex. "en"). | 22 std::vector<std::string> language_codes; // The engine's language(ex. "en"). |
| 23 std::string description; // The engine description. | 23 std::string description; // The engine description. |
| 24 std::vector<std::string> layouts; // The list of keyboard layout of engine. | 24 std::vector<std::string> layouts; // The list of keyboard layout of engine. |
| 25 }; | 25 }; |
| 26 | 26 |
| 27 // Represents a component extension IME. | 27 // Represents a component extension IME. |
| 28 // TODO(nona): Use GURL for |option_page_url| instead of string. | |
| 29 struct CHROMEOS_EXPORT ComponentExtensionIME { | 28 struct CHROMEOS_EXPORT ComponentExtensionIME { |
| 30 ComponentExtensionIME(); | 29 ComponentExtensionIME(); |
| 31 ~ComponentExtensionIME(); | 30 ~ComponentExtensionIME(); |
| 32 std::string id; // extension id. | 31 std::string id; // extension id. |
| 33 std::string manifest; // the contents of manifest.json | 32 std::string manifest; // the contents of manifest.json |
| 34 std::string description; // description of extension. | 33 std::string description; // description of extension. |
| 35 GURL options_page_url; // an URL to option page. | 34 GURL options_page_url; // an URL to option page. |
| 36 GURL input_view_url; // an URL to input view page. | 35 GURL input_view_url; // an URL to input view page. |
| 37 base::FilePath path; | 36 base::FilePath path; |
| 38 std::vector<ComponentExtensionEngine> engines; | 37 std::vector<ComponentExtensionEngine> engines; |
| (...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 130 ObserverList<Observer> observers_; | 129 ObserverList<Observer> observers_; |
| 131 | 130 |
| 132 bool is_initialized_; | 131 bool is_initialized_; |
| 133 | 132 |
| 134 DISALLOW_COPY_AND_ASSIGN(ComponentExtensionIMEManager); | 133 DISALLOW_COPY_AND_ASSIGN(ComponentExtensionIMEManager); |
| 135 }; | 134 }; |
| 136 | 135 |
| 137 } // namespace chromeos | 136 } // namespace chromeos |
| 138 | 137 |
| 139 #endif // CHROMEOS_IME_COMPONENT_EXTENSION_IME_MANAGER_H_ | 138 #endif // CHROMEOS_IME_COMPONENT_EXTENSION_IME_MANAGER_H_ |
| OLD | NEW |