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

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

Issue 2274013003: Keeps the opt-in IME menu in lock screen. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed comments. Created 4 years, 3 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
« no previous file with comments | « no previous file | chrome/browser/chromeos/input_method/input_method_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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_INPUT_METHOD_MANAGER_IMPL_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_INPUT_METHOD_INPUT_METHOD_MANAGER_IMPL_H_
6 #define CHROME_BROWSER_CHROMEOS_INPUT_METHOD_INPUT_METHOD_MANAGER_IMPL_H_ 6 #define CHROME_BROWSER_CHROMEOS_INPUT_METHOD_INPUT_METHOD_MANAGER_IMPL_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 9
10 #include <map> 10 #include <map>
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after
129 129
130 // The list of enabled extension IMEs. 130 // The list of enabled extension IMEs.
131 std::vector<std::string> enabled_extension_imes; 131 std::vector<std::string> enabled_extension_imes;
132 132
133 // Extra input methods that have been explicitly added to the menu, such as 133 // Extra input methods that have been explicitly added to the menu, such as
134 // those created by extension. 134 // those created by extension.
135 std::map<std::string, InputMethodDescriptor> extra_input_methods; 135 std::map<std::string, InputMethodDescriptor> extra_input_methods;
136 136
137 InputMethodManagerImpl* const manager_; 137 InputMethodManagerImpl* const manager_;
138 138
139 // True if the opt-in IME menu is activated.
140 bool menu_activated;
141
139 protected: 142 protected:
140 friend base::RefCounted<chromeos::input_method::InputMethodManager::State>; 143 friend base::RefCounted<chromeos::input_method::InputMethodManager::State>;
141 ~StateImpl() override; 144 ~StateImpl() override;
142 }; 145 };
143 146
144 // Constructs an InputMethodManager instance. The client is responsible for 147 // Constructs an InputMethodManager instance. The client is responsible for
145 // calling |SetUISessionState| in response to relevant changes in browser 148 // calling |SetUISessionState| in response to relevant changes in browser
146 // state. 149 // state.
147 InputMethodManagerImpl(std::unique_ptr<InputMethodDelegate> delegate, 150 InputMethodManagerImpl(std::unique_ptr<InputMethodDelegate> delegate,
148 bool enable_extension_loading); 151 bool enable_extension_loading);
(...skipping 15 matching lines...) Expand all
164 void RemoveImeMenuObserver( 167 void RemoveImeMenuObserver(
165 InputMethodManager::ImeMenuObserver* observer) override; 168 InputMethodManager::ImeMenuObserver* observer) override;
166 std::unique_ptr<InputMethodDescriptors> GetSupportedInputMethods() 169 std::unique_ptr<InputMethodDescriptors> GetSupportedInputMethods()
167 const override; 170 const override;
168 void ActivateInputMethodMenuItem(const std::string& key) override; 171 void ActivateInputMethodMenuItem(const std::string& key) override;
169 bool IsISOLevel5ShiftUsedByCurrentInputMethod() const override; 172 bool IsISOLevel5ShiftUsedByCurrentInputMethod() const override;
170 bool IsAltGrUsedByCurrentInputMethod() const override; 173 bool IsAltGrUsedByCurrentInputMethod() const override;
171 void NotifyImeMenuItemsChanged( 174 void NotifyImeMenuItemsChanged(
172 const std::string& engine_id, 175 const std::string& engine_id,
173 const std::vector<InputMethodManager::MenuItem>& items) override; 176 const std::vector<InputMethodManager::MenuItem>& items) override;
177 void MaybeNotifyImeMenuActivationChanged() override;
174 178
175 // chromeos::UserAddingScreen: 179 // chromeos::UserAddingScreen:
176 void OnUserAddingStarted() override; 180 void OnUserAddingStarted() override;
177 void OnUserAddingFinished() override; 181 void OnUserAddingFinished() override;
178 182
179 ImeKeyboard* GetImeKeyboard() override; 183 ImeKeyboard* GetImeKeyboard() override;
180 InputMethodUtil* GetInputMethodUtil() override; 184 InputMethodUtil* GetInputMethodUtil() override;
181 ComponentExtensionIMEManager* GetComponentExtensionIMEManager() override; 185 ComponentExtensionIMEManager* GetComponentExtensionIMEManager() override;
182 bool IsLoginKeyboard(const std::string& layout) const override; 186 bool IsLoginKeyboard(const std::string& layout) const override;
183 187
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
292 typedef std::map<Profile*, EngineMap, ProfileCompare> ProfileEngineMap; 296 typedef std::map<Profile*, EngineMap, ProfileCompare> ProfileEngineMap;
293 ProfileEngineMap engine_map_; 297 ProfileEngineMap engine_map_;
294 298
295 DISALLOW_COPY_AND_ASSIGN(InputMethodManagerImpl); 299 DISALLOW_COPY_AND_ASSIGN(InputMethodManagerImpl);
296 }; 300 };
297 301
298 } // namespace input_method 302 } // namespace input_method
299 } // namespace chromeos 303 } // namespace chromeos
300 304
301 #endif // CHROME_BROWSER_CHROMEOS_INPUT_METHOD_INPUT_METHOD_MANAGER_IMPL_H_ 305 #endif // CHROME_BROWSER_CHROMEOS_INPUT_METHOD_INPUT_METHOD_MANAGER_IMPL_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/chromeos/input_method/input_method_manager_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698