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

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

Issue 14698032: Make InputMethodWin TSF-aware. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Implement OnTextLayoutChanged in MockTSFBridge. Created 7 years, 7 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/win/tsf_bridge.cc ('k') | ui/views/ime/input_method_win.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 #ifndef UI_VIEWS_IME_INPUT_METHOD_WIN_H_ 5 #ifndef UI_VIEWS_IME_INPUT_METHOD_WIN_H_
6 #define UI_VIEWS_IME_INPUT_METHOD_WIN_H_ 6 #define UI_VIEWS_IME_INPUT_METHOD_WIN_H_
7 7
8 #include <windows.h> 8 #include <windows.h>
9 9
10 #include <string> 10 #include <string>
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 LRESULT OnReconvertString(RECONVERTSTRING *reconv); 75 LRESULT OnReconvertString(RECONVERTSTRING *reconv);
76 LRESULT OnQueryCharPosition(IMECHARPOSITION *char_positon); 76 LRESULT OnQueryCharPosition(IMECHARPOSITION *char_positon);
77 77
78 // Overridden from InputMethodBase. 78 // Overridden from InputMethodBase.
79 virtual void OnWillChangeFocus(View* focused_before, View* focused) OVERRIDE; 79 virtual void OnWillChangeFocus(View* focused_before, View* focused) OVERRIDE;
80 virtual void OnDidChangeFocus(View* focused_before, View* focused) OVERRIDE; 80 virtual void OnDidChangeFocus(View* focused_before, View* focused) OVERRIDE;
81 81
82 // Asks the client to confirm current composition text. 82 // Asks the client to confirm current composition text.
83 void ConfirmCompositionText(); 83 void ConfirmCompositionText();
84 84
85 // Enables or disables the IME according to the current text input type.
86 void UpdateIMEState();
87
88 // The HWND this InputMethod is bound to. 85 // The HWND this InputMethod is bound to.
89 HWND hwnd_; 86 HWND hwnd_;
90 87
91 // Indicates if the current input locale has an IME. 88 // Indicates if the current input locale has an IME.
92 bool active_; 89 bool active_;
93 90
94 // Name of the current input locale. 91 // Name of the current input locale.
95 std::string locale_; 92 std::string locale_;
96 93
97 // The current input text direction. 94 // The current input text direction.
98 base::i18n::TextDirection direction_; 95 base::i18n::TextDirection direction_;
99 96
100 // The new text direction and layout alignment requested by the user by 97 // The new text direction and layout alignment requested by the user by
101 // pressing ctrl-shift. It'll be sent to the text input client when the key 98 // pressing ctrl-shift. It'll be sent to the text input client when the key
102 // is released. 99 // is released.
103 base::i18n::TextDirection pending_requested_direction_; 100 base::i18n::TextDirection pending_requested_direction_;
104 101
105 // Windows IMM32 wrapper. 102 // Windows IMM32 wrapper.
106 // (See "ui/base/win/ime_input.h" for its details.) 103 // (See "ui/base/win/ime_input.h" for its details.)
107 ui::ImeInput ime_input_; 104 ui::ImeInput ime_input_;
108 105
109 ui::InputMethod* const host_; 106 ui::InputMethod* const host_;
110 107
111 DISALLOW_COPY_AND_ASSIGN(InputMethodWin); 108 DISALLOW_COPY_AND_ASSIGN(InputMethodWin);
112 }; 109 };
113 110
114 } // namespace views 111 } // namespace views
115 112
116 #endif // UI_VIEWS_IME_INPUT_METHOD_WIN_H_ 113 #endif // UI_VIEWS_IME_INPUT_METHOD_WIN_H_
OLDNEW
« no previous file with comments | « ui/base/ime/win/tsf_bridge.cc ('k') | ui/views/ime/input_method_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698