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

Unified Diff: ui/base/ime/input_method_win.cc

Issue 660173002: Type conversion fixes, ui/ edition. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/base/clipboard/clipboard_win.cc ('k') | ui/base/ime/remote_input_method_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/base/ime/input_method_win.cc
diff --git a/ui/base/ime/input_method_win.cc b/ui/base/ime/input_method_win.cc
index 33e3ca6f0160112fdbd3b750151819e61e55cce5..f6bc4c099c6385b550face9d53b80033a5750b35 100644
--- a/ui/base/ime/input_method_win.cc
+++ b/ui/base/ime/input_method_win.cc
@@ -569,8 +569,9 @@ bool InputMethodWin::IsWindowFocused(const TextInputClient* client) const {
bool InputMethodWin::DispatchFabricatedKeyEvent(const ui::KeyEvent& event) {
if (event.is_char()) {
if (GetTextInputClient()) {
- GetTextInputClient()->InsertChar(event.key_code(),
- ui::GetModifiersFromKeyState());
+ GetTextInputClient()->InsertChar(
+ static_cast<base::char16>(event.key_code()),
+ ui::GetModifiersFromKeyState());
return true;
}
}
« no previous file with comments | « ui/base/clipboard/clipboard_win.cc ('k') | ui/base/ime/remote_input_method_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698