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

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

Issue 1651453002: Give InputMethodWin an out-of-line destructor. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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
« no previous file with comments | « ui/base/ime/input_method_win.h ('k') | no next file » | 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) 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_win.h" 5 #include "ui/base/ime/input_method_win.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include "base/auto_reset.h" 10 #include "base/auto_reset.h"
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 : toplevel_window_handle_(toplevel_window_handle), 45 : toplevel_window_handle_(toplevel_window_handle),
46 pending_requested_direction_(base::i18n::UNKNOWN_DIRECTION), 46 pending_requested_direction_(base::i18n::UNKNOWN_DIRECTION),
47 accept_carriage_return_(false), 47 accept_carriage_return_(false),
48 enabled_(false), 48 enabled_(false),
49 is_candidate_popup_open_(false), 49 is_candidate_popup_open_(false),
50 composing_window_handle_(NULL), 50 composing_window_handle_(NULL),
51 weak_ptr_factory_(this) { 51 weak_ptr_factory_(this) {
52 SetDelegate(delegate); 52 SetDelegate(delegate);
53 } 53 }
54 54
55 InputMethodWin::~InputMethodWin() {}
56
55 bool InputMethodWin::OnUntranslatedIMEMessage( 57 bool InputMethodWin::OnUntranslatedIMEMessage(
56 const base::NativeEvent& event, 58 const base::NativeEvent& event,
57 InputMethod::NativeEventResult* result) { 59 InputMethod::NativeEventResult* result) {
58 LRESULT original_result = 0; 60 LRESULT original_result = 0;
59 BOOL handled = FALSE; 61 BOOL handled = FALSE;
60 62
61 switch (event.message) { 63 switch (event.message) {
62 case WM_IME_SETCONTEXT: 64 case WM_IME_SETCONTEXT:
63 original_result = OnImeSetContext( 65 original_result = OnImeSetContext(
64 event.hwnd, event.message, event.wParam, event.lParam, &handled); 66 event.hwnd, event.message, event.wParam, event.lParam, &handled);
(...skipping 601 matching lines...) Expand 10 before | Expand all | Expand 10 after
666 enabled_ = true; 668 enabled_ = true;
667 break; 669 break;
668 } 670 }
669 671
670 imm32_manager_.SetTextInputMode(window_handle, text_input_mode); 672 imm32_manager_.SetTextInputMode(window_handle, text_input_mode);
671 tsf_inputscope::SetInputScopeForTsfUnawareWindow( 673 tsf_inputscope::SetInputScopeForTsfUnawareWindow(
672 window_handle, text_input_type, text_input_mode); 674 window_handle, text_input_type, text_input_mode);
673 } 675 }
674 676
675 } // namespace ui 677 } // namespace ui
OLDNEW
« no previous file with comments | « ui/base/ime/input_method_win.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698