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

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

Issue 1771173002: Implement input.ime.sendKeyEvents API. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added Windows-specific implementation. Created 4 years, 9 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
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_BASE_IME_INPUT_METHOD_WIN_H_ 5 #ifndef UI_BASE_IME_INPUT_METHOD_WIN_H_
6 #define UI_BASE_IME_INPUT_METHOD_WIN_H_ 6 #define UI_BASE_IME_INPUT_METHOD_WIN_H_
7 7
8 #include <windows.h> 8 #include <windows.h>
9 9
10 #include <string> 10 #include <string>
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
85 LPARAM lparam, 85 LPARAM lparam,
86 BOOL* handled); 86 BOOL* handled);
87 LRESULT OnDocumentFeed(RECONVERTSTRING* reconv); 87 LRESULT OnDocumentFeed(RECONVERTSTRING* reconv);
88 LRESULT OnReconvertString(RECONVERTSTRING* reconv); 88 LRESULT OnReconvertString(RECONVERTSTRING* reconv);
89 LRESULT OnQueryCharPosition(IMECHARPOSITION* char_positon); 89 LRESULT OnQueryCharPosition(IMECHARPOSITION* char_positon);
90 90
91 // Returns true if the Win32 native window bound to |client| is considered 91 // Returns true if the Win32 native window bound to |client| is considered
92 // to be ready for receiving keyboard input. 92 // to be ready for receiving keyboard input.
93 bool IsWindowFocused(const TextInputClient* client) const; 93 bool IsWindowFocused(const TextInputClient* client) const;
94 94
95 void DispatchFabricatedKeyEvent(ui::KeyEvent* event);
96
97 // Asks the client to confirm current composition text. 95 // Asks the client to confirm current composition text.
98 void ConfirmCompositionText(); 96 void ConfirmCompositionText();
99 97
100 // Enables or disables the IME according to the current text input type. 98 // Enables or disables the IME according to the current text input type.
101 void UpdateIMEState(); 99 void UpdateIMEState();
102 100
103 // Callback function for IMEEngineHandlerInterface::ProcessKeyEvent. 101 // Callback function for IMEEngineHandlerInterface::ProcessKeyEvent.
104 void ProcessKeyEventDone(ui::KeyEvent* event, 102 void ProcessKeyEventDone(ui::KeyEvent* event,
105 const std::vector<MSG>* char_msgs, 103 const std::vector<MSG>* char_msgs,
106 bool is_handled); 104 bool is_handled);
(...skipping 29 matching lines...) Expand all
136 134
137 // Used for making callbacks. 135 // Used for making callbacks.
138 base::WeakPtrFactory<InputMethodWin> weak_ptr_factory_; 136 base::WeakPtrFactory<InputMethodWin> weak_ptr_factory_;
139 137
140 DISALLOW_COPY_AND_ASSIGN(InputMethodWin); 138 DISALLOW_COPY_AND_ASSIGN(InputMethodWin);
141 }; 139 };
142 140
143 } // namespace ui 141 } // namespace ui
144 142
145 #endif // UI_BASE_IME_INPUT_METHOD_WIN_H_ 143 #endif // UI_BASE_IME_INPUT_METHOD_WIN_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698