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

Side by Side Diff: chrome/browser/chromeos/input_method/component_extension_ime_manager_impl.h

Issue 13949015: Supporting multiple keyboard layouts. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 8 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
« no previous file with comments | « no previous file | chrome/browser/chromeos/input_method/component_extension_ime_manager_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 CHROME_BROWSER_CHROMEOS_INPUT_METHOD_COMPONENT_EXTENSION_IME_MANAGER_IMP L_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_INPUT_METHOD_COMPONENT_EXTENSION_IME_MANAGER_IMP L_H_
6 #define CHROME_BROWSER_CHROMEOS_INPUT_METHOD_COMPONENT_EXTENSION_IME_MANAGER_IMP L_H_ 6 #define CHROME_BROWSER_CHROMEOS_INPUT_METHOD_COMPONENT_EXTENSION_IME_MANAGER_IMP L_H_
7 7
8 #include <set> 8 #include <set>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 61
62 // Reads extension information: description, option page. This function 62 // Reads extension information: description, option page. This function
63 // returns true on success, otherwise returns false. This function must be 63 // returns true on success, otherwise returns false. This function must be
64 // called on file thread. 64 // called on file thread.
65 static bool ReadExtensionInfo(const DictionaryValue& manifest, 65 static bool ReadExtensionInfo(const DictionaryValue& manifest,
66 const std::string& extension_id, 66 const std::string& extension_id,
67 ComponentExtensionIME* out); 67 ComponentExtensionIME* out);
68 68
69 // Reads each engine component in |dict|. |dict| is given by GetList with 69 // Reads each engine component in |dict|. |dict| is given by GetList with
70 // kInputComponents key from manifest. This function returns true on success, 70 // kInputComponents key from manifest. This function returns true on success,
71 // otherwise retrun false. This function must be called on file thread. 71 // otherwise retrun false. This function must be called on file thread.
satorux1 2013/04/23 01:43:25 FILE thread
72 static bool ReadEngineComponent(const DictionaryValue& dict, 72 static bool ReadEngineComponent(const DictionaryValue& dict,
73 IBusComponent::EngineDescription* out); 73 ComponentExtensionEngine* out);
74 74
75 // True if initialized. 75 // True if initialized.
76 bool is_initialized_; 76 bool is_initialized_;
77 77
78 // The list of component extension IME. 78 // The list of component extension IME.
79 std::vector<ComponentExtensionIME> component_extension_list_; 79 std::vector<ComponentExtensionIME> component_extension_list_;
80 80
81 // The list of already loaded extension ids. 81 // The list of already loaded extension ids.
82 std::set<std::string> loaded_extension_id_; 82 std::set<std::string> loaded_extension_id_;
83 83
84 base::ThreadChecker thread_checker_; 84 base::ThreadChecker thread_checker_;
85 base::WeakPtrFactory<ComponentExtensionIMEManagerImpl> weak_ptr_factory_; 85 base::WeakPtrFactory<ComponentExtensionIMEManagerImpl> weak_ptr_factory_;
86 86
87 DISALLOW_COPY_AND_ASSIGN(ComponentExtensionIMEManagerImpl); 87 DISALLOW_COPY_AND_ASSIGN(ComponentExtensionIMEManagerImpl);
88 }; 88 };
89 89
90 } // namespace chromeos 90 } // namespace chromeos
91 91
92 #endif // CHROME_BROWSER_CHROMEOS_INPUT_METHOD_COMPONENT_EXTENSION_IME_MANAGER_ IMPL_H_ 92 #endif // CHROME_BROWSER_CHROMEOS_INPUT_METHOD_COMPONENT_EXTENSION_IME_MANAGER_ IMPL_H_
93 93
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/chromeos/input_method/component_extension_ime_manager_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698