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

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

Issue 1267483003: Combine the WM_CHAR with WM_KEY* for key event flow. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 4 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_REMOTE_INPUT_METHOD_WIN_H_ 5 #ifndef UI_BASE_IME_REMOTE_INPUT_METHOD_WIN_H_
6 #define UI_BASE_IME_REMOTE_INPUT_METHOD_WIN_H_ 6 #define UI_BASE_IME_REMOTE_INPUT_METHOD_WIN_H_
7 7
8 #include <Windows.h> 8 #include <Windows.h>
9 9
10 #include <string> 10 #include <string>
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
84 const CompositionText& composition_text) = 0; 84 const CompositionText& composition_text) = 0;
85 85
86 // Handles text-commit events occurred in the metro_driver process. 86 // Handles text-commit events occurred in the metro_driver process.
87 // Caveats: This method is designed to be used only with 87 // Caveats: This method is designed to be used only with
88 // metro_driver::TextService. In other words, there is no garantee that this 88 // metro_driver::TextService. In other words, there is no garantee that this
89 // method works a wrapper to call ui::TextInputClient::InsertText. In fact, 89 // method works a wrapper to call ui::TextInputClient::InsertText. In fact,
90 // this method may call ui::TextInputClient::InsertChar when the text input 90 // this method may call ui::TextInputClient::InsertChar when the text input
91 // type of the focused text input client is TEXT_INPUT_TYPE_NONE. 91 // type of the focused text input client is TEXT_INPUT_TYPE_NONE.
92 virtual void OnTextCommitted(const base::string16& text) = 0; 92 virtual void OnTextCommitted(const base::string16& text) = 0;
93 93
94 // Handles the translated WM_CHAR from WM_KEYDOWN/WM_KEYUP.
95 // This method is called when the WM_CHAR occurs with a WM_KEYDOWN/WM_KEYUP,
96 // thus it needs to be cached and will be processed once a key event is
97 // received.
98 virtual void OnCharForNextKeyEvent(base::char16 ch) = 0;
99
94 private: 100 private:
95 DISALLOW_COPY_AND_ASSIGN(RemoteInputMethodPrivateWin); 101 DISALLOW_COPY_AND_ASSIGN(RemoteInputMethodPrivateWin);
96 }; 102 };
97 103
98 } // namespace ui 104 } // namespace ui
99 105
100 #endif // UI_BASE_IME_REMOTE_INPUT_METHOD_WIN_H_ 106 #endif // UI_BASE_IME_REMOTE_INPUT_METHOD_WIN_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698