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

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

Issue 2298123003: Using input language instead of the application locale to determine the Omnibox's text input type o… (Closed)
Patch Set: ..... 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
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 #include "ui/base/ime/mock_input_method.h" 5 #include "ui/base/ime/mock_input_method.h"
6 6
7 #include "ui/base/ime/input_method_delegate.h" 7 #include "ui/base/ime/input_method_delegate.h"
8 #include "ui/events/event.h" 8 #include "ui/events/event.h"
9 9
10 namespace ui { 10 namespace ui {
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 observer_list_, 73 observer_list_,
74 OnCaretBoundsChanged(client)); 74 OnCaretBoundsChanged(client));
75 } 75 }
76 76
77 void MockInputMethod::CancelComposition(const TextInputClient* client) { 77 void MockInputMethod::CancelComposition(const TextInputClient* client) {
78 } 78 }
79 79
80 void MockInputMethod::OnInputLocaleChanged() { 80 void MockInputMethod::OnInputLocaleChanged() {
81 } 81 }
82 82
83 std::string MockInputMethod::GetInputLocale() { 83 bool MockInputMethod::IsInputLocaleCJK() const {
84 return ""; 84 return false;
85 } 85 }
86 86
87 TextInputType MockInputMethod::GetTextInputType() const { 87 TextInputType MockInputMethod::GetTextInputType() const {
88 return TEXT_INPUT_TYPE_NONE; 88 return TEXT_INPUT_TYPE_NONE;
89 } 89 }
90 90
91 TextInputMode MockInputMethod::GetTextInputMode() const { 91 TextInputMode MockInputMethod::GetTextInputMode() const {
92 return TEXT_INPUT_MODE_DEFAULT; 92 return TEXT_INPUT_MODE_DEFAULT;
93 } 93 }
94 94
(...skipping 20 matching lines...) Expand all
115 void MockInputMethod::RemoveObserver(InputMethodObserver* observer) { 115 void MockInputMethod::RemoveObserver(InputMethodObserver* observer) {
116 observer_list_.RemoveObserver(observer); 116 observer_list_.RemoveObserver(observer);
117 } 117 }
118 118
119 const std::vector<std::unique_ptr<ui::KeyEvent>>& 119 const std::vector<std::unique_ptr<ui::KeyEvent>>&
120 MockInputMethod::GetKeyEventsForTesting() { 120 MockInputMethod::GetKeyEventsForTesting() {
121 return key_events_for_testing_; 121 return key_events_for_testing_;
122 } 122 }
123 123
124 } // namespace ui 124 } // namespace ui
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698