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 <map> | 8 #include <map> |
9 #include <set> | 9 #include <set> |
10 | 10 |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
47 class CHROMEOS_EXPORT ComponentExtensionIMEManagerDelegate { | 47 class CHROMEOS_EXPORT ComponentExtensionIMEManagerDelegate { |
48 public: | 48 public: |
49 ComponentExtensionIMEManagerDelegate(); | 49 ComponentExtensionIMEManagerDelegate(); |
50 virtual ~ComponentExtensionIMEManagerDelegate(); | 50 virtual ~ComponentExtensionIMEManagerDelegate(); |
51 | 51 |
52 // Lists installed component extension IMEs. | 52 // Lists installed component extension IMEs. |
53 virtual std::vector<ComponentExtensionIME> ListIME() = 0; | 53 virtual std::vector<ComponentExtensionIME> ListIME() = 0; |
54 | 54 |
55 // Loads component extension IME associated with |extension_id|. | 55 // Loads component extension IME associated with |extension_id|. |
56 // Returns false if it fails, otherwise returns true. | 56 // Returns false if it fails, otherwise returns true. |
57 virtual bool Load(Profile* profile, | 57 virtual void Load(Profile* profile, |
58 const std::string& extension_id, | 58 const std::string& extension_id, |
59 const std::string& manifest, | 59 const std::string& manifest, |
60 const base::FilePath& path) = 0; | 60 const base::FilePath& path) = 0; |
61 | 61 |
62 // Unloads component extension IME associated with |extension_id|. | 62 // Unloads component extension IME associated with |extension_id|. |
63 virtual void Unload(Profile* profile, | 63 virtual void Unload(Profile* profile, |
64 const std::string& extension_id, | 64 const std::string& extension_id, |
65 const base::FilePath& path) = 0; | 65 const base::FilePath& path) = 0; |
66 }; | 66 }; |
67 | 67 |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
121 std::set<std::string> input_method_id_set_; | 121 std::set<std::string> input_method_id_set_; |
122 | 122 |
123 std::set<std::string> login_layout_set_; | 123 std::set<std::string> login_layout_set_; |
124 | 124 |
125 DISALLOW_COPY_AND_ASSIGN(ComponentExtensionIMEManager); | 125 DISALLOW_COPY_AND_ASSIGN(ComponentExtensionIMEManager); |
126 }; | 126 }; |
127 | 127 |
128 } // namespace chromeos | 128 } // namespace chromeos |
129 | 129 |
130 #endif // CHROMEOS_IME_COMPONENT_EXTENSION_IME_MANAGER_H_ | 130 #endif // CHROMEOS_IME_COMPONENT_EXTENSION_IME_MANAGER_H_ |
OLD | NEW |