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

Side by Side Diff: ui/base/ime/input_method_base_unittest.cc

Issue 2298123003: Using input language instead of the application locale to determine the Omnibox's text input type o… (Closed)
Patch Set: fix compiling errors in mus. 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 | « ui/base/ime/input_method_base.cc ('k') | ui/base/ime/input_method_chromeos.h » ('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 #include "ui/base/ime/input_method_base.h" 5 #include "ui/base/ime/input_method_base.h"
6 6
7 #include <memory> 7 #include <memory>
8 8
9 #include "base/gtest_prod_util.h" 9 #include "base/gtest_prod_util.h"
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after
142 // Overriden from InputMethod. 142 // Overriden from InputMethod.
143 bool OnUntranslatedIMEMessage( 143 bool OnUntranslatedIMEMessage(
144 const base::NativeEvent& event, 144 const base::NativeEvent& event,
145 InputMethod::NativeEventResult* result) override { 145 InputMethod::NativeEventResult* result) override {
146 return false; 146 return false;
147 } 147 }
148 void DispatchKeyEvent(ui::KeyEvent*) override {} 148 void DispatchKeyEvent(ui::KeyEvent*) override {}
149 void OnCaretBoundsChanged(const TextInputClient* client) override {} 149 void OnCaretBoundsChanged(const TextInputClient* client) override {}
150 void CancelComposition(const TextInputClient* client) override {} 150 void CancelComposition(const TextInputClient* client) override {}
151 void OnInputLocaleChanged() override {} 151 void OnInputLocaleChanged() override {}
152 std::string GetInputLocale() override { return ""; } 152 bool IsInputLocaleCJK() const override { return false; }
153 bool IsCandidatePopupOpen() const override { return false; } 153 bool IsCandidatePopupOpen() const override { return false; }
154 // Overriden from InputMethodBase. 154 // Overriden from InputMethodBase.
155 void OnWillChangeFocusedClient(TextInputClient* focused_before, 155 void OnWillChangeFocusedClient(TextInputClient* focused_before,
156 TextInputClient* focused) override { 156 TextInputClient* focused) override {
157 verifier_->OnWillChangeFocusedClient(focused_before, focused); 157 verifier_->OnWillChangeFocusedClient(focused_before, focused);
158 } 158 }
159 159
160 void OnDidChangeFocusedClient(TextInputClient* focused_before, 160 void OnDidChangeFocusedClient(TextInputClient* focused_before,
161 TextInputClient* focused) override { 161 TextInputClient* focused) override {
162 verifier_->OnDidChangeFocusedClient(focused_before, focused); 162 verifier_->OnDidChangeFocusedClient(focused_before, focused);
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after
296 input_method.OnFocus(); 296 input_method.OnFocus();
297 verifier.ExpectClientChange(&text_input_client, NULL); 297 verifier.ExpectClientChange(&text_input_client, NULL);
298 input_method.DetachTextInputClient(&text_input_client); 298 input_method.DetachTextInputClient(&text_input_client);
299 EXPECT_EQ(NULL, input_method.GetTextInputClient()); 299 EXPECT_EQ(NULL, input_method.GetTextInputClient());
300 verifier.Verify(); 300 verifier.Verify();
301 } 301 }
302 } 302 }
303 303
304 } // namespace 304 } // namespace
305 } // namespace ui 305 } // namespace ui
OLDNEW
« no previous file with comments | « ui/base/ime/input_method_base.cc ('k') | ui/base/ime/input_method_chromeos.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698