OLD | NEW |
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 Loading... |
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_ |
OLD | NEW |