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

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

Issue 623293003: replace OVERRIDE and FINAL with override and final in chrome/browser/chromeos/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: run git cl format on echo_dialog_view.h Created 6 years, 2 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
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 <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 // input_method_ids[0]. If the ID is equal to input_method_ids[N], switch to 55 // input_method_ids[0]. If the ID is equal to input_method_ids[N], switch to
56 // input_method_ids[N+1]. 56 // input_method_ids[N+1].
57 void SwitchToNextInputMethodInternal( 57 void SwitchToNextInputMethodInternal(
58 const std::vector<std::string>& input_method_ids, 58 const std::vector<std::string>& input_method_ids,
59 const std::string& current_input_methodid); 59 const std::string& current_input_methodid);
60 60
61 // Returns true if given input method requires pending extension. 61 // Returns true if given input method requires pending extension.
62 bool MethodAwaitsExtensionLoad(const std::string& input_method_id) const; 62 bool MethodAwaitsExtensionLoad(const std::string& input_method_id) const;
63 63
64 // InputMethodManager::State overrides. 64 // InputMethodManager::State overrides.
65 virtual scoped_refptr<InputMethodManager::State> Clone() const OVERRIDE; 65 virtual scoped_refptr<InputMethodManager::State> Clone() const override;
66 virtual void AddInputMethodExtension( 66 virtual void AddInputMethodExtension(
67 const std::string& extension_id, 67 const std::string& extension_id,
68 const InputMethodDescriptors& descriptors, 68 const InputMethodDescriptors& descriptors,
69 InputMethodEngineInterface* instance) OVERRIDE; 69 InputMethodEngineInterface* instance) override;
70 virtual void RemoveInputMethodExtension( 70 virtual void RemoveInputMethodExtension(
71 const std::string& extension_id) OVERRIDE; 71 const std::string& extension_id) override;
72 virtual void ChangeInputMethod(const std::string& input_method_id, 72 virtual void ChangeInputMethod(const std::string& input_method_id,
73 bool show_message) OVERRIDE; 73 bool show_message) override;
74 virtual bool EnableInputMethod( 74 virtual bool EnableInputMethod(
75 const std::string& new_active_input_method_id) OVERRIDE; 75 const std::string& new_active_input_method_id) override;
76 virtual void EnableLoginLayouts( 76 virtual void EnableLoginLayouts(
77 const std::string& language_code, 77 const std::string& language_code,
78 const std::vector<std::string>& initial_layouts) OVERRIDE; 78 const std::vector<std::string>& initial_layouts) override;
79 virtual void EnableLockScreenLayouts() OVERRIDE; 79 virtual void EnableLockScreenLayouts() override;
80 virtual void GetInputMethodExtensions( 80 virtual void GetInputMethodExtensions(
81 InputMethodDescriptors* result) OVERRIDE; 81 InputMethodDescriptors* result) override;
82 virtual scoped_ptr<InputMethodDescriptors> GetActiveInputMethods() 82 virtual scoped_ptr<InputMethodDescriptors> GetActiveInputMethods()
83 const OVERRIDE; 83 const override;
84 virtual const std::vector<std::string>& GetActiveInputMethodIds() 84 virtual const std::vector<std::string>& GetActiveInputMethodIds()
85 const OVERRIDE; 85 const override;
86 virtual const InputMethodDescriptor* GetInputMethodFromId( 86 virtual const InputMethodDescriptor* GetInputMethodFromId(
87 const std::string& input_method_id) const OVERRIDE; 87 const std::string& input_method_id) const override;
88 virtual size_t GetNumActiveInputMethods() const OVERRIDE; 88 virtual size_t GetNumActiveInputMethods() const override;
89 virtual void SetEnabledExtensionImes( 89 virtual void SetEnabledExtensionImes(
90 std::vector<std::string>* ids) OVERRIDE; 90 std::vector<std::string>* ids) override;
91 virtual void SetInputMethodLoginDefault() OVERRIDE; 91 virtual void SetInputMethodLoginDefault() override;
92 virtual void SetInputMethodLoginDefaultFromVPD( 92 virtual void SetInputMethodLoginDefaultFromVPD(
93 const std::string& locale, 93 const std::string& locale,
94 const std::string& layout) OVERRIDE; 94 const std::string& layout) override;
95 virtual bool SwitchToNextInputMethod() OVERRIDE; 95 virtual bool SwitchToNextInputMethod() override;
96 virtual bool SwitchToPreviousInputMethod( 96 virtual bool SwitchToPreviousInputMethod(
97 const ui::Accelerator& accelerator) OVERRIDE; 97 const ui::Accelerator& accelerator) override;
98 virtual bool SwitchInputMethod(const ui::Accelerator& accelerator) OVERRIDE; 98 virtual bool SwitchInputMethod(const ui::Accelerator& accelerator) override;
99 virtual InputMethodDescriptor GetCurrentInputMethod() const OVERRIDE; 99 virtual InputMethodDescriptor GetCurrentInputMethod() const override;
100 virtual bool ReplaceEnabledInputMethods( 100 virtual bool ReplaceEnabledInputMethods(
101 const std::vector<std::string>& new_active_input_method_ids) OVERRIDE; 101 const std::vector<std::string>& new_active_input_method_ids) override;
102 102
103 // ------------------------- Data members. 103 // ------------------------- Data members.
104 Profile* const profile; 104 Profile* const profile;
105 105
106 // The input method which was/is selected. 106 // The input method which was/is selected.
107 InputMethodDescriptor previous_input_method; 107 InputMethodDescriptor previous_input_method;
108 InputMethodDescriptor current_input_method; 108 InputMethodDescriptor current_input_method;
109 109
110 // The active input method ids cache. 110 // The active input method ids cache.
111 std::vector<std::string> active_input_method_ids; 111 std::vector<std::string> active_input_method_ids;
(...skipping 20 matching lines...) Expand all
132 // calling |SetUISessionState| in response to relevant changes in browser 132 // calling |SetUISessionState| in response to relevant changes in browser
133 // state. 133 // state.
134 InputMethodManagerImpl(scoped_ptr<InputMethodDelegate> delegate, 134 InputMethodManagerImpl(scoped_ptr<InputMethodDelegate> delegate,
135 bool enable_extension_loading); 135 bool enable_extension_loading);
136 virtual ~InputMethodManagerImpl(); 136 virtual ~InputMethodManagerImpl();
137 137
138 // Receives notification of an InputMethodManager::UISessionState transition. 138 // Receives notification of an InputMethodManager::UISessionState transition.
139 void SetUISessionState(UISessionState new_ui_session); 139 void SetUISessionState(UISessionState new_ui_session);
140 140
141 // InputMethodManager override: 141 // InputMethodManager override:
142 virtual UISessionState GetUISessionState() OVERRIDE; 142 virtual UISessionState GetUISessionState() override;
143 virtual void AddObserver(InputMethodManager::Observer* observer) OVERRIDE; 143 virtual void AddObserver(InputMethodManager::Observer* observer) override;
144 virtual void AddCandidateWindowObserver( 144 virtual void AddCandidateWindowObserver(
145 InputMethodManager::CandidateWindowObserver* observer) OVERRIDE; 145 InputMethodManager::CandidateWindowObserver* observer) override;
146 virtual void RemoveObserver(InputMethodManager::Observer* observer) OVERRIDE; 146 virtual void RemoveObserver(InputMethodManager::Observer* observer) override;
147 virtual void RemoveCandidateWindowObserver( 147 virtual void RemoveCandidateWindowObserver(
148 InputMethodManager::CandidateWindowObserver* observer) OVERRIDE; 148 InputMethodManager::CandidateWindowObserver* observer) override;
149 virtual scoped_ptr<InputMethodDescriptors> 149 virtual scoped_ptr<InputMethodDescriptors>
150 GetSupportedInputMethods() const OVERRIDE; 150 GetSupportedInputMethods() const override;
151 virtual void ActivateInputMethodMenuItem(const std::string& key) OVERRIDE; 151 virtual void ActivateInputMethodMenuItem(const std::string& key) override;
152 virtual bool IsISOLevel5ShiftUsedByCurrentInputMethod() const OVERRIDE; 152 virtual bool IsISOLevel5ShiftUsedByCurrentInputMethod() const override;
153 virtual bool IsAltGrUsedByCurrentInputMethod() const OVERRIDE; 153 virtual bool IsAltGrUsedByCurrentInputMethod() const override;
154 154
155 virtual ImeKeyboard* GetImeKeyboard() OVERRIDE; 155 virtual ImeKeyboard* GetImeKeyboard() override;
156 virtual InputMethodUtil* GetInputMethodUtil() OVERRIDE; 156 virtual InputMethodUtil* GetInputMethodUtil() override;
157 virtual ComponentExtensionIMEManager* 157 virtual ComponentExtensionIMEManager*
158 GetComponentExtensionIMEManager() OVERRIDE; 158 GetComponentExtensionIMEManager() override;
159 virtual bool IsLoginKeyboard(const std::string& layout) const OVERRIDE; 159 virtual bool IsLoginKeyboard(const std::string& layout) const override;
160 160
161 virtual bool MigrateInputMethods( 161 virtual bool MigrateInputMethods(
162 std::vector<std::string>* input_method_ids) OVERRIDE; 162 std::vector<std::string>* input_method_ids) override;
163 163
164 virtual scoped_refptr<InputMethodManager::State> CreateNewState( 164 virtual scoped_refptr<InputMethodManager::State> CreateNewState(
165 Profile* profile) OVERRIDE; 165 Profile* profile) override;
166 166
167 virtual scoped_refptr<InputMethodManager::State> GetActiveIMEState() OVERRIDE; 167 virtual scoped_refptr<InputMethodManager::State> GetActiveIMEState() override;
168 virtual void SetState( 168 virtual void SetState(
169 scoped_refptr<InputMethodManager::State> state) OVERRIDE; 169 scoped_refptr<InputMethodManager::State> state) override;
170 170
171 // Sets |candidate_window_controller_|. 171 // Sets |candidate_window_controller_|.
172 void SetCandidateWindowControllerForTesting( 172 void SetCandidateWindowControllerForTesting(
173 CandidateWindowController* candidate_window_controller); 173 CandidateWindowController* candidate_window_controller);
174 // Sets |keyboard_|. 174 // Sets |keyboard_|.
175 void SetImeKeyboardForTesting(ImeKeyboard* keyboard); 175 void SetImeKeyboardForTesting(ImeKeyboard* keyboard);
176 // Initialize |component_extension_manager_|. 176 // Initialize |component_extension_manager_|.
177 void InitializeComponentExtensionForTesting( 177 void InitializeComponentExtensionForTesting(
178 scoped_ptr<ComponentExtensionIMEManagerDelegate> delegate); 178 scoped_ptr<ComponentExtensionIMEManagerDelegate> delegate);
179 179
180 private: 180 private:
181 friend class InputMethodManagerImplTest; 181 friend class InputMethodManagerImplTest;
182 182
183 // CandidateWindowController::Observer overrides: 183 // CandidateWindowController::Observer overrides:
184 virtual void CandidateClicked(int index) OVERRIDE; 184 virtual void CandidateClicked(int index) override;
185 virtual void CandidateWindowOpened() OVERRIDE; 185 virtual void CandidateWindowOpened() override;
186 virtual void CandidateWindowClosed() OVERRIDE; 186 virtual void CandidateWindowClosed() override;
187 187
188 // Temporarily deactivates all input methods (e.g. Chinese, Japanese, Arabic) 188 // Temporarily deactivates all input methods (e.g. Chinese, Japanese, Arabic)
189 // since they are not necessary to input a login password. Users are still 189 // since they are not necessary to input a login password. Users are still
190 // able to use/switch active keyboard layouts (e.g. US qwerty, US dvorak, 190 // able to use/switch active keyboard layouts (e.g. US qwerty, US dvorak,
191 // French). 191 // French).
192 void OnScreenLocked(); 192 void OnScreenLocked();
193 193
194 // Resumes the original state by activating input methods and/or changing the 194 // Resumes the original state by activating input methods and/or changing the
195 // current input method as needed. 195 // current input method as needed.
196 void OnScreenUnlocked(); 196 void OnScreenUnlocked();
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
269 // Chinese Pinyin IME. Note "zh-hant-t-i0-pinyin" < "zh-t-i0-pinyin". 269 // Chinese Pinyin IME. Note "zh-hant-t-i0-pinyin" < "zh-t-i0-pinyin".
270 std::map<std::string, int> stat_id_map_; 270 std::map<std::string, int> stat_id_map_;
271 271
272 DISALLOW_COPY_AND_ASSIGN(InputMethodManagerImpl); 272 DISALLOW_COPY_AND_ASSIGN(InputMethodManagerImpl);
273 }; 273 };
274 274
275 } // namespace input_method 275 } // namespace input_method
276 } // namespace chromeos 276 } // namespace chromeos
277 277
278 #endif // CHROME_BROWSER_CHROMEOS_INPUT_METHOD_INPUT_METHOD_MANAGER_IMPL_H_ 278 #endif // CHROME_BROWSER_CHROMEOS_INPUT_METHOD_INPUT_METHOD_MANAGER_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698