Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(76)

Side by Side Diff: chromeos/ime/component_extension_ime_manager.h

Issue 178343005: [IME] migrate the xkb ID to extension based xkb ID. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 6 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 <set>
9
8 #include "base/files/file_path.h" 10 #include "base/files/file_path.h"
9 #include "base/memory/scoped_ptr.h" 11 #include "base/memory/scoped_ptr.h"
10 #include "base/observer_list.h" 12 #include "base/observer_list.h"
11 #include "chromeos/chromeos_export.h" 13 #include "chromeos/chromeos_export.h"
12 #include "chromeos/ime/input_method_descriptor.h" 14 #include "chromeos/ime/input_method_descriptor.h"
13 15
14 namespace chromeos { 16 namespace chromeos {
15 17
16 // Represents an engine in component extension IME. 18 // Represents an engine in component extension IME.
17 struct CHROMEOS_EXPORT ComponentExtensionEngine { 19 struct CHROMEOS_EXPORT ComponentExtensionEngine {
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
115 void AddObserver(Observer* observer); 117 void AddObserver(Observer* observer);
116 void RemoveObserver(Observer* observer); 118 void RemoveObserver(Observer* observer);
117 119
118 private: 120 private:
119 // Finds ComponentExtensionIME and EngineDescription associated with 121 // Finds ComponentExtensionIME and EngineDescription associated with
120 // |input_method_id|. This function retruns true if it is found, otherwise 122 // |input_method_id|. This function retruns true if it is found, otherwise
121 // returns false. |out_extension| and |out_engine| can be NULL. 123 // returns false. |out_extension| and |out_engine| can be NULL.
122 bool FindEngineEntry(const std::string& input_method_id, 124 bool FindEngineEntry(const std::string& input_method_id,
123 ComponentExtensionIME* out_extension, 125 ComponentExtensionIME* out_extension,
124 ComponentExtensionEngine* out_engine); 126 ComponentExtensionEngine* out_engine);
127
128 bool IsInLoginLayoutWhitelist(const std::vector<std::string>& layouts);
129
125 scoped_ptr<ComponentExtensionIMEManagerDelegate> delegate_; 130 scoped_ptr<ComponentExtensionIMEManagerDelegate> delegate_;
126 131
127 std::vector<ComponentExtensionIME> component_extension_imes_; 132 std::vector<ComponentExtensionIME> component_extension_imes_;
128 133
129 ObserverList<Observer> observers_; 134 ObserverList<Observer> observers_;
130 135
131 bool is_initialized_; 136 bool is_initialized_;
132 137
138 std::set<std::string> login_layout_set_;
139
133 DISALLOW_COPY_AND_ASSIGN(ComponentExtensionIMEManager); 140 DISALLOW_COPY_AND_ASSIGN(ComponentExtensionIMEManager);
134 }; 141 };
135 142
136 } // namespace chromeos 143 } // namespace chromeos
137 144
138 #endif // CHROMEOS_IME_COMPONENT_EXTENSION_IME_MANAGER_H_ 145 #endif // CHROMEOS_IME_COMPONENT_EXTENSION_IME_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698