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

Side by Side Diff: ui/views/ime/input_method_win.cc

Issue 8566052: views: Delete bubble, events, focus, layout directories and its stubbed files. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix win Created 9 years, 1 month 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 | Annotate | Revision Log
« no previous file with comments | « ui/views/ime/input_method_ibus.cc ('k') | ui/views/ime/mock_input_method.cc » ('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 (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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/string_util.h"
10 #include "ui/base/ime/composition_text.h" 10 #include "ui/base/ime/composition_text.h"
11 #include "ui/base/ime/text_input_client.h" 11 #include "ui/base/ime/text_input_client.h"
12 #include "ui/base/keycodes/keyboard_codes.h" 12 #include "ui/base/keycodes/keyboard_codes.h"
13 #include "views/events/event.h" 13 #include "ui/views/events/event.h"
14 14
15 // Extra number of chars before and after selection (or composition) range which 15 // Extra number of chars before and after selection (or composition) range which
16 // is returned to IME for improving conversion accuracy. 16 // is returned to IME for improving conversion accuracy.
17 static const size_t kExtraNumberOfChars = 20; 17 static const size_t kExtraNumberOfChars = 20;
18 18
19 namespace views { 19 namespace views {
20 20
21 InputMethodWin::InputMethodWin(internal::InputMethodDelegate* delegate) 21 InputMethodWin::InputMethodWin(internal::InputMethodDelegate* delegate)
22 : active_(false), 22 : active_(false),
23 direction_(base::i18n::UNKNOWN_DIRECTION), 23 direction_(base::i18n::UNKNOWN_DIRECTION),
(...skipping 398 matching lines...) Expand 10 before | Expand all | Expand 10 after
422 case ui::TEXT_INPUT_TYPE_PASSWORD: 422 case ui::TEXT_INPUT_TYPE_PASSWORD:
423 ime_input_.DisableIME(hwnd()); 423 ime_input_.DisableIME(hwnd());
424 break; 424 break;
425 default: 425 default:
426 ime_input_.EnableIME(hwnd()); 426 ime_input_.EnableIME(hwnd());
427 break; 427 break;
428 } 428 }
429 } 429 }
430 430
431 } // namespace views 431 } // namespace views
OLDNEW
« no previous file with comments | « ui/views/ime/input_method_ibus.cc ('k') | ui/views/ime/mock_input_method.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698