Chromium Code Reviews| 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/dbus/ibus/ibus_component.h" | 12 #include "chromeos/dbus/ibus/ibus_component.h" |
| 13 #include "chromeos/ime/input_method_descriptor.h" | 13 #include "chromeos/ime/input_method_descriptor.h" |
| 14 | 14 |
| 15 namespace chromeos { | 15 namespace chromeos { |
| 16 | 16 |
| 17 // Represents a component extension IME. | 17 // Represents a component extension IME. |
| 18 struct CHROMEOS_EXPORT ComponentExtensionIME { | 18 struct CHROMEOS_EXPORT ComponentExtensionIME { |
| 19 ComponentExtensionIME(); | 19 ComponentExtensionIME(); |
| 20 ~ComponentExtensionIME(); | 20 ~ComponentExtensionIME(); |
| 21 std::string id; // extension id. | 21 std::string id; // extension id. |
| 22 std::string manifest; // the contents of manifest.json | 22 std::string manifest; // the contents of manifest.json |
| 23 std::string description; // description of extension. | 23 std::string description; // description of extension. |
| 24 std::string options_page_url; // We can't use GURL due to deps restriction. | |
|
satorux1
2013/04/15 04:16:08
Hmm, I think it's ok to use GURL in 'chromeos'. Fo
Seigo Nonaka
2013/04/15 04:25:53
Sure,
On 2013/04/15 04:16:08, satorux1 wrote:
| |
| 24 base::FilePath path; | 25 base::FilePath path; |
| 25 std::vector<IBusComponent::EngineDescription> engines; | 26 std::vector<IBusComponent::EngineDescription> engines; |
| 26 }; | 27 }; |
| 27 | 28 |
| 28 // Provides an interface to list/load/unload for component extension IME. | 29 // Provides an interface to list/load/unload for component extension IME. |
| 29 class CHROMEOS_EXPORT ComponentExtensionIMEManagerDelegate { | 30 class CHROMEOS_EXPORT ComponentExtensionIMEManagerDelegate { |
| 30 public: | 31 public: |
| 31 ComponentExtensionIMEManagerDelegate(); | 32 ComponentExtensionIMEManagerDelegate(); |
| 32 virtual ~ComponentExtensionIMEManagerDelegate(); | 33 virtual ~ComponentExtensionIMEManagerDelegate(); |
| 33 | 34 |
| (...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 131 ObserverList<Observer> observers_; | 132 ObserverList<Observer> observers_; |
| 132 | 133 |
| 133 bool is_initialized_; | 134 bool is_initialized_; |
| 134 | 135 |
| 135 DISALLOW_COPY_AND_ASSIGN(ComponentExtensionIMEManager); | 136 DISALLOW_COPY_AND_ASSIGN(ComponentExtensionIMEManager); |
| 136 }; | 137 }; |
| 137 | 138 |
| 138 } // namespace chromeos | 139 } // namespace chromeos |
| 139 | 140 |
| 140 #endif // CHROMEOS_IME_COMPONENT_EXTENSION_IME_MANAGER_H_ | 141 #endif // CHROMEOS_IME_COMPONENT_EXTENSION_IME_MANAGER_H_ |
| OLD | NEW |