| OLD | NEW |
| 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/input_method_base.h" | 5 #include "ui/base/ime/input_method_base.h" |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/logging.h" | 8 #include "base/logging.h" |
| 9 #include "base/message_loop/message_loop.h" | 9 #include "base/message_loop/message_loop.h" |
| 10 #include "base/strings/utf_string_conversions.h" | 10 #include "base/strings/utf_string_conversions.h" |
| (...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 183 if (visible) | 183 if (visible) |
| 184 GetTextInputClient()->SetCompositionText(composition_); | 184 GetTextInputClient()->SetCompositionText(composition_); |
| 185 else | 185 else |
| 186 GetTextInputClient()->ClearCompositionText(); | 186 GetTextInputClient()->ClearCompositionText(); |
| 187 } | 187 } |
| 188 SendFakeProcessKeyEvent(false); | 188 SendFakeProcessKeyEvent(false); |
| 189 } | 189 } |
| 190 | 190 |
| 191 void InputMethodBase::DeleteSurroundingText(int32_t offset, uint32_t length) {} | 191 void InputMethodBase::DeleteSurroundingText(int32_t offset, uint32_t length) {} |
| 192 | 192 |
| 193 void InputMethodBase::SendKeyEvent(KeyEvent* event) { |
| 194 DispatchKeyEvent(event); |
| 195 } |
| 196 |
| 193 } // namespace ui | 197 } // namespace ui |
| OLD | NEW |