OLD | NEW |
| (Empty) |
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 | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef UI_BASE_IME_REMOTE_INPUT_METHOD_DELEGATE_WIN_H_ | |
6 #define UI_BASE_IME_REMOTE_INPUT_METHOD_DELEGATE_WIN_H_ | |
7 | |
8 #include <stdint.h> | |
9 | |
10 #include <vector> | |
11 | |
12 #include "ui/base/ime/ui_base_ime_export.h" | |
13 #include "ui/gfx/geometry/rect.h" | |
14 | |
15 namespace ui { | |
16 namespace internal { | |
17 | |
18 // An interface implemented by the object to forward events that should be | |
19 // handled by the IME which is running in the remote metro_driver process. | |
20 class UI_BASE_IME_EXPORT RemoteInputMethodDelegateWin { | |
21 public: | |
22 virtual ~RemoteInputMethodDelegateWin() {} | |
23 | |
24 // Notifies that composition should be canceled (if any). | |
25 virtual void CancelComposition() = 0; | |
26 | |
27 // Notifies that properties of the focused TextInputClient is changed. | |
28 // Note that an empty |input_scopes| represents that TextInputType is | |
29 // TEXT_INPUT_TYPE_NONE. | |
30 // Caveats: |input_scopes| is defined as std::vector<int32_t> rather than | |
31 // std::vector<InputScope> because the wire format of IPC message | |
32 // MetroViewerHostMsg_ImeTextInputClientUpdated uses std::vector<int32_t> to | |
33 // avoid dependency on <InputScope.h> header. | |
34 virtual void OnTextInputClientUpdated( | |
35 const std::vector<int32_t>& input_scopes, | |
36 const std::vector<gfx::Rect>& composition_character_bounds) = 0; | |
37 }; | |
38 | |
39 } // namespace internal | |
40 } // namespace ui | |
41 | |
42 #endif // UI_BASE_IME_REMOTE_INPUT_METHOD_DELEGATE_WIN_H_ | |
OLD | NEW |