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/views/ime/input_method_win.h" | 5 #include "ui/views/ime/input_method_win.h" |
6 | 6 |
7 #include "base/basictypes.h" | 7 #include "base/basictypes.h" |
8 #include "base/logging.h" | 8 #include "base/logging.h" |
9 #include "base/string_util.h" | 9 #include "base/strings/string_util.h" |
10 #include "ui/base/events/event.h" | 10 #include "ui/base/events/event.h" |
11 #include "ui/base/events/event_constants.h" | 11 #include "ui/base/events/event_constants.h" |
12 #include "ui/base/events/event_utils.h" | 12 #include "ui/base/events/event_utils.h" |
13 #include "ui/base/ime/composition_text.h" | 13 #include "ui/base/ime/composition_text.h" |
14 #include "ui/base/ime/input_method.h" | 14 #include "ui/base/ime/input_method.h" |
15 #include "ui/base/ime/text_input_client.h" | 15 #include "ui/base/ime/text_input_client.h" |
16 #include "ui/base/keycodes/keyboard_codes.h" | 16 #include "ui/base/keycodes/keyboard_codes.h" |
17 #include "ui/base/win/hwnd_util.h" | 17 #include "ui/base/win/hwnd_util.h" |
18 | 18 |
19 // Extra number of chars before and after selection (or composition) range which | 19 // Extra number of chars before and after selection (or composition) range which |
(...skipping 444 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
464 case ui::TEXT_INPUT_TYPE_PASSWORD: | 464 case ui::TEXT_INPUT_TYPE_PASSWORD: |
465 ime_input_.DisableIME(hwnd_); | 465 ime_input_.DisableIME(hwnd_); |
466 break; | 466 break; |
467 default: | 467 default: |
468 ime_input_.EnableIME(hwnd_); | 468 ime_input_.EnableIME(hwnd_); |
469 break; | 469 break; |
470 } | 470 } |
471 } | 471 } |
472 | 472 |
473 } // namespace views | 473 } // namespace views |
OLD | NEW |